[richfaces-issues] [JBoss JIRA] Commented: (RF-10154) UIDataAdaptor vs. UIData visitTee small difference

Martin Kočí (JIRA) jira-events at lists.jboss.org
Thu Jan 13 10:25:50 EST 2011


    [ https://issues.jboss.org/browse/RF-10154?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12575361#comment-12575361 ] 

Martin Kočí commented on RF-10154:
----------------------------------

This problem appears only if project stage is Development, because myfaces use an extra component walk for debug informations collecting:

Caused by: java.lang.NullPointerException
	at cz.aura.faces.richfaces.Snippet.isRendered(Snippet.java:44)
....
at org.richfaces.component.UIDataAdaptor.visitComponents(UIDataAdaptor.java:1280)
at org.richfaces.component.UIDataAdaptor.visitDataChildren(UIDataAdaptor.java:1307)
at org.richfaces.component.UIDataTableBase.visitDataChildren(UIDataTableBase.java:337)
at org.richfaces.component.AbstractExtendedDataTable.visitDataChildren(AbstractExtendedDataTable.java:138)
at org.richfaces.component.UIDataAdaptor.visitTree(UIDataAdaptor.java:1381)
....
at org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener._doTreeVisit(DebugPhaseListener.java:310)
at org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener.afterPhase(DebugPhaseListener.java:286)

please note the DebugPhaseListener which is involved. This is done for RESTORE_VIEW phase too and in that case org.richfaces.component.UIDataAdaptor.requiresRowIteration(FacesContext) returns false. 



> UIDataAdaptor vs. UIData visitTee small difference
> --------------------------------------------------
>
>                 Key: RF-10154
>                 URL: https://issues.jboss.org/browse/RF-10154
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-tables
>    Affects Versions: 4.0.0.Milestone5
>         Environment: RichFaces 4.0.X trunk, svn rev. 20913
>            Reporter: Martin Kočí
>            Assignee: Nick Belaevski
>            Priority: Minor
>             Fix For: 4.0.0.CR1
>
>
> <r:extendedDataTable var="zeile">
> <r:column>
>   <h:outputText rendered="#{fasole.method(zeile)}"
> </r:column>
> </r:extendedDataTable>
> +
>  org.richfaces.component.UIDataAdaptor.visitTree(VisitContext, VisitCallback) with VisitHint SKIP_UNRENDERED (in render response phase for example)
> Problem: org.richfaces.component.UIDataAdaptor.visitDataChildren(VisitContext, VisitCallback, boolean) calls visitComponents(getFacetsAndChildren(), visitContext, callback);-> it will visit h:outputText component and test if is rendered -> #{fasole.method(zeile)} but no row available -> calls fasole.method with null parameter and causes an unexpected NPE
> j.f.c.UIData does not visit column chidren for -1 rowIndex (null rowKey in RichFaces), UIData.visitTree JavaDoc says: "Take no action on non-UIColumn children".

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the richfaces-issues mailing list