maybe the problem lies on SearchPage is a home page. So when user hit back
button, wicket create a new instance of SearchPage. What do you guys think?



cemeterygate wrote:
> 
> i tried that, still no luck. After i hit back button on user detail page,
> the research result is gone.
> 
> Here is what i did,
> 
> I have a search page which contains two panels, a search form panel and a
> search result panel.
> 
> upon click on submit button, the AjaxSelfUpdatingTimerBehavior kicks in
> and refresh the search result panel until there is search result
> available. 
> 
> I override the setHeaders SearchPage.java, what am i doing wrong here?
> protected void setHeaders(WebResponse response) {
>         response.setHeader("Cache-Control", "no-store");
>     }
> 
> much appreciated!!!
> 
> 
> igor.vaynberg wrote:
>> 
>> response.setHeader("Cache-Control", "no-store");
>> 
>> -igor
>> 
>> 
>> On Fri, Feb 15, 2008 at 10:44 AM, cemeterygate <[EMAIL PROTECTED]>
>> wrote:
>>>
>>>  i overload the setHeads method but still no luck.
>>>  response.setHeader("Pragma", "no-cache");
>>>  response.setHeader("Cache-Control", "no-cache,
>>> max-age=0,must-revalidate,
>>>  no-store");
>>>
>>>  i had the impressied that i must change the url (maybe by adding anchor
>>> has)
>>>  when search result panel is freshed in order for IE to cache the page
>>>  correctly. But I don't mind some quick workaround if there is any.
>>> thanks
>>>
>>>
>>>
>>>
>>>  Matej Knopp-2 wrote:
>>>  >
>>>  > Problem is that your browser is caching a wrong version of DOM tree.
>>>  > You need to serve the pages with Cache-Control: no-store to force
>>>  > browser reload the page on back button. See
>>>  > WebPage#setHeaders(WebResponse response).
>>>  >
>>>  > -Matej
>>>  >
>>>  > On Fri, Feb 15, 2008 at 6:14 PM, cemeterygate
>>> <[EMAIL PROTECTED]>
>>>  > wrote:
>>>  >>
>>>  >>  I am using AjaxSelfUpdatingTimerBehavior to refresh the search
>>> result
>>>  >> panel.
>>>  >>  I go to one of the search result, then hit back button, the search
>>>  >> result
>>>  >>  panel is disappear. I thought back button is supported by wicket
>>>  >> natively,
>>>  >>  but appearantly it doesn't in this case. So, what's the work around
>>>  >> folks.
>>>  >>  please help. Thanks
>>>  >>  --
>>>  >>  View this message in context:
>>>  >>
>>> http://www.nabble.com/back-button-issue-with-AjaxSelfUpdatingTimerBehavior%2C-anyone-had-the-same-problem--tp15503953p15503953.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]
>>>  >>
>>>  >>
>>>  >
>>>  >
>>>  >
>>>  > --
>>>  > Resizable and reorderable grid components.
>>>  > http://www.inmethod.com
>>>  >
>>>  > ---------------------------------------------------------------------
>>>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  > For additional commands, e-mail: [EMAIL PROTECTED]
>>>  >
>>>  >
>>>  >
>>>
>>>  --
>>>  View this message in context:
>>> http://www.nabble.com/back-button-issue-with-AjaxSelfUpdatingTimerBehavior%2C-anyone-had-the-same-problem--tp15503953p15507601.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]
>>>
>>>
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/back-button-issue-with-AjaxSelfUpdatingTimerBehavior%2C-anyone-had-the-same-problem--tp15503953p15509269.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]

Reply via email to