1 Reply Latest reply on Jun 13, 2007 3:56 AM by ratondeau

    content of modal panel disappearing after <ui:include>

    ratondeau

      Hello,

      I have different tabs in a modal panel.

      I want to insert a template into a simple toggle panel but after clicking the tab the whole modal panel is empty:

      <rich:tab id="userOverview" label="#{msg['users']}">
       <h2><h:outputText value="#{msg['useradmin_title']}"/></h2>
       <h:panelGrid columns="2" cellpadding="3" cellspacing="0">
       <h:panelGroup>
       <rich:dataTable id="userData"
       var="customer"
       value="#{customerDao.allCustomers}"
       rows="15"
       rowClasses="tableRow1, tableRow2"
       columnClasses="tableCol">
       <a4j:support event="onClick" actionListener="#{dataTableBean.rowSelected}" />
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <a4j:commandLink value="#{msg.firstname}" actionListener="#{dataTableBean.sortListener}" reRender="userData"/>
       </h:column>
       <h:column>
       <a4j:commandLink value="#{msg.lastname}" actionListener="#{dataTableBean.sortListener}" reRender="userData"/>
       </h:column>
       <h:column>
       <a4j:commandLink value="#{msg.email}" actionListener="#{dataTableBean.sortListener}" reRender="userData"/>
       </h:column>
       </rich:columnGroup>
       </f:facet>
       <h:column>
       <h:outputText value="#{customer.firstName}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{customer.lastName}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{customer.email}"/>
       </h:column>
       </rich:dataTable>
       <rich:spacer height="5" />
       <rich:datascroller for="userData" maxPages="20" />
       </h:panelGroup>
      
      ...
       <rich:simpleTogglePanel opened="true" switchType="ajax" label="#{msg['create_user']}...">
       <ui:include src="/include/customer-details.xhtml"/>
       <h:commandButton action="ok" value="Ok" />
       <h:commandButton action="cancel" value="Cancel"/>
       </rich:simpleTogglePanel>
       </rich:tab>
      


      What can I do to solve this?

      Matt