You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Guillaume Smet <gu...@gmail.com> on 2012/05/15 00:36:39 UTC

Wicket 1.5.6, Ajax and expired page

Hi,

I noticed this evening that when a page is expired, if we make an Ajax
call from this page (autocomplete for example), the Ajax call returns
a 302 and then the entire page content (and not a valid XML Ajax
response) - I investigated it with Firebug as there's no error
anywhere.

Could it be related to WICKET-4454 ? We upgraded to 1.5.6 a few days ago.

It might be that I never waited long enough to see the problem before
but I'm pretty sure it was working correctly in previous versions.

Thanks for your feedback.

-- 
Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.5.6, Ajax and expired page

Posted by Martin Grigorov <mg...@apache.org>.
On Tue, May 15, 2012 at 9:10 AM, Guillaume Smet
<gu...@gmail.com> wrote:
> Hi Martin,
>
> On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov <mg...@apache.org> wrote:
>> Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1)
>> Wicket is able to handle automatically page expiration for mounted
>> pages. I.e. if the user clicks a link and the page is already expired
>> then depending on
>
> I followed that and it's quite appreciated to reduce the number of
> page expired errors for our users.
>
> The problem I saw yesterday evening on our app is that the Ajax
> response was the entire HTML page (raw HTML output) and not a valid
> Ajax XML response. I don't think that's something expected.

This is not expected indeed.
Create a quickstart and attach it to a ticket in Jira.

>
> --
> Guillaume
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.5.6, Ajax and expired page

Posted by Guillaume Smet <gu...@gmail.com>.
Hi Martin,

On Tue, May 15, 2012 at 8:44 AM, Martin Grigorov <mg...@apache.org> wrote:
> Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1)
> Wicket is able to handle automatically page expiration for mounted
> pages. I.e. if the user clicks a link and the page is already expired
> then depending on

I followed that and it's quite appreciated to reduce the number of
page expired errors for our users.

The problem I saw yesterday evening on our app is that the Ajax
response was the entire HTML page (raw HTML output) and not a valid
Ajax XML response. I don't think that's something expected.

-- 
Guillaume

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Wicket 1.5.6, Ajax and expired page

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

Since https://issues.apache.org/jira/browse/WICKET-4014 (Wicket 1.5.1)
Wicket is able to handle automatically page expiration for mounted
pages. I.e. if the user clicks a link and the page is already expired
then depending on
org.apache.wicket.settings.IPageSettings#getRecreateMountedPagesAfterExpiry()
Wicket will either throw PageExpiredExcetion or will create a new
instance of the page and render it without executing the link's
onClick().

On Tue, May 15, 2012 at 12:36 AM, Guillaume Smet
<gu...@gmail.com> wrote:
> Hi,
>
> I noticed this evening that when a page is expired, if we make an Ajax
> call from this page (autocomplete for example), the Ajax call returns
> a 302 and then the entire page content (and not a valid XML Ajax
> response) - I investigated it with Firebug as there's no error
> anywhere.
>
> Could it be related to WICKET-4454 ? We upgraded to 1.5.6 a few days ago.
>
> It might be that I never waited long enough to see the problem before
> but I'm pretty sure it was working correctly in previous versions.
>
> Thanks for your feedback.
>
> --
> Guillaume
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org