[jbosstools-issues] [JBoss JIRA] (JBIDE-21374) EL var is not resolved correctly when value is set with bean method returning an array
Marián Labuda (JIRA)
issues at jboss.org
Mon May 23 04:02:00 EDT 2016
[ https://issues.jboss.org/browse/JBIDE-21374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Marián Labuda closed JBIDE-21374.
---------------------------------
Verified in Red Hat Developer Studio with build id: Alpha1-v20160520-0424-B5396.
> 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