Re: [Wicket-user] Page lifetime in wicket

2007-07-24 Thread Jonathan Locke


a lot of casting there. 

maybe we should make WebApplication.get() return
(WebApplication)Application.get()?


Eelco Hillenius wrote:
 
 By default which temp directory does all the all pages stored into?
 
   public FilePageStore()
   {
   
 this((File)((WebApplication)Application.get()).getServletContext().getAttribute(
   javax.servlet.context.tempdir));
   }
 
 Eelco
 
 -
 This SF.net email is sponsored by: Splunk Inc.
 Still grepping through log files to find problems?  Stop.
 Now Search log events and configuration files using AJAX and a browser.
 Download your FREE copy of Splunk now   http://get.splunk.com/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Page-lifetime-in-wicket-tf3870856.html#a11776683
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page lifetime in wicket

2007-07-24 Thread Eelco Hillenius
 maybe we should make WebApplication.get() return
 (WebApplication)Application.get()?

When we switch to JDK 1.5 we should.

Eelco

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page lifetime in wicket

2007-07-22 Thread Lec

By default which temp directory does all the all pages stored into? 


Johan Compagner wrote:
 
 With wicket 1.3 (and the SecondLevelCacheSessionStore thats default in
 1.3)
 only one page is kept in (session)memory
 this is the active page that is just rendered. All other pages (for
 backbutton) are saved to the hd.
 
 So wicket controls the memory for you so you don't forget stuff (what i
 see
 a lot in model2 frameworks)
 
 models should be detachable so that you only have a small state (an id) so
 that you can rebuild the real object you where working on.
 this way the pages are pretty small.
 
 If you don't want to have a page at all in the session then you can use
 Stateless Pages (StatelessForms and links)
 but don't use this for the wrong reasons...
 
 johan
 
 
 On 6/5/07, Matthieu Casanova [EMAIL PROTECTED] wrote:

 Hi, I wonder what was the lifetime of the page and related objects in
 Wicket ?
 For example if I create a link in a web page, if I click on it, my java
 method is called. But how many time do I have to click on it ?
 Isn't it possible to have memory problems because of those objects (the
 models too I suppose) that remains in memory and that I do not control ?

 Matthieu


 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user


 
 -
 This SF.net email is sponsored by DB2 Express
 Download DB2 Express C - the FREE version of DB2 express and take
 control of your XML. No limits. Just data. Click to get it now.
 http://sourceforge.net/powerbar/db2/
 ___
 Wicket-user mailing list
 Wicket-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wicket-user
 
 

-- 
View this message in context: 
http://www.nabble.com/Page-lifetime-in-wicket-tf3870856.html#a11738019
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page lifetime in wicket

2007-07-22 Thread Eelco Hillenius
 By default which temp directory does all the all pages stored into?

public FilePageStore()
{

this((File)((WebApplication)Application.get()).getServletContext().getAttribute(
javax.servlet.context.tempdir));
}

Eelco

-
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now   http://get.splunk.com/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] Page lifetime in wicket

2007-06-05 Thread Johan Compagner

With wicket 1.3 (and the SecondLevelCacheSessionStore thats default in 1.3)
only one page is kept in (session)memory
this is the active page that is just rendered. All other pages (for
backbutton) are saved to the hd.

So wicket controls the memory for you so you don't forget stuff (what i see
a lot in model2 frameworks)

models should be detachable so that you only have a small state (an id) so
that you can rebuild the real object you where working on.
this way the pages are pretty small.

If you don't want to have a page at all in the session then you can use
Stateless Pages (StatelessForms and links)
but don't use this for the wrong reasons...

johan


On 6/5/07, Matthieu Casanova [EMAIL PROTECTED] wrote:


Hi, I wonder what was the lifetime of the page and related objects in
Wicket ?
For example if I create a link in a web page, if I click on it, my java
method is called. But how many time do I have to click on it ?
Isn't it possible to have memory problems because of those objects (the
models too I suppose) that remains in memory and that I do not control ?

Matthieu


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user