Re: How to set no cache header

2008-02-15 Thread Martijn Dashorst
Just override the setHeaders method. I don't know what to say more.

Martijn

On 2/15/08, pnerkar [EMAIL PROTECTED] wrote:

  Hi Martijn,

  I tried but not able to find setHeader method for Page.
  Can you please explain this bit more ??

  Regards,

  Pankaj.



  Martijn Dashorst wrote:
  
   Override the setHeaders method of your page.
   Martijn
  
   On 1/23/08, Sébastien Piller [EMAIL PROTECTED] wrote:
  
   Hello guys,
  
   I would like to prevent a page to be stored on the client side. How can
   I set the Cache-Control headers?
  
   Thanks!
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
   --
   Buy Wicket in Action: http://manning.com/dashorst
   Apache Wicket 1.3.0 is released
   Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
  
  


 --
  View this message in context: 
 http://www.nabble.com/How-to-set-no-cache-header-tp15044463p15502951.html
  Sent from the Wicket - User mailing list archive at Nabble.com.



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set no cache header

2008-02-15 Thread pnerkar

Hi Martijn,

I tried but not able to find setHeader method for Page.
Can you please explain this bit more ??

Regards,

Pankaj.


Martijn Dashorst wrote:
 
 Override the setHeaders method of your page.
 Martijn
 
 On 1/23/08, Sébastien Piller [EMAIL PROTECTED] wrote:

 Hello guys,

 I would like to prevent a page to be stored on the client side. How can
 I set the Cache-Control headers?

 Thanks!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-no-cache-header-tp15044463p15502951.html
Sent from the Wicket - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set no cache header

2008-02-15 Thread Maurice Marrink
public class BasePage extends WebPage
{
protected void setHeaders(WebResponse response)
{
response.setHeader(Pragma, no-cache);
response.setHeader(Cache-Control, no-cache, max-age=0,
must-revalidate, no-store);
}
}

Maurice

On Fri, Feb 15, 2008 at 5:39 PM, Martijn Dashorst
[EMAIL PROTECTED] wrote:
 Just override the setHeaders method. I don't know what to say more.

  Martijn


  On 2/15/08, pnerkar [EMAIL PROTECTED] wrote:
  
Hi Martijn,
  
I tried but not able to find setHeader method for Page.
Can you please explain this bit more ??
  
Regards,
  
Pankaj.
  
  
  
Martijn Dashorst wrote:

 Override the setHeaders method of your page.
 Martijn

 On 1/23/08, Sébastien Piller [EMAIL PROTECTED] wrote:

 Hello guys,

 I would like to prevent a page to be stored on the client side. How can
 I set the Cache-Control headers?

 Thanks!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




 --
 Buy Wicket in Action: http://manning.com/dashorst
 Apache Wicket 1.3.0 is released
 Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


  
  
   --
View this message in context: 
 http://www.nabble.com/How-to-set-no-cache-header-tp15044463p15502951.html
Sent from the Wicket - User mailing list archive at Nabble.com.
  
  
  
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
  
  


  --
  Buy Wicket in Action: http://manning.com/dashorst
  Apache Wicket 1.3.1 is released
  Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1



  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to set no cache header

2008-01-23 Thread Sébastien Piller

Hello guys,

I would like to prevent a page to be stored on the client side. How can 
I set the Cache-Control headers?


Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to set no cache header

2008-01-23 Thread Martijn Dashorst
Override the setHeaders method of your page.
Martijn

On 1/23/08, Sébastien Piller [EMAIL PROTECTED] wrote:

 Hello guys,

 I would like to prevent a page to be stored on the client side. How can
 I set the Cache-Control headers?

 Thanks!

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


Re: How to set no cache header

2008-01-23 Thread Nino Saturnino Martinez Vazquez Wael

you could also use a filter to wrap it. But id go with martijn's solution.

Hope youre not fidling with oracle webservr...

Martijn Dashorst wrote:

Override the setHeaders method of your page.
Martijn

On 1/23/08, Sébastien Piller [EMAIL PROTECTED] wrote:
  

Hello guys,

I would like to prevent a page to be stored on the client side. How can
I set the Cache-Control headers?

Thanks!

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


--
Nino Martinez Wael
Java Specialist @ Jayway DK
http://www.jayway.dk
+45 2936 7684


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]