how did you hold a reference to that page you wanted to reset?
(that could be the same reference holding model data)

but i guess you could have youre own ISessionFactory
And subclass WebSession to make youre own where you can hold a map or something
where you hold models or pages. (like youre own pagemap)

then if you modify that map you should call dirty() (i make it protected as we speak)

johan


Michael Jouravlev wrote:
On 8/19/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
why not hold an extra reference to that textfield in youre page or
another place you want.

Right, have not thought of that ;)

But this shouldn't be nessesary. If you want to clear/reset things that
seems to me that is data
So you should just clear the models..

Model is created right there, so I thought that I need to get field
and to recreate model for it:

add(new TextField("username", new PropertyModel(properties, "username")));
add(new PasswordTextField("password", new PropertyModel(properties,
"password")));

But why reuse those things. I think it is more hassle then it gains...

Because I need the same URL whenever I click a link for a page. No...
actually, I do not really *need* that, because if I go back and then
click a link, I don't care that URL is different because this is
another sequence of browser history...

What I do need is that when I go back and click a link, I would see
the data that I already entered. I guess, based on your previous
advice to use model, I can reuse model, but use new page instances.
Hmm, I never thought of that.

I can stick model somewhere in the session. Is there better place for
that in Wicket, considering that I want to use the same model in
different instances of Page?

Thanks!

Michael.


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to