Hi David,

WRT storing system preferences: In http://rifers.org/wiki/display/ RIFE/Config+to+preferences+storage you discuss keeping preferences inside the app's DB using standard Java preferences: Since I am packaging my app in a WAR file, can this be used to override params in the static XML files (I am thinking about system params link the SQL TRACE parameter for debugging) ?

This is something that you typically do with host name configuration selectors: http://rifers.org/wiki/display/RIFE/Configuration+selectors

Or, should this be used only more dynamic params, such as a flag that indicate is the app is online, or if logins are allowed, etc...?

I use it for user installation configuration. For instance, Bamboo uses it to store the settings of a particular forum instance that override the default settings, setup in the distribution XML file.

On the blockvalue scripting front, I tried to use OGNL to test if there was a global flag set in my params (in this case to see if registration should be allowed) ... if it was set to "false" in my app params.xml file it worked as I expected, not showing the register/reset-password links, but when it was set to "true" I got a template error telling me there was no such parameter on the page.

<!--B 'OGNL:CONFIG:bool:[[ getBool("ALLOW_REGISTRATION") ]]'-->
<h3><span class="blue">No account?</span> <a href="${v EXIT:QUERY:register/}"> Register now!</h3></a> <h3><span class="blue">Forgotten Password?</span> <a href="$ {v EXIT:QUERY:newpassword/}"> Reset It</h3></a>
<!--/B-->

The template doesn't contain a value with id 'OGNL:CONFIG:bool'.
Not sure what I am missing...

You need a <!--V 'OGNL:CONFIG:bool'--><!--/V--> value tag where the content of the B tag can be assigned to when the block scripting expression evaluates to 'true'.
http://rifers.org/wiki/display/RIFE/Blockvalue+scripting+support

Hope this helps,

Geert

--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to