3 Replies Latest reply on Jul 11, 2009 3:31 PM by Stan Silvert

    communication from scriptlet to jsf managed bean is not work

    anil kumar Newbie

      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?

      Please suggest me on this.