Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

passing data from parent to child jsp

user8769643Dec 1 2009 — edited Dec 2 2009
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 30 2009
Added on Dec 1 2009
1 comment
383 views