Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-21374

EL var is not resolved correctly when value is set with bean method returning an array

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Alpha1
    • 4.4.0.Alpha1
    • common, jsf
    • None

      1. Create a bean class with property returning array:

      	public SignOffStatus[] getStatuses() {
      		return null;
      	}
      

      2. Set collection value of an iterative tag with method call rather than property call

      <p:selectOneMenu value="#{instancePage.instanceCriteria.status}">
      	<f:selectItem itemLabel="--select--" itemValue="#{null}" />
      	<f:selectItems value="#{appBean.getStatuses()}" var="stat" itemLabel="#{stat.label}" />
      </p:selectOneMenu>
      

      3. Failure: members of var are not resolved.

      If value is set with property call

          value="#{appBean.statuses}"
      

      and/or if method getStatuses() returns a collection type, then var members resolution works ok.

            scabanovich Viacheslav Kabanovich (Inactive)
            scabanovich Viacheslav Kabanovich (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: