This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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!
 
Consider Paul's rocket mass heater.
 
subject: How to send JSF Expression Language value as paramter to javascript function
 
Similar Threads
MultiDimenaional Array sort
Multiple Actions issue in JSF
Problem in integrating Single GWt Textboxs in jsp
iterating with a scriptlet, can't get the values into js arr
Submit dynamically created form with jQuery