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

Jakob Korherr commented on MYFACES-2758:
----------------------------------------

Yes, of course this is understandable - thanks for the bugreport :)

I think your workaround is the best fix for this issue. Otherwise we will run 
into a lot of problems that are similar like this one. I will commit the 
proposed solution soon ;)

> 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