[ 
http://issues.apache.org/jira/browse/MYFACES-169?page=comments#action_62268 ]
     
Mathias Broekelmann commented on MYFACES-169:
---------------------------------------------

You are right it is quite difficult to reproduce the bug.
Creating a testcase for these complex parts may help a lot.

Another point may be the different implementation for x:datatable and 
h:datatable for that part. x:datatable still contains the old code which was 
copied from h:datatable before UIData was changed.

We also have problems with the phase listener 
org.apache.myfaces.component.html.ext.HtmlDataTablePhaseListener which is 
registered for the HtmlDataTable. It doen�t work if the datatable uses a 
managed bean which was aliased by a parent AliasBean component.

> h:datatable with nested UIData not working
> ------------------------------------------
>
>          Key: MYFACES-169
>          URL: http://issues.apache.org/jira/browse/MYFACES-169
>      Project: MyFaces
>         Type: Sub-task
>     Versions: Nightly Build
>     Reporter: Mathias Broekelmann

>
> h:datatable is not working with a nested UIData component.
> An exception is thrown "No initial state defined for clientId ..." in 
> UIData.restoreDescendantComponentStates(...) Line 403 if the page is rendered 
> for the first time.
> The patch for the issue 142 only reloved the problem with nested 
> EditableValueHolder components.
> Here is a patch which works for both UIData and EditableValueHolder 
> components:
> Index: UIData.java
> ===================================================================
> RCS file: 
> /home/cvspublic/incubator-myfaces/src/jsfapi/javax/faces/component/UIData.java,v
> retrieving revision 1.30
> diff -u -r1.30 UIData.java
> --- UIData.java       24 Mar 2005 16:46:02 -0000      1.30
> +++ UIData.java       6 Apr 2005 07:14:26 -0000
> @@ -185,7 +185,7 @@
>                       }
>               }
>  
> -             restoreDescendantComponentStates(getFacesContext(), this, true);
> +             restoreDescendantComponentStates(getFacesContext(), this, 
> !_firstTimeRendered);
>       }
>  
>       //    private int getDescendantStatesRowIndex()
> @@ -415,7 +415,7 @@
>                                       continue;
>                               }
>  
> -                             if (!_firstTimeRendered && child instanceof 
> EditableValueHolder)
> +                             if (child instanceof EditableValueHolder)
>                               {
>                                       EditableValueHolder childEVH = 
> (EditableValueHolder) child;
>                                       Object state =

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira

Reply via email to