wood burning stoves 2.0*
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: 7
Try updating your code to this,


You put another set of double quotes in your javascript onclick method, which would break the tag.
 
GeeCON Prague 2014
 
subject: how to pass values in onclick method of <h:commandLink>