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?