EDIT
Cant seem to get rendered
to work correctly with update
attributes. Here is my codes
<ui:define name="left">
<h:form>
<p:commandLink value="Hey"
actionListener="#{bean.setRenderComment}"
update="comment"/>
</h:form>
</ui:define>
<ui:define name="right">
<h:panelGroup id="comment" rendered="#{bean.renderComment}">
hello
</h:panelGroup>
</ui:define>
renderComment
is a boolean attributes inside bean
. setRenderComment
basically toggle the state of renderComment
like this
this.renderComment = !this.renderComment;
Right, every time I click on the link Hey
, I need to refresh to either render hello
on or off. How can I fix it, so that I dont need to refresh