myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mathias Broekelmann (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (MYFACES-985) UIData with multihierarchical children inside produces NPE
Date Fri, 06 Jan 2006 08:47:22 GMT
    [ http://issues.apache.org/jira/browse/MYFACES-985?page=comments#action_12361950 ] 

Mathias Broekelmann commented on MYFACES-985:
---------------------------------------------

You could also use the rendered attribute to switch on or off rendering a component. 

> UIData with multihierarchical children inside produces NPE
> ----------------------------------------------------------
>
>          Key: MYFACES-985
>          URL: http://issues.apache.org/jira/browse/MYFACES-985
>      Project: MyFaces
>         Type: Bug
>   Components: Implementation
>  Environment: Tomcat 5.0
> JDK 1.4
>     Reporter: Andrew Kharchenko 
>     Assignee: Mathias Broekelmann
>  Attachments: UIData NPE Sample.rar
>
> I've found incorrect UIData behaviour under MyFaces which produces NullPointerException
on runtime and which works fine under Sun implementation.
> Here it is:
> I have a custom component which is extentor from UIInput. This component has UIPanel
extentor component as child which is added to children list of UIInput component on rendering.

> For one's turn, UIPanel extentor has one more UIInput extentor component as child which
is added to children list of UIPanel component on rendering.
> This component works fine standalone, but when it is added to UIData, I have NPE on runtime.
Here is the part of listing:
> java.lang.NullPointerException
>  at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:223)
>  at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:235)
>  at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:235)
>  at javax.faces.component.UIData.restoreDescendantComponentStates(UIData.java:235)
>  at javax.faces.component.UIData.setRowIndex(UIData.java:178)
> I will also attach sample component's classes, definitions and test page if it will be
granted after issue creation.

-- 
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


Mime
View raw message