Hello!
 
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 (in encodeChildren method).
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 (in encodeChildren method).

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)
 
Does anyone know how to workaround this problem? I have to find solution as quick as possible.
 
Also I've created JIRA issue (http://issues.apache.org/jira/browse/MYFACES-985) but there is no response from MyFaces team on it (for example assignment to developer).
 
---
Sincerely,
Kharchenko Andrew

Reply via email to