aspose file tools*
The moose likes JSF and the fly likes h:commandLink Alternative Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "h:commandLink Alternative" Watch "h:commandLink Alternative" New topic
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 <hutputLink>. 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.
 
wood burning stoves
 
subject: h:commandLink Alternative