| Author |
h:commandLink Alternative
|
Abiodun Adisa
Ranch Hand
Joined: Jan 17, 2002
Posts: 495
|
|
|
I am looking to display a link on my web page and when that link is clicked a javascript would be executed, i i use a commandLink the page would get (or appear to get) submitted, is there a tag in JSF that just converts to <a> and does not submit the page
|
 |
Ganesha Kumar
Ranch Hand
Joined: May 04, 2006
Posts: 56
|
|
You can use the tag <h utputLink>. The value attribute of this tag will be used as href attribute of the anchor tag. For the value attribute, you can provide the javascript function as the value.
|
 |
 |
|
|
subject: h:commandLink Alternative
|
|
|