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.