[ 
https://issues.apache.org/jira/browse/MYFACES-2758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12879931#action_12879931
 ] 

Martin Koci commented on MYFACES-2758:
--------------------------------------

Please let me know if description of this issue is understandable. If not I can 
provide a project for reproduce this problem.

Temporarily I solved this problem with using VisitHints in 
DebugPhaseListener._doTreeVisit(PhaseEvent, boolean):

Set<VisitHint> hints = new HashSet<VisitHint>(1);
hints.add(VisitHint.SKIP_UNRENDERED);
viewroot.visitTree(VisitContext.createVisitContext(event.getFacesContext(), 
null, hints), _visitCallback);

> DebugPhaseListener tries to get value from unrendered component where value 
> is unavailable
> ------------------------------------------------------------------------------------------
>
>                 Key: MYFACES-2758
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2758
>             Project: MyFaces Core
>          Issue Type: Bug
>          Components: Extension Feature
>    Affects Versions: 2.0.2-SNAPSHOT
>         Environment: myfaces core trunk
>            Reporter: Martin Koci
>
> When in Develepment stage DebugPhaseListener collects useful information 
> about component tree. But there is a problem with construction like this 
> (example is from a real application based on ADF API) :
> <h:dataTable 
> value="#{queryModel.currentDescriptor.conjunctionCriterion.criterionList}" 
> var="node">
> <h:column>
>         <h:selectOneMenu rendered="#{node.attributeCriterion and 
> node.removable}" value="#{node.operator}">
>           <f:selectItems value="#{node.operators}" />
>         </h:selectOneMenu>
>       </h:column>
> </h:dataTable>
> please note that selectOneMenu is rendered only if node is AttributeCriterion 
> because only AttributeCriterion class has property "operator". But 
> DebugPhaseListener tries to get value for every row in DataTable even it is 
> not rendered - it leads in this case to exception:
> javax.el.PropertyNotFoundException: The class 
> 'com.company....ConjunctionCriterion' does not have the property 'operator'

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to