This content has been marked as final.
Show 2 replies
-
1. Re: rendered not work correctly...
ilya_shaikovsky Aug 11, 2008 10:53 AM (in response to nguyendu0102)you should not reRender conditionally rendered elements. wrap this panel with some parent panelGroup or outputPanel and renreder this paretn instead. (B.t.w. all such FAQ described in demo and our docs.)
-
2. Re: rendered not work correctly...
nguyendu0102 Aug 12, 2008 1:10 AM (in response to nguyendu0102)Tks so much!
i solved my problem. The code like this:
<a4j:form>
<a4j:commandLink id="b" action="#{test.action}" reRender="b,p,l"
value="Action" immediate="true" ajaxSingle="true"></a4j:commandLink>
<h:outputText value="#{test.uploaded}" id="l"></h:outputText>
<h:panelGroup id="p">
<rich:panel rendered="#{test.uploaded}">
<h:outputText value="#{test.uploaded}"></h:outputText>
</rich:panel>
</h:panelGroup>
</a4j:form>