Causing a property map to reload

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Causing a property map to reload

Craig Ambrose
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

Reply | Threaded
Open this post in threaded view
|

Re: Causing a property map to reload

Adrian Crum
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
>
>