[jboss-user] [JBoss Seam] - [newbie] Problem passing parameters

german.otero do-not-reply at jboss.com
Tue Dec 11 09:48:37 EST 2007


Hi, i'm new with Seam, and i have a problem passing object between pages.
I have a grid, at the home of my app, and a view/edit action (row action.). Simple when a user click this link, i need to go to another page, this new page,  must be fill with the object behind the row.
ej: the row has an object 'AType', and i go to the ATypeEdit.xhtml. so when i click the action to edit the AType, the new page rendered must have the AType info.

I found several ways to do this, 
1)  with <param ..../> but, i pass the id of the AType, or something that i can use to find it in the DB. If the object is transient???..

2) a session bean, call it, whatever you want (home, session bean o anything), that holds the object.... this is a little ugly. because, who will clean this reference??..and this SessionObject, have nothing to do here.

3) there is no 3..

I need a way to say, Hey, AType, Go there. ---->    and the aType go.

Tnks.
 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4111958#4111958

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4111958



More information about the jboss-user mailing list