properties - How to update the JSF2.0 (Primefaces) tooltips dynamically without server restart -



properties - How to update the JSF2.0 (Primefaces) tooltips dynamically without server restart -

i need update jsf2.0 (primefaces) tooltips dynamically without server restart.

meaning need find way tooltips (atm properties file) of running application can changed without requiring server restart.

we running websphere , deploying non exploded ear (can convince deploy exploded war)

any ideas or tips please. you

the value attribute of p:tooltip component must el look or literal text. usually, 1 reference resource bundle declared using var attribute of f:loadbundle tag, in el look tooltip.

the underlying resource bundle declared using basename attribute backed property file (in case need place property file in appropriate directory on classpath), or matter custom resourcebundle implementation read properties file (located outside container), or database or store matter.

you hence alter existing el look existing 1 defined as:

<f:loadbundle var="msg" basename="propfile_location" />

to

<f:loadbundle var="msg" basename="fully qualified class name of resourcebundle class" />

in simpler words, need roll own resourcebundle class(es) back upwards various locales. needless state, need override resourcebundle.getobject(java.lang.string) method, invoked resourcebundleelresolver implementation when evaluating el expressions referencing resourcebundles.

additionally, need ensure resourcebundle.getobject(java.lang.string) implementation of resourcebundle re-fetch , homecoming value corresponding provided key. failure ensure mean initial value fetched resource bundle may returned on subsequent invocations, if caching initial value. encounter behavior if deploy exploded war file can modify property file contents without redeployment of application, , why of import utilize custom resourcebundle implementation not cache values.

properties jsf-2 tooltip primefaces

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

intellij idea - Update external libraries with intelij and java -

javascript - send data from a new window to previous window in php -