2 Replies Latest reply on Dec 11, 2008 12:36 PM by zjda

    Not display rich:extendedDataTable when it is in a4j:include

    zjda

      When I put rich:extendedDataTable in a4j:include, it does not paint the component (just a grey box) unless I resize the browser window. It happens in both IE and Firefox. Other components in the included xhtml display correctly. Is it a richfaces bug? Any solution?

      Thanks in advance,
      -ZJ

      <rich:panel styleClass="wizard" style="margin: 0px;">
       <h:form id="formContent" styleClass="no-gap-form">
       <a4j:include id="content" viewId="/pages/admin/accountTable.xhtml" />
       </h:form>
      </rich:panel>
      


      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich">
      
      <div style="position: relative; min-height: 400px;">
      <rich:extendedDataTable value="#{capitalsBean.capitals}" var="cap"
       id="table" width="100%" height="300px"
       sortMode="#{extendedTableBean.sortMode}"
       selectionMode="#{extendedTableBean.selectionMode}">
       <rich:column sortable="false">
       <f:facet name="header">
       <h:outputText value="Flag" />
       </f:facet>
       <h:graphicImage value="#{cap.stateFlag}" />
       </rich:column>
       <rich:column sortable="true" sortBy="#{cap.state}"
       filterBy="#{cap.state}" filterEvent="onkeyup" width="170px">
       <f:facet name="header">
       <h:outputText value="State Name" />
       </f:facet>
       <h:outputText value="#{cap.state}" />
       </rich:column>
       <rich:column sortable="true" sortBy="#{cap.name}"
       filterBy="#{cap.state}" filterEvent="onkeyup" width="170px">
       <f:facet name="header">
       <h:outputText value="State Capital" />
       </f:facet>
       <h:outputText value="#{cap.name}" />
       </rich:column>
       <rich:column sortable="false">
       <f:facet name="header">
       <h:outputText value="Time Zone" />
       </f:facet>
       <h:outputText value="#{cap.timeZone}" />
       </rich:column>
       </rich:extendedDataTable>
      </div>
      </ui:composition>