"ericmacau" wrote : Hello,
|
| How can I add some code in XHTML (under faceletes)?
|
|
There's the beanshell addition to Facelets, but it was developed a long while
ago and may need some updating. But for the most part, you should avoid
scripting logical behavior within the presentation layer and take a more
declarative approach with your UIs.
With that said, you can do some neat things with EL/JSTL:
#{myfn:staticFunction(bean.property)}
Loading Functions within your tag libraries for specialized behavior-- these
can even result in booleans and used in JSTL core/control tags.
#{(bean.boolProp) ? 'A' : (bean.boolProp2) ? 'B' : 'C'}
To inline chains of choice statements instead of doing if/elseif/else clauses.
Much faster too btw.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3924116#3924116
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3924116
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user