Two Laptop Bag*
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript 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!
 
 
subject: How to send JSF Expression Language value as paramter to javascript function