This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes how to pass values in onclick method of <h:commandLink> 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 "how to pass values in onclick method of <h:commandLink> " Watch "how to pass values in onclick method of <h:commandLink> " New topic
Author

how to pass values in onclick method of <h:commandLink>

ashish kulkarni
Ranch Hand

Joined: Aug 15, 2002
Posts: 130
Hi
I want to pass some parameters from bean to javascript function in <h:commandLink>, i tried the following


But i get compile time error as
Unterminated <h:commandLink tag

How can i do this?>
C Bell
Greenhorn

Joined: Jun 29, 2009
Posts: 5
Try updating your code to this,


You put another set of double quotes in your javascript onclick method, which would break the tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to pass values in onclick method of <h:commandLink>
 
Similar Threads
passing values from struts2 form to javascript
Multiple Actions issue in JSF
h: panelGroup issue
need help while using <nested:write>
Refresh data table in parent window when child window is closed