You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Yee CN <ye...@streamyx.com> on 2005/11/09 07:35:52 UTC
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
Re: 2 dataTables in same page cause havoc
Posted by Martin Marinschek <ma...@gmail.com>.
right, you mean the check on storing the view.
yes, that should be in there - strange that the check wouldn't work.
I added another check later than that which checks as soon as you add
a component to a parent component if the parent component already has
children with the same id...
regards,
Martin
On 11/10/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> it should be in the 1.1.1 since it was a spec issue
>
> 2005/11/10, Martin Marinschek <ma...@gmail.com>:
> > Maybe because Yee is using 1.1.1 and not the nightly build?
> >
> > regards,
> >
> > Martin
> >
> > On 11/10/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > > I wonder how this could happen without an exception since we added the
> > > check for duplicate ids ...
> > >
> > > 2005/11/9, Mike Kienenberger <mk...@gmail.com>:
> > > > The problem is that you've used the same id value for both: "data"
> > > >
> > > > Name one "data1" and name the other "data2".
> > > >
> > > > All id values must be unique.
> > > >
> > > > On 11/9/05, Yee CN <ye...@streamyx.com> wrote:
> > > > >
> > > > >
> > > > >
> > > > > 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:yeecn@streamyx.com]
> > > > > 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
> > > >
> > >
> > >
> > > --
> > > Mathias
> > >
> >
> >
> > --
> >
> > http://www.irian.at
> >
> > Your JSF powerhouse -
> > JSF Consulting, Development and
> > Courses in English and German
> >
> > Professional Support for Apache MyFaces
> >
>
>
> --
> Mathias
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: 2 dataTables in same page cause havoc
Posted by Mathias Brökelmann <mb...@googlemail.com>.
it should be in the 1.1.1 since it was a spec issue
2005/11/10, Martin Marinschek <ma...@gmail.com>:
> Maybe because Yee is using 1.1.1 and not the nightly build?
>
> regards,
>
> Martin
>
> On 11/10/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> > I wonder how this could happen without an exception since we added the
> > check for duplicate ids ...
> >
> > 2005/11/9, Mike Kienenberger <mk...@gmail.com>:
> > > The problem is that you've used the same id value for both: "data"
> > >
> > > Name one "data1" and name the other "data2".
> > >
> > > All id values must be unique.
> > >
> > > On 11/9/05, Yee CN <ye...@streamyx.com> wrote:
> > > >
> > > >
> > > >
> > > > 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:yeecn@streamyx.com]
> > > > 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
> > >
> >
> >
> > --
> > Mathias
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces
>
--
Mathias
Re: 2 dataTables in same page cause havoc
Posted by Martin Marinschek <ma...@gmail.com>.
Maybe because Yee is using 1.1.1 and not the nightly build?
regards,
Martin
On 11/10/05, Mathias Brökelmann <mb...@googlemail.com> wrote:
> I wonder how this could happen without an exception since we added the
> check for duplicate ids ...
>
> 2005/11/9, Mike Kienenberger <mk...@gmail.com>:
> > The problem is that you've used the same id value for both: "data"
> >
> > Name one "data1" and name the other "data2".
> >
> > All id values must be unique.
> >
> > On 11/9/05, Yee CN <ye...@streamyx.com> wrote:
> > >
> > >
> > >
> > > 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:yeecn@streamyx.com]
> > > 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
> >
>
>
> --
> Mathias
>
--
http://www.irian.at
Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German
Professional Support for Apache MyFaces
Re: 2 dataTables in same page cause havoc
Posted by Mathias Brökelmann <mb...@googlemail.com>.
I wonder how this could happen without an exception since we added the
check for duplicate ids ...
2005/11/9, Mike Kienenberger <mk...@gmail.com>:
> The problem is that you've used the same id value for both: "data"
>
> Name one "data1" and name the other "data2".
>
> All id values must be unique.
>
> On 11/9/05, Yee CN <ye...@streamyx.com> wrote:
> >
> >
> >
> > 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:yeecn@streamyx.com]
> > 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
>
--
Mathias
Re: 2 dataTables in same page cause havoc
Posted by Mike Kienenberger <mk...@gmail.com>.
The problem is that you've used the same id value for both: "data"
Name one "data1" and name the other "data2".
All id values must be unique.
On 11/9/05, Yee CN <ye...@streamyx.com> wrote:
>
>
>
> 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:yeecn@streamyx.com]
> 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
RE: 2 dataTables in same page cause havoc
Posted by Yee CN <ye...@streamyx.com>.
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,standardTab
le_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,standardTab
le_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:yeecn@streamyx.com]
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