-
Bug
-
Resolution: Obsolete
-
Critical
-
JBossAS-5.1.0.GA
I am trying to set few parameters from JSP scriptlet. Here is the snippet.HeaderBean is a managed bean with dispalyTitle as setters and getters.
here its printing auditlog,auditlog,auditlog with command link instead of dashboard,transaction,auditlog command link.
HeaderBean scope is request.
Please suggest me on this.
<h:form>
<%
ArrayList<String> names = new ArrayList<String>();
names.add("dashboard");
names.add("transaction");
names.add("auditlog");
%>
<%
HttpServletRequest facesRequest = (HttpServletRequest)FacesContext.getCurrentInstance().getExternalContext().getRequest();
for (String name: names){
HeaderBean header = new HeaderBean();
header.setDispalyTitle(name);
facesRequest.setAttribute("HeaderBean", header);
%>
<h:commandLink title="#
"> </h:commandLink> <br>
<%}%>