2 Replies Latest reply on Feb 18, 2011 12:45 AM by Murali Kumar

    extendedDataTable adding repeated columns

    Murali Kumar Newbie

      Hi All,

       

      In the extendedDataTable, when i load the data into that repeatedly added extra columns those already in the table.

       

      Could please suggest me to avoid repeated columns. Here is the screen shot:

       

      table.JPG

       

      Thanks

      Murali

        • 2. extendedDataTable adding repeated columns
          Murali Kumar Newbie

          Hi Aman,

           

          Here is the code :

           

          <rich:extendedDataTable height="350px" width="100%"
                 binding="#{personHelper.table}"
                 selectedClass="dataTableSelectedRow" selectionMode="single"
                 id="contactInfoTableComponent" columnClasses="col"
                 value="#{searchResult}" var="info"
                 selection="#{personHelper.simpleSelection}"
                 tableState="#{personHelper.contactTableState}" rendered="true"
                 noDataLabel="No Results. Please try again using different search criteria">

                 <rich:column id="checkSsoComponent" sortable="false" width="10%"
                  style="text-align:center;vertical-align: middle;">
                  <f:facet name="header">
                   <h:outputText styleClass="headerText" value=" " />
                  </f:facet>

                  <h:selectOneRadio id="personCheckboxComponent"
                   style="font-weight:bold;"
                   onclick="javascript:checkSingleContactValueComponent(#{searchResult.size()},this.id);">
                   <f:selectItem id="personCheckboxItemComponent"
                    itemValue="#{info.contactId}">

                   </f:selectItem>
                   <f:param name="selectedSSO" value="#{info.contactId}" />
                  </h:selectOneRadio>

                 </rich:column>
                 <rich:column id="ssoComponent" sortable="false" width="15%"
                  style="text-align:center;vertical-align: middle;">
                  <f:facet name="header">
                   <h:outputText styleClass="headerText" value="SSO" />
                  </f:facet>
                  <h:outputText value="#{info.contactId}" />
                 </rich:column>
                 <rich:column id="firstnameComponent" sortable="false" width="20%"
                  style="text-align:center;vertical-align: middle;">
                  <f:facet name="header">
                   <h:outputText styleClass="headerText" value="First Name" />
                  </f:facet>
                  <h:outputText value="#{info.firstName}" />
                 </rich:column>
                 <rich:column id="lastnameComponent" sortable="false" width="20%"
                  style="text-align:center;vertical-align: middle;">
                  <f:facet name="header">
                   <h:outputText styleClass="headerText" value="Last Name" />
                  </f:facet>
                  <h:outputText value="#{info.lastName}" />
                 </rich:column>
                 <rich:column id="emailComponent" sortable="false" width="35%"
                  style="text-align:center;vertical-align: middle;">
                  <f:facet name="header">
                   <h:outputText styleClass="headerText" value="Email Address" />
                  </f:facet>
                  <h:outputText value="#{info.email}" />
                 </rich:column>

                 <a4j:support
                  reRender="loginCompForm:nameofpersonComp,loginCompForm:emailaddressComp"
                  id="take_selection_Component" status="waitStatusComp"
                  oncomplete="#{rich:component('waitModalPanelComp')}.hide(); return false"
                  action="#{personHelper.takeContactSelection}"
                  event="onselectionchange" />

                </rich:extendedDataTable>