You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Federico Fanton <ff...@ibc.it> on 2008/02/08 12:50:34 UTC

PageExpired while ordering DataTable

Hi everyone!
I'm looking for a little help please..
I have a search page with a form and a custom DataTable (with SortableDataProvider).
Everything works fine: I can set filters from the form, order the table by clicking on column headers, browse through the table pages, etc.. My problem is that if I _quickly_ doubleclick on a column header (even with no data in the table), i get a PageExpiredException. I tried debugging this, so I saw that WicketServlet receives two calls, and the second one triggers the exception.. What method should I try to debug this? Is there a guide somewhere on how to track down page expired errors?
Many thanks for your time!


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


Re: PageExpired while ordering DataTable

Posted by Federico Fanton <ff...@ibc.it>.
On Fri, 8 Feb 2008 15:49:58 +0100
"Maurice Marrink" <ma...@gmail.com> wrote:

> If I recall correctly we had a similar problem a little while ago.
> As it turned out the page was requested twice but only the first was rendered.
> The reason the page was requested twice was because we had something
> like this on our page <img src />
> For some reason the absence of a valid source tag triggers the browser
> into requesting the page again which it then tries to use as the image
> (which will fail offcourse).
> This behavior is documented somewhere but i forgot where.
> 
> Maybe this is the case with your page as well.

I see.. My case is different though, since I receive (as expected) one request per click.. If I click one time and wait for the page to refresh, then click again, everything is fine.. I get the exception when I click twice quickly on the same page.
Thanks for your time anyway :)


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


Re: PageExpired while ordering DataTable

Posted by Maurice Marrink <ma...@gmail.com>.
If I recall correctly we had a similar problem a little while ago.
As it turned out the page was requested twice but only the first was rendered.
The reason the page was requested twice was because we had something
like this on our page <img src />
For some reason the absence of a valid source tag triggers the browser
into requesting the page again which it then tries to use as the image
(which will fail offcourse).
This behavior is documented somewhere but i forgot where.

Maybe this is the case with your page as well.

Maurice

On Feb 8, 2008 2:35 PM, Federico Fanton <ff...@ibc.it> wrote:
> On Fri, 8 Feb 2008 12:50:34 +0100
> Federico Fanton <ff...@ibc.it> wrote:
>
> > My problem is that if I _quickly_ doubleclick
> > on a column header (even with no data in the table),
> > I get a PageExpiredException. I tried debugging
> > this, so I saw that WicketServlet receives two
> > calls, and the second one triggers the exception..
>
> I see that every click on the column header triggers a request for a different version of the current page, but SecondLevelCacheSessionStore holds only the last one.. Am I right? So, a doubleclick generates two requests for the same version, but the first one "removes" it, so the second one misses.. Am I doing something wrong?
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: PageExpired while ordering DataTable

Posted by Federico Fanton <ff...@ibc.it>.
On Fri, 8 Feb 2008 12:50:34 +0100
Federico Fanton <ff...@ibc.it> wrote:

> My problem is that if I _quickly_ doubleclick
> on a column header (even with no data in the table),
> I get a PageExpiredException. I tried debugging
> this, so I saw that WicketServlet receives two
> calls, and the second one triggers the exception..

I see that every click on the column header triggers a request for a different version of the current page, but SecondLevelCacheSessionStore holds only the last one.. Am I right? So, a doubleclick generates two requests for the same version, but the first one "removes" it, so the second one misses.. Am I doing something wrong?


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


Re: PageExpired while ordering DataTable

Posted by Igor Vaynberg <ig...@gmail.com>.
second level session store holds x number of previous versions. some
implementations like disk store hold quiet a few versions.

i cant reproduce your error here:
http://wicketstuff.org/wicket13/repeater/?wicket:bookmarkablePage=%3Aorg.apache.wicket.examples.repeater.DataTablePage
can you try?

-igor


On Feb 8, 2008 3:50 AM, Federico Fanton <ff...@ibc.it> wrote:
> Hi everyone!
> I'm looking for a little help please..
> I have a search page with a form and a custom DataTable (with SortableDataProvider).
> Everything works fine: I can set filters from the form, order the table by clicking on column headers, browse through the table pages, etc.. My problem is that if I _quickly_ doubleclick on a column header (even with no data in the table), i get a PageExpiredException. I tried debugging this, so I saw that WicketServlet receives two calls, and the second one triggers the exception.. What method should I try to debug this? Is there a guide somewhere on how to track down page expired errors?
> Many thanks for your time!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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


Re: PageExpired while ordering DataTable

Posted by Federico Fanton <ff...@ibc.it>.
On Mon, 11 Feb 2008 13:01:47 +0100
"Johan Compagner" <jc...@gmail.com> wrote:

> i guess we could up the level a bit yes
> Because in 1.3 it is pretty serious error if we cant save the page.

Great! Should I open a JIRA issue to track this?


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


Re: PageExpired while ordering DataTable

Posted by Johan Compagner <jc...@gmail.com>.
i guess we could up the level a bit yes
Because in 1.3 it is pretty serious error if we cant save the page.

johan

On Feb 11, 2008 11:11 AM, Federico Fanton <ff...@ibc.it> wrote:

> On Sat, 9 Feb 2008 09:51:45 +0100
> "Johan Compagner" <jc...@gmail.com> wrote:
>
> > What wicket version is this?
> >
> > Normally in 1.3 page expires should never happen, except when your
> > page isnt serializeble...
>
> Here it is! My page wasn't serializable, but my Logback configuration hid
> the exception.. :(
> Many thanks!
> Anyway, what about a setting to turn these exceptions into "fatal" ones? I
> think it would be useful..
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: PageExpired while ordering DataTable

Posted by Federico Fanton <ff...@ibc.it>.
On Sat, 9 Feb 2008 09:51:45 +0100
"Johan Compagner" <jc...@gmail.com> wrote:

> What wicket version is this?
> 
> Normally in 1.3 page expires should never happen, except when your
> page isnt serializeble...

Here it is! My page wasn't serializable, but my Logback configuration hid the exception.. :(
Many thanks!
Anyway, what about a setting to turn these exceptions into "fatal" ones? I think it would be useful..


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


Re: PageExpired while ordering DataTable

Posted by Johan Compagner <jc...@gmail.com>.
What wicket version is this?

Normally in 1.3 page expires should never happen, except when your
page isnt serializeble...

On 2/8/08, Federico Fanton <ff...@ibc.it> wrote:
> Hi everyone!
> I'm looking for a little help please..
> I have a search page with a form and a custom DataTable (with
> SortableDataProvider).
> Everything works fine: I can set filters from the form, order the table by
> clicking on column headers, browse through the table pages, etc.. My problem
> is that if I _quickly_ doubleclick on a column header (even with no data in
> the table), i get a PageExpiredException. I tried debugging this, so I saw
> that WicketServlet receives two calls, and the second one triggers the
> exception.. What method should I try to debug this? Is there a guide
> somewhere on how to track down page expired errors?
> Many thanks for your time!
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

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