myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grigoras Cristinel (JIRA)" <incubator-...@incubator.apache.org>
Subject [jira] Commented: (MYFACES-169) h:datatable with nested UIData not working
Date Wed, 06 Apr 2005 14:19:23 GMT
     [ http://issues.apache.org/jira/browse/MYFACES-169?page=comments#action_62273 ]
     
Grigoras Cristinel commented on MYFACES-169:
--------------------------------------------

Hi,

 You are right, 
is a difference from h:dataTable and x:dataTable. 
h:dataTable is working with Set, In x:dataTable are problems.

And I have the same problem with x:aliasBean in level 2.


Cristi


> 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


Mime
View raw message