aspose file tools
The moose likes JSF and the fly likes EL-rendering of if-then-else Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "EL-rendering of if-then-else" Watch "EL-rendering of if-then-else" New topic
Author

EL-rendering of if-then-else

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
I want to use this expresion:

This works:


But this does not work, as the String within the expression ' today' cannot be resolved:


How can I express that?
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Use JSTL fn:join to concat strings in EL or use two separate expressions.


Code depot of a Java EE / JSF developer | JSF / Eclipse / Tomcat kickoff tutorial | DAO kickoff tutorial | I ♥ Unicode
nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
thanks:-)
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
You're welcome.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: EL-rendering of if-then-else
 
Similar Threads
Bean value doubt
On combo selection, components visibility need to change
Richfaces scrollableDataTable
closing tag > as value?
redirect url