File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login
JavaRanch » Java Forums » Java » JSF
Reply 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.
 
 
subject: how to pass values in onclick method of <h:commandLink>
 
Similar Threads
Multiple Actions issue in JSF
Refresh data table in parent window when child window is closed
h: panelGroup issue
passing values from struts2 form to javascript
need help while using <nested:write>