[jbosstools-issues] [JBoss JIRA] (JBIDE-21374) EL var is not resolved correctly when value is set with bean method returning an array
Viacheslav Kabanovich (JIRA)
issues at jboss.org
Mon Dec 21 09:54:00 EST 2015
Viacheslav Kabanovich created JBIDE-21374:
---------------------------------------------
Summary: EL var is not resolved correctly when value is set with bean method returning an array
Key: JBIDE-21374
URL: https://issues.jboss.org/browse/JBIDE-21374
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.4.0.Alpha1
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.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbosstools-issues
mailing list