Hi Luxspes,
> How do I do a redirect from one page to another? How do I pass an
> object from one page to another? Do I have to use the query string?
Oh lord, no! :-)
> I navigation (and object exchange between page) programmatic, object
> oriented and type safe as in Wicket or WebObjects
Yes.
e.g.:
class ComponentA ... {
public AWComponent doSomethingAction () {
ComponentB dest = pageWithName(ComponentB.class.getName());
dest.setSomething(something);
return dest;
}
...
And if, instead, you'd like B so show up in a nested panel (assuming
that B wrapped its content in a ModalPageWrapper):
public AWComponent doSomethingAction () {
ComponentB dest = pageWithName(ComponentB.class.getName());
dest.setSomething(something);
dest.setClientPanel(true);
return dest;
}
You can also, of course, initialize B with yourself (i.e. an instance
of A) or some other form of callback, so that B can call you back.
Or (for instance if B uses ModalPageWrapper) they may just
automatically return to the previous page.
I think that whoever thought of this was really onto something! ;-)
- craig