aspose file tools
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
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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://jrebel.com/download
 
subject: How to send JSF Expression Language value as paramter to javascript function
 
Similar Threads
Multiple Actions issue in JSF
MultiDimenaional Array sort
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