myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Kočí (JIRA) <>
Subject [jira] Created: (MYFACES-3033) Improve DebugPhaseListener for UIData and SKIP_ITERATION
Date Mon, 07 Feb 2011 11:07:30 GMT
Improve DebugPhaseListener for UIData and SKIP_ITERATION

                 Key: MYFACES-3033
             Project: MyFaces Core
          Issue Type: Improvement
          Components: General
    Affects Versions: 2.1.0
            Reporter: Martin Kočí

<h:dataTable var="row" >
    <h:outputText rendered="#{bean.isRendered(row)}"

There is new VisitHint.SKIP_ITERATION in JSF 2.1. If that hint is used UIData iterate over
children in "flat" manner and therefore no row is available - bean.isRendered(row) obtains
null as parameter and NPE can happen. One problem in this situation is a component tree walk
before RESTORE_VIEW from DebugPhaseListener:

at org.apache.myfaces.view.facelets.el.TagValueExpression.getValue(
at javax.faces.component._DeltaStateHelper.eval(
at javax.faces.component.UIComponentBase.isRendered
at javax.faces.component.UIComponentBase.visitTree(
at org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener._doTreeVisit(
at org.apache.myfaces.view.facelets.tag.ui.DebugPhaseListener.afterPhase(

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message