That depends a bit how many pages you create on the run.
Because we fill a PageMap of which you can set the max number of pages
in ApplicationSettings:
/**
* Gets the maximum number of pages held in a session.
*
* @return Returns the maxPages.
* @see ApplicationSettings#setMaxPages(int)
*/
public final int getMaxPages()
{
return maxPages;
}
default is 10
So the last 10 pages you create (instances of! so 10times a
MyPage1.class also counts as one page)
If you want much lower then you can specify that but do remember that
the back button support depends a bit on this
to lookup old pages..
Also ofcourse you can hold you're self pages in mem if you keep
references to it through for example PageLinks that can
hold instances of pages that a link will set as the current when the
link was clicked on
johan
Seth Ladd wrote:
On 8/15/05, Johan Compagner <[EMAIL PROTECTED]> wrote:
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.\
Great, that's what I had hoped (and read from the docs) so it's good
to get confirmation. :)
Now my question is, what is the lifespan of the Page object instance?
How long does that live?
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