This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JSF and the fly likes How to send JSF Expression Language value as paramter to javascript function Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "How to send JSF Expression Language value as paramter to javascript function" Watch "How to send JSF Expression Language value as paramter to javascript function" New topic
Author

How to send JSF Expression Language value as paramter to javascript function

Corey Harden
Greenhorn

Joined: Apr 27, 2009
Posts: 11
Hi,
When an input field is focused on, I'm trying to call a javascript function with the parameter for the function being a JSF Expression Language value.
I know that this is allowed in regular JSP's where you pass a java variable to a function like so: onFocus="someFunction(<%= var %>)
So my question is what is the equivalent of this expression in ADF Faces using expression language (EL). This is the code that I have tried
in the onFocus attribute:



Thanks in advance for your help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to send JSF Expression Language value as paramter to javascript function