1 Reply Latest reply on Jan 25, 2008 5:08 AM by ilya_shaikovsky

    JSF reRender failed when crossing facelets ui:define block

    jinkam

      The JSF code like follows, the a:commandLink cannot reRender a:outputPanel area with id=MainContent.
      Is there some trick with this, or This is the limitation of facelets.
      How to handle this problem? Thanks


      <ui:define name="sider">
      <h:form>
      <a:commandLink value="name" action="#{obj.someAction} reRender="MainContent"/>
      </h:form>
      </ui:define>

      <ui:define name="content">
      <a:outputPanel id="MainContent">
      <rich:tabPanel ...>
      ...
      </rich:tabPanel>
      </a:outputPanel>
      </ui:define>
      </ui:define>

        • 1. Re: JSF reRender failed when crossing facelets ui:define blo
          ilya_shaikovsky

          seems strange

          <ui:composition template="/templates/common.xhtml">
           <ui:define name="body">
           <h:form>
           <h:inputText value="#{bean.property}">
           <a4j:support event="onkeyup" reRender="output"/>
           </h:inputText>
           <a4j:log popup="false" style="height:200px"/>
           </h:form>
           </ui:define>
           <ui:define name="body2">
           <h:outputText value="#{bean.property}" id="output"/>
           </ui:define>
          </ui:composition>


          Works fine for me