[richfaces-issues] [JBoss JIRA] Updated: (RF-8229) ExtendedDataTable: programmatic changes in table state are not reflected visually

Nick Belaevski (JIRA) jira-events at lists.jboss.org
Tue Dec 22 19:05:31 EST 2009


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

Nick Belaevski updated RF-8229:
-------------------------------

    Description: 
Use case description: add new column to the rich:extendedDataTable and make it the first one.

Tried this:

	public void addColumn() throws Exception {
	    UIExtendedDataTable table =(UIExtendedDataTable) component;
	    
	    HtmlColumn column = new HtmlColumn();
	    column.setId("dynamicColumn");
	    column.getChildren().add(new HtmlOutputText());
	    
	    table.getChildren().add(0, column);
	}

but columns is always added the second, because rich:extendedDataTable maintains list of columns and sorting it accordingly. New column is just missing there after addition. Tried to bind "tableState" to the bean, but it's not read back from bean. 

  was:
Use case description: add new column to the rich:extendedDataTable and make it the first one.

Tried this:

	public void addColumn() throws Exception {
	    UIExtendedDataTable table =(UIExtendedDataTable) component;
	    
	    HtmlColumn column = new HtmlColumn();
	    column.setId("dynamicColumn");
	    column.getChildren().add(new HtmlOutputText());
	    
	    table.getChildren().add(0, column);
	}

but columns is always added the second, because rich:extendedDataTable maintains list of columns and sorting it accordingly. New column is just missing there after addition. Tried to bind "tableState" to the bean, but it's not read. 



> ExtendedDataTable: programmatic changes in table state are not reflected visually 
> ----------------------------------------------------------------------------------
>
>                 Key: RF-8229
>                 URL: https://jira.jboss.org/jira/browse/RF-8229
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>            Reporter: Nick Belaevski
>
> Use case description: add new column to the rich:extendedDataTable and make it the first one.
> Tried this:
> 	public void addColumn() throws Exception {
> 	    UIExtendedDataTable table =(UIExtendedDataTable) component;
> 	    
> 	    HtmlColumn column = new HtmlColumn();
> 	    column.setId("dynamicColumn");
> 	    column.getChildren().add(new HtmlOutputText());
> 	    
> 	    table.getChildren().add(0, column);
> 	}
> but columns is always added the second, because rich:extendedDataTable maintains list of columns and sorting it accordingly. New column is just missing there after addition. Tried to bind "tableState" to the bean, but it's not read back from bean. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the richfaces-issues mailing list