you shouldn't keep db data live between requests.
Use DetachableModels so that you only attach (load from db) when the model data is asked for in the request phase. And then when the request phase ais ended a detach happens so that you can clear youre model (a list in this case)
So that all those objects aren't kept in mem.

Then the page itself is pretty light.

johan



Seth Ladd wrote:
On 8/15/05, David Liebeherr <[EMAIL PROTECTED]> wrote:
What do you think about it?

http://wicket.sourceforge.net/wiki/index.php/How_to_use_the_same_Form_for_editing_and_new


That's really helpful, thanks!

I'm a bit unclear as to the best way to pull the peopleList from the
database.  I'm unclear because I don't quite understand yet the
lifetime of the instance of the PersonList page class.

How long does the instance of PersonList live?  If it gets stored in
the session, I don't think I want to leave my peopleList instance
(populated from the db) with the PersonList page in the session.

Is there a page or resource that talks about the lifecycle/lifespan of
a Page instance for a user?

Thanks,
Seth


-------------------------------------------------------
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