[ http://issues.apache.org/jira/browse/MYFACES-169?page=all ]
Grant Smith closed MYFACES-169:
-------------------------------
Fix Version: Nightly Build
Resolution: Fixed
Thanks Mathias
> 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
> Fix For: Nightly Build
>
> 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
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira