JSF: Is there a way to bind method to h:outputLink? -
i working on this:
a jsf template has side-navigation bar contains links(either anchor or h:outputlink), , there cases 2 options lead same link(page), different value in view parameter, , rendering different data being displayed on page.
is there way this? using commandlink or commandbutton not seem option me since mess styling.
thanks in advance.
an output link normal html link, conventional way query parameter, e.g. /contentarea.xhtml?myparam=value
.
i don't think should bind method output link. involve javascript onclick handler (commandlink
), , don't think that's necessary here. said, i'm surprised commandlink
messes styling, renders normal html link.
see also
- http://incepttechnologies.blogspot.ca/p/view-parameters-in-jsf-20.html (see first technique using
f:viewparam
) - http://www.mkyong.com/jsf2/jsf-2-link-commandlink-and-outputlink-example/
Comments
Post a Comment