[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
Thu Dec 24 01:04:00 EST 2015


    [ https://issues.jboss.org/browse/JBIDE-21374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13144064#comment-13144064 ] 

Viacheslav Kabanovich commented on JBIDE-21374:
-----------------------------------------------

[~akazakov], please take a look at the pull request.

> 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