Hi all,
i have a problem with passing bean object from the parent jsp to the child jsp. I am using JSF with Tomahawk 1.1 In my parent Jsp the code i have is
<jsp:useBean id="manageuserscontroller" class="com.forrester.companyadmin.controller.ManageUsersController" scope="request" />
<h:outputLink styleClass="tips" value="coadminpopup.jsp#moreinfo" title="Access Group Overview"><t:outputText value="more info... | " />
coadminpopup.jsp
<jsp:useBean id="manageuserscontroller" class="com.forrester.companyadmin.controller.ManageUsersController" scope="request" />
<f:view>
<div id="moreinfo">
<div class="coAdminPopup">
<t:saveState value="#{manageuserscontroller}" />
<t:saveState value="#{manageuserscontroller.userObj}" />
<table cellspacing="0" class="marTopLrg">
<caption class="accessibility">Email address, Phone number and Mailing Address</caption>
<tr>
<th scope="row">Email:</th>
<td><h:outputText value="#{manageuserscontroller.userID}" /></td>
</tr>
<tr>
<th scope="row">Email:</th>
<td><h:outputText value="#{manageuserscontroller.userObj.email}" /></td>
</tr>
</table>
</div>
</div>
Backing bean:
public class ManageUsersController implements Serializable{
public UserImpl userObj
private String userID;
}
This jsp always doesn't show up any data . I tried to pass the object using t:saveState tag but it's not working. Can someone help me how i can pass data from the parent jsp to the child jsp. This actually works if i use bean as session scope. Iam not sure how to fix this issue. Please advise.
Thanks
Edited by: twisai on Dec 1, 2009 6:11 AM
Edited by: twisai on Dec 1, 2009 6:11 AM
Edited by: twisai on Dec 1, 2009 6:12 AM