]
Alexey Kazakov updated JBIDE-21398:
-----------------------------------
Fix Version/s: 4.3.1.Beta2
(was: 4.4.0.Alpha1)
EL var is not resolved correctly when value is set with bean method
returning an array
---------------------------------------------------------------------------------------
Key: JBIDE-21398
URL:
https://issues.jboss.org/browse/JBIDE-21398
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: common/jst/core, jsf
Affects Versions: 4.4.0.Alpha1
Reporter: Viacheslav Kabanovich
Assignee: Viacheslav Kabanovich
Fix For: 4.3.1.Beta2
1. Create a bean class with property returning array:
{code}
public SignOffStatus[] getStatuses() {
return null;
}
{code}
2. Set collection value of an iterative tag with method call rather than property call
{code}
<p:selectOneMenu value="#{instancePage.instanceCriteria.status}">
<f:selectItem itemLabel="--select--" itemValue="#{null}" />
<f:selectItems value="#{appBean.getStatuses()}" var="stat"
itemLabel="#{stat.label}" />
</p:selectOneMenu>
{code}
3. Failure: members of var are not resolved.
If value is set with property call
{code}
value="#{appBean.statuses}"
{code}
and/or if method getStatuses() returns a collection type, then var members resolution
works ok.