aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
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
h: panelGroup issue
need help while using <nested:write>
passing values from struts2 form to javascript
Refresh data table in parent window when child window is closed
Multiple Actions issue in JSF