Hi Geert,
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) ? 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...?
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'.
at com.uwyn.rife.template.AbstractTemplate setBlock
( AbstractTemplate.java : 85 )
at com.uwyn.rife.template.FilteredTagProcessor processTags
( FilteredTagProcessor.java : 100 )
at com.uwyn.rife.template.AbstractTemplate
_evaluateOgnlConfigTags ( AbstractTemplate.java : 486 )
at com.uwyn.rife.template.AbstractTemplate processLateTags
( AbstractTemplate.java : 243 )
at com.uwyn.rife.template.AbstractTemplate getDeferredContent
( AbstractTemplate.java : 221 )
at com.uwyn.rife.engine.AbstractResponse print
( AbstractResponse.java : 218 )
at com.uwyn.rife.engine.ElementContext print
( ElementContext.java : 1206 )
at com.uwyn.rife.engine.ElementSupport print
( ElementSupport.java : 1158 )
at com.uwyn.rife.authentication.elements.Authenticated
processElement ( Authenticated.java : 521 )
at com.uwyn.rife.engine.ElementContext processContext
( ElementContext.java : 447 )
at com.uwyn.rife.engine.RequestState service
( RequestState.java : 342 )
at com.uwyn.rife.engine.ElementContext processEmbeddedElement
( ElementContext.java : 4106 )
at com.uwyn.rife.engine.ElementContext
processEmbeddedElementsEarly ( ElementContext.java : 1163 )
at com.uwyn.rife.engine.EngineTemplateInitializer initialize
( EngineTemplateInitializer.java : 37 )
at com.uwyn.rife.template.AbstractTemplate initialize
( AbstractTemplate.java : 1102 )
at com.uwyn.rife.template.TemplateFactory get
( TemplateFactory.java : 445 )
at com.uwyn.rife.engine.elements.PrintTemplate getTemplate
( PrintTemplate.java : 75 )
Not sure what I am missing...
regards,
David
------------------------------------------------------------------------
-------------------
David HM Spector
spector (at) zeitgeist.com
http://www.zeitgeist.com/
voice: +1 631.261.5013 fax:
+1 212.656.1443
~ ~ ~
"New and stirring things are belittled because if they are not
belittled, the
humiliating question arises, 'Why then are you not taking part in
them?'"
--H. G. Wells
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users