Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you don't want to include the entire page, you may put one or both of these in your JSP:

  • <!- - START 2.x PAGE CONTENT -->
  • <!- - END 2.x PAGE CONTENT -->

How to expose a Spring MVC url as a 2.x Fragment

...

If you don't want to include the entire page, you may put one or both of these in your JSP:

  • <!-- START 2.x FRAGMENT CONTENT - ->
  • <!- - END 2.x FRAGMENT CONTENT -->

You may use query parameters on map entry's values, but you must use "&"

Code Block
&amp;

for &, like in this example from HTML Form Entry:

...

Code Block
<!-- excerpt: see above for exactly how to do this -->
<bean class="org.openmrs.ui2.core.fragment.SpringMvcPageAsFragmentViewProvider">
	<property name="fragments">
		<map>
			<entry key="growthChartForm" value="/module/growthchart/growthChart.form"/>
		</map>
	</property>
</bean>
<!-- end excerpt -->

<bean id="growthChartPatientDashboardFragmentExtension" class="org.openmrs.ui2.core.extension.PatientFragmentExtension">
	<property name="fragment" value="growthChartForm" /> <!-- This refers to the fragment exposed in the excerpt -->
	<property name="label" value="Growth Chart" />
	<property name="description" value="Pediatric growth chart" />
</bean>

Redirects

For convenience, certain commonly URLs from 1.x are redirected to their appropriate pages in 2.x (preserving query strings):

  • / -> /home.page
  • /index.* -> home.page
  • /patientDashboard.form -> /patient.page

1.x Technologies That Work in 2.x (when it's running in 1.x-compatibility mode)

...