You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Craig Ambrose <cr...@TastingRoom.com> on 2010/05/20 22:21:27 UTC

Causing a property map to reload

Hello,

Is there a mechanism that would cause my property maps to reload without restarting Ofbiz each time? I'm localizing all of site and would like to see changes to the property files be shown without having to stop and restart ofbiz. I'm specifying the property maps in my *Screens.xml file something like this:

	<screen name="CommonDecorator">
		<section>
			<actions>

				<!-- Specification of property map that I'd like to reload when it changes -->
				<property-map resource="AdminUiLabels" map-name="uiLabelMap" global="true"/>


			</actions>
			<widgets>
				<platform-specific><html><html-template location="component://admin/webapp/admin/htmlHeader.ftl"/></html></platform-specific>
				<platform-specific><html><html-template location="component://admin/webapp/admin/adminHeader.ftl"/></html></platform-specific>
				<decorator-section-include name="body" />
				<platform-specific><html><html-template location="component://admin/webapp/admin/footer.ftl"/></html></platform-specific>
			</widgets>
		</section>
	</screen>


-craig


Re: Causing a property map to reload

Posted by Adrian Crum <ad...@hlmksw.com>.
Use the Web Tools application to clear the properties.* caches.

-Adrian

On 5/20/2010 1:21 PM, Craig Ambrose wrote:
> Hello,
>
> Is there a mechanism that would cause my property maps to reload without restarting Ofbiz each time? I'm localizing all of site and would like to see changes to the property files be shown without having to stop and restart ofbiz. I'm specifying the property maps in my *Screens.xml file something like this:
>
> 	<screen name="CommonDecorator">
> 		<section>
> 			<actions>
>
> 				<!-- Specification of property map that I'd like to reload when it changes -->
> 				<property-map resource="AdminUiLabels" map-name="uiLabelMap" global="true"/>
>
>
> 			</actions>
> 			<widgets>
> 				<platform-specific><html><html-template location="component://admin/webapp/admin/htmlHeader.ftl"/></html></platform-specific>
> 				<platform-specific><html><html-template location="component://admin/webapp/admin/adminHeader.ftl"/></html></platform-specific>
> 				<decorator-section-include name="body" />
> 				<platform-specific><html><html-template location="component://admin/webapp/admin/footer.ftl"/></html></platform-specific>
> 			</widgets>
> 		</section>
> 	</screen>
>
>
> -craig
>
>