This content has been marked as final.
Show 2 replies
-
1. Re: How to show/hide <a4j:commandLink/>
ahoehma Dec 11, 2009 4:52 AM (in response to kushanxp)<h:form>
<a4j:outputPanel id="linkContainer" layout="block">
<a4j:commandLink id="link1"
rendered="#{bean.shouldRenderLink1}"
reRender="linkContainer"/>
<a4j:commandLink id="link2"
rendered="#{bean.shouldRenderLink2}"
reRender="linkContainer"/>
</a4j:outputPanel>
</h:form>
Try this (untested) -
2. Re: How to show/hide <a4j:commandLink/>
ahoehma Dec 11, 2009 4:55 AM (in response to kushanxp)Or via javascript:
<h:form> <a4j:commandLink id="link1" onclick="${rich:element('link2').hide();}"/> <a4j:commandLink id="link2"/> </h:form>