Hi,
I have a page that takes a nodeId as a parameter, then redirects into
the page to a different page depending upon the type of object referred
to by the nodeId. I also would like to set the nodeId of the
redirected page. What's the best way to do this?
Thanks.
Chuck
public class myPage()
{
@Persist
private int nodeId;
@InjectPage
private GreenPage green;
@InjectPage
private RedPage red;
onActivate(id){
this.nodeId = id;
}
public Object setupRender(){
node = Node.getByNodeId(nodeId);
if( node.isRed()){
// doesn't work because red nodeId is not set.
return red;
}
// doesn't work because green nodeId is not set.
return green;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org