0 Replies Latest reply on Oct 17, 2008 7:33 AM by goompas goompas

    How rerender item on other template?

    goompas goompas Newbie

      Hello
      i have page index that is template that include 2 another templates on left side page and content.
      Now in template content i have button that set some parameter in bean and i wanna display this parameter on left side, but rerender called from template content dont work on id that is in template left.
      How do it?
      How call rerender id on other template?

      index.xhtml

      <ui:composition template="index_template.xhtml">
      
       <ui:define name="content">
       <ui:include src="/content/content.xhtml"/>
       </ui:define>
      
       <ui:define name="left">
       <ui:include src="/content/left.xhtml"/>
       </ui:define>
      </ui:composition>


      left.xhtml
      <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">
       <h:outputText id="ltext" value="#{richFacesBean.text}"/>
      </ui:composition>


      content.xhtml
      <ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      
       <a4j:form>
       <a4j:commandButton value="aaa" action="nextb" actionListener="#{richFacesBean.gol}" reRender="left">
       <a4j:actionparam name="username" value="/content/zzzzzz.xhtml" assignTo="#{richFacesBean.text}"/>
       </a4j:commandButton>
      </a4j:form>
      
      </ui:composition>