[ 
http://issues.apache.org/jira/browse/MYFACES-331?page=comments#action_12315826 
] 

Mathias Broekelmann commented on MYFACES-331:
---------------------------------------------

I´ve tried your example and saw that the refresh don´t work. I analysed your 
code of RowAndColumnRelationshipsHtmlDataTable.saveState and saw that you don´t 
save the state of the dynamically added components as I would expect. You have 
to save the state of the valuebindings (don´t set them to null before calling 
super.saveState()). That´s the reason why the UIColumns component has a null 
value ofter refreshing.

You use some custom valuebinding implementations which don´t implement 
saveState and restoreState Methods.

Maybe you can save a lot of trouble if you use the x:columns component in the 
jsf page b/c I don´t see any reasons for the dynamic way you did (at least for 
this example). 
Take a look into the myfaces-wiki for x:columns: 
http://wiki.apache.org/myfaces/Dynamic_Columns


> post-Mathias-Broekelmann x:dataTable doesn't work with dynamically-created 
> UIColumns data.
> ------------------------------------------------------------------------------------------
>
>          Key: MYFACES-331
>          URL: http://issues.apache.org/jira/browse/MYFACES-331
>      Project: MyFaces
>         Type: Bug
>     Versions: Nightly Build
>     Reporter: Mike Kienenberger
>     Assignee: Mathias Broekelmann
>  Attachments: RowAndColumnRelationshipComponent.zip
>
> Mathias, I still have to use the BEFORE_SVN_REORG version as your new
> dataTable code still isn't working with programmically-created
> UIColumns elements -- they get lost after a page refresh, probably due
> to a save/restore state issue.   My programmically-created 
> footer-with-UICommand and UI-Column-with-UIOutput row header are saved and 
> restored properly, though.

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

Reply via email to