Of course it would have to be that simple...
Thanks!!
Dave
On Thu, 2006-07-20 at 19:33 -0700, Igor Vaynberg wrote:
> all you have to do is pass the reference of the old page to the new
> page
>
> class ListUsersPage extends Webpage {
> .....
> add(new Link("edit") {
> onclick() {
> setResponsePage(new EditUserPage( ListUsersPage.this,
> (User)getModelObject()));
> }
> }
>
>
> class EditUserPage extends WebPage {
> public EditUserPage(final WebPage backPage, User user) {
> Form form;
>
> add(form=new Form("form", ));
> form.add(new Button("save") {
> onsubmit() {
> //save user
> setResponsePage(backPage); <=== navigates to
> the list users page in its previous state
> });}}
>
> hope this helps
> -Igor
>
>
> On 7/20/06, David Leangen <[EMAIL PROTECTED] > wrote:
>
> Apologies for another basic Wicket question...
>
> I understand (mostly) how the Wicket model approach works with
> respect
> to components and such. However, how do I retain values from
> one page
> view to the next?
>
> I know that I could use PageParameters, but the object I want
> to retain
> in a complex object and I don't want the trouble.
>
> I tried using PropertyModel( this, "path"), and tried
> PropertyModel.setObject( this, object ) to update the value,
> but that
> didn't work.
>
>
> I'm sure this is simple, but any hints would be greatly
> appreciated!
>
>
>
> Thank you!
> David
>
>
> PS - I tried searching on the archive, but the SourceForge
> archive is
> hopeless for searching...
>
>
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance
> to share your
> opinions on IT & business topics through brief surveys -- and
> earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Wicket-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user