[jbosstools-issues] [JBoss JIRA] (JBIDE-21398) EL var is not resolved correctly when value is set with bean method returning an array

Alexey Kazakov (JIRA) issues at jboss.org
Mon Jan 4 16:42:00 EST 2016


     [ https://issues.jboss.org/browse/JBIDE-21398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexey Kazakov resolved JBIDE-21398.
------------------------------------
    Resolution: Done


> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list