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

Martin Marinschek commented on MYFACES-2758:
--------------------------------------------

Hi Jakob,

we need to make sure for each and every value resolution in the debug phase 
listener that we catch all exceptions and just ignore them - we don't care 
about performance here, we just want to make sure that we don't mess up a page 
with the debug information.

best regards,

Martin

> 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 Kočí
>            Assignee: Jakob Korherr
>             Fix For: 2.0.2-SNAPSHOT
>
>
> 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