File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes JSF EL: nested ${} Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF EL: nested ${}" Watch "JSF EL: nested ${}" New topic
Author

JSF EL: nested ${}

Tim Wise
Greenhorn

Joined: Jul 25, 2009
Posts: 15
Hello,

It is not possible to use ${} EL markup inside outer ${} expression. But is it possible to workaround this? What I want to do is to pass a parameter to a EL function, while the parameter itslef is not hardocoded, but is stored in a variable. I have custom fecelet EL function, and a custom tag using this function. I'm passing parameter to a tag, and want to use it as a EL function parameter, but obvoiusly this is not working this way:

page source code:

tag xhtml description
I guess there must be other way to pass in the parameter. Could you suggest something?

Thank you!
Tim
Kavita Tipnis
Ranch Hand

Joined: Sep 21, 2008
Posts: 177
Take a look at <f:param> and I believe you should be able to modify your custom component to support this
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSF EL: nested ${}
 
Similar Threads
HS&J - How to get JSP init parameters using EL
What should i assign for body-content in tag file to evaluate EL
passing param from request to xsl stylesheet..
Non-scripting....
Way to pass parameters to a bean in JSTL?