Below are the tables. The symptom seems to be that the second table is displaying the first row on all the rows.

 

 

<H3>Division Roles</H3>

<t:dataTable id="data"

             styleClass="scrollerTableNoWidth"

             headerClass="standardTable_Header"

             footerClass="standardTable_Header"

             rowClasses="standardTable_Row1,standardTable_Row2"

             columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"

             rowOnMouseOver="this.style.backgroundColor='#A5CBFF'"

             rowOnMouseOut="this.style.backgroundColor='#FFFFE0'"

             rowOnClick="this.style.backgroundColor='#FFE0E0'"

             rowOnDblClick="this.style.backgroundColor='#E0E0E0'"

             var="row"

             value="#{userBean.userRolesDataModel.data}"

             preserveDataModel="false" >

            

    <t:columns id="columns" value="#{userBean.userRolesDataModel.columnHeaders}" var="columnHeader"

                  style="width:#{userBean.userRolesDataModel.columnWidth}px;text-align: center" >

        <f:facet name="header">

                  <h:outputText value="#{columnHeader.label}" />

        </f:facet>

        <!-- row is also available -->

        <h:selectBooleanCheckbox id="selboolean" rendered="#{userBean.userRolesDataModel.booleanValue}" value="#{userBean.userRolesDataModel.columnValue}"/>

      <h:outputText rendered="#{userBean.userRolesDataModel.stringValue}" value="#{userBean.userRolesDataModel.columnValue}"/>

                  </t:columns>

              </t:dataTable>

 

                  <H3>Company Roles</H3>

                <t:dataTable id="data"

                        styleClass="standardTable"

                        headerClass="standardTable_Header"

                        footerClass="standardTable_Header"

                        rowClasses="standardTable_Row1,standardTable_Row2"

                        columnClasses="standardTable_Column,standardTable_ColumnCentered,standardTable_Column"

                        var="role"

                        value="#{userBean.companyRolesSelectList}">

 

                   <t:column>

                        <h:selectBooleanCheckbox id="selCompanyRole"

                              value="#{role.selected}"/>

        <h:outputLabel for="selCompanyRole" value="#{role.roleId}" />

   </t:column>

</t:dataTable>

 

 


From: Yee CN [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 9 November 2005 2:36 PM
To: 'MyFaces Discussion'
Subject: Bug: 2 dataTables in same page cause havoc

 

Hi,

 

I think I found a bug in t:dataTable and t:newspaperTable. I have a page with two tables. The second one is always wrong.

I experimented by swapping the tables. The first table is always OK but the second is always wrong. It applies to both t:dataTable and t:newspaperTable.

 

Is that a know bug? Is there a way around it?

 

Thanks

 

Regards,

Yee

Reply via email to