Can i somehow add JSF tags to my JSF component renderer class? I'm trying in this way:
writer.append("<f:param name=\"active\" value=\""+tabName+"\"/>");
But, this tag is not recognized by compiler as JSF tag.
Can i somehow add JSF tags to my JSF component renderer class? I'm trying in this way:
writer.append("<f:param name=\"active\" value=\""+tabName+"\"/>");
But, this tag is not recognized by compiler as JSF tag.
Adding JSF tag in renderer which is invoked in Renderer response phase is too late and won't work. You need to modify components tree in java or override renderer according what you want to do.
EDIT after comment
So you do this in jsf page like in this example. You need to notice that <f:param>
need to be a child element of <h:commandLink>
tag. I think your question is about to how to pass parameters to next page. This can be done by creating appropriate <f:param>
way, or ususing hidden inputs fields like you do in Struts. In both cases you need to have field in backing bean to store the value or get it from request.