Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Warning

The UI Framework code is being transitioned to a module. Documentation will move to UI Framework.

Overview

The 2.x application does not load the webModuleApplicationContext.xml file. It loads moduleApplicationContext.xml and ui2ModuleApplicationContext.xml.

...

Code Block
<bean class="org.openmrs.ui2.core.page.PageFactory" autowire-candidate="false">
	<property name="additionalViewProviders">
		<map>
			<entry key="(your-module-id)-module">
				<bean class="org.openmrs.ui2.core.page.SpringMvcPageViewProvider">
					<property name="pages">
						<map>
							<entry key="pageNameIn2x" value="/module/(your-module-id)/(your-page).form" />
						</map>
					</property>
				</bean>
			</entry>
		</map>
	</property>
</bean>

...

Code Block
<bean class="org.openmrs.ui2.core.fragment.FragmentFactory" autowire-candidate="false">
	<property name="additionalViewProviders">
		<map>
			<entry key="(your-module-id)-pages">
				<bean
					class="org.openmrs.ui2.core.fragment.SpringMvcPageAsFragmentViewProvider">
					<property name="fragments">
						<map>
							<entry key="fragmentNameIn2x" value="/module/(your-module-id)/(your-page).form" />
						</map>
					</property>
				</bean>
			</entry>
		</map>
	</property>
</bean>

...