Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-7093

communitcation from scriptlet to jsf managed bean is not working

XMLWordPrintable

      Here is the sample code.
      <%

      for (int i = 1; i < 5; i++) {
      HeaderBean header = new HeaderBean();
      header.setScreenID("" + i);
      application.setAttribute("HeaderBean", header);
      %>

      <h:outputText value="#

      {HeaderBean.screenID}

      "> </h:outputText>

      <%}%>

      its always displaying the last value,the out put is "4444" instead of "1234". Is this expected behavior?

              ssilvert@redhat.com Stan Silvert
              anil3379 anil kumar (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: