[richfaces-issues] [JBoss JIRA] (RF-12143) [rich:extendedDataTable] setColumnWidth doesn't work correct if 2 tables exists with columns with the same column-id
Rene O (JIRA)
jira-events at lists.jboss.org
Wed Apr 4 10:31:47 EDT 2012
Rene O created RF-12143:
---------------------------
Summary: [rich:extendedDataTable] setColumnWidth doesn't work correct if 2 tables exists with columns with the same column-id
Key: RF-12143
URL: https://issues.jboss.org/browse/RF-12143
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: 4.2.1.CR1
Reporter: Rene O
If you have 2 tables with different table-ids but with identic column-ids, setColumnWidth doesn't work
{code:title=example.xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:rich="http://richfaces.org/rich"
>
<h:head>
<title>JSF Test</title>
</h:head>
<h:body>
<h:form id="myForm">
<h:panelGroup id="itemA">
<rich:extendedDataTable id="tableA" var="item" value="#{model.tableList}" rows="5"
onready="#{rich:component('tableA')}.setColumnWidth('colA','200');">
<f:facet name="header">
<h:outputText value="HeaderA" />
</f:facet>
<rich:column id="colA" width="10px">
<f:facet name="header">
ColA
</f:facet>
#{item.itemA}
</rich:column>
</rich:extendedDataTable>
<rich:extendedDataTable id="tableB" var="itemB" value="#{model.tableList}" rows="5"
onready="#{rich:component('tableB')}.setColumnWidth('colA','500');">
<f:facet name="header">
<h:outputText value="HeaderAB" />
</f:facet>
<rich:column id="colA" width="10px">
<f:facet name="header">
ColAB
</f:facet>
#{itemB.itemA}
</rich:column>
</rich:extendedDataTable>
</h:panelGroup>
</h:form>
</h:body>
</html>
{code}
If you change within tableB the column-id from 'colA' to 'colB' and change within onready of tableB from '#{rich:component('tableB')}.setColumnWidth('colA','500');' to '#{rich:component('tableB')}.setColumnWidth('colB','500');', everything works as expected.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list