[ 
https://issues.jboss.org/browse/RF-12143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jan Papousek updated RF-12143:
------------------------------

    Steps to Reproduce: 
# deploy Metamer and open 
http://localhost:8080/metamer/faces/components/richExtendedDataTable/rf-12143.xhtml
# columns should be 500px and 800px wide (they are not)

    
> [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
>            Assignee: Jan Papousek
>
> 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

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to