hi,
According to the developper guide, i dont give the id to the a4j:outputPanel, i rerender the child id directly. my code does not work like i want. But if i give this id to the a4j:outputPanel, it works.
the STRANGE thing is, In the DOM, like be described in the dev-guide, when child's rendered is false, i have a spaceholder span with the child's id(NOT THE ID WHAT I WANT RERENDER), but a4j can find the component to rerender it.
I use richfaces 3.0.1 GA, code example is here, u can test with it. Just move the id of rich:panel to a4j:outputPanel to make it work.
thanks in advance.
<h:form id="formPresc" style="margin:0px"> <rich:tabPanel switchType="ajax"> <rich:tab label="synthese" > <a4j:actionparam name="gs" value="aaa" assignTo="#{User.login}" /> <a4j:commandLink value="test" reRender="includePage"> <a4j:actionparam name="gs" value="ccc" assignTo="#{User.login}" /> </a4j:commandLink> <h:outputText value="#{User.login}" /> </rich:tab> <rich:tab label="ordonnance" reRender="includePage"> <a4j:actionparam name="gs" value="bbb" assignTo="#{User.login}" /> <a4j:commandLink value="test" reRender="includePage"> <a4j:actionparam name="gs" value="ddd" assignTo="#{User.login}" /> </a4j:commandLink> <h:outputText value="#{User.login}" /> </rich:tab> </rich:tabPanel> </h:form> <a4j:form> <a4j:outputPanel layout="none"> <rich:panel id="includePage" rendered="#{User.login=='ccc'}"> <h:outputText value="#{User.login}" /> </rich:panel> </a4j:outputPanel> </a4j:form> <a4j:log popup="true" hotkey="j" width="800" height="600" />