Hi ALL,
We are migrating from
JSF 1.5 to 2.1 version and facing problem with JSTL tags in some flows only.
We are using JSTL 1.2 version.
Still we are using
JSP file not xhtml file.
Working Flow :
Calling action method and action method return a
String , then based on the string value(defined navigation rule) will redirected to test.JSP.
In that test.JSP we are using c:forEach and c:out which are working fine without any problem.
<h:commandButton value="Submit" id="searchNonCustomer" action="#{UserSearchBean.searchUsers}">
Not working flow:
Opening popup window through href link.
<td style="width:180px;text-align:center" class="boldContentText">
<div align="left">
<a href="javascript:MM_openBrWindow('../user/test1.faces','updateWin','resizable=yes,width=800,height=680,top=10,scrollbars=yes')">View Users List</a>
</div>
</td>
Once the popup is opened and test1.jsp will load the action method through custom tag. Given below the related code
<body onload="useStyleAgain('cpStyle');">
<f:view>
<!-- Calling the action method through custom tag -->
<bl:bload method="getUserDetails"/>
<table style="width:775px" border="0" cellpadding="2" cellspacing="0">
<b><c:out value="${userDetailsBean.userName}" /></b>
But if we change from c:out to h:outputText (JSF tag) which is working fine. But i need to fix this through JSTL since there are lot of JSTL changes are involved.
userDetailsBean is defined as request scope in face-config.xml.
The same was working fine in JSF 1.5 and JSTL 1.1 versions ... I mean before this migration.
Any help appreciated.