You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by MattyDE <uf...@gmail.com> on 2011/10/21 08:37:11 UTC

Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Hi community,

i have a big Problem:


In my application i use BookmarkabePageLinks to browse through different
Pages and AjaxLinks to Open a Div box for Example.

If the user now browse from Site A to B with the BookmarkablePageLink, use
than the back button of the Browser and now clicked a AjaxLink on Site A a
/org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears.

Can anyone explain me why this happend and how i can prevent this issue? 
Its not really userfriendly in my situation to throw exception if the user
used the back-button.

I'm using wicket 1.4.8. 

Thanks in Advance for any help.


Iam sorry for my English is not my mothers tongue!

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
is its possible to navigate through this grid via ajax. But in my testcase
iam not using this possibilitiy.

but there would be also no different between navigating in my grid with or
without database driven data.



Could there be some problem with model-persistance in PageMap or anything
else? Iam clueless =(

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924789.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Martin,

Are you navigating the GRID via AJAX? If so, then that is the AJAX
panel replacement I was talking about...

Otherwise I can't see why it should be different if you fetch data
from a DB or use an array:-(

Regards,

Ernesto

On Fri, Oct 21, 2011 at 10:59 AM, MattyDE <uf...@gmail.com> wrote:
> Thank u so much. This helps me alot!
>
> I also figured out that my own gridView implementation cause the problem.
>
> Iam using here an own implementation of SortableDataProvider. And if i fill
> the Provider with data from the Database on Page A and did the browsing
> forward, back thing than the PageExpired Error appears.
>
> But if i use a test-array to fill the SortableDataProvider it works without
> PageExpired.
>
> Any hints for this?
>
> I wanted to understand the reason for this issue with my grid...
>
> Thanks :)
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924725.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
Thank u so much. This helps me alot!

I also figured out that my own gridView implementation cause the problem.

Iam using here an own implementation of SortableDataProvider. And if i fill
the Provider with data from the Database on Page A and did the browsing
forward, back thing than the PageExpired Error appears.

But if i use a test-array to fill the SortableDataProvider it works without
PageExpired.

Any hints for this?

I wanted to understand the reason for this issue with my grid...

Thanks :)

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924725.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
See

http://webcache.googleusercontent.com/search?q=cache:http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

Ernesto

On Fri, Oct 21, 2011 at 10:40 AM, MattyDE <uf...@gmail.com> wrote:
> how can i force a reload on browser back-button?
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924680.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
how can i force a reload on browser back-button?

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924680.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
See

http://webcache.googleusercontent.com/search?q=cache:http://www.richardnichols.net/2010/03/apache-wicket-force-page-reload-to-fix-ajax-back/

Ernesto

On Fri, Oct 21, 2011 at 10:38 AM, Ernesto Reinaldo Barreiro
<re...@gmail.com> wrote:
> My guess might still be "valid"... Somehow the "state" of the browser
> does not match component tree. You can try forcing re-loading for that
> page, so that the state is always the same on both sides.
>
> Regards,
>
> Ernesto
>
> On Fri, Oct 21, 2011 at 10:30 AM, MattyDE <uf...@gmail.com> wrote:
>> ur guess is wrong =(
>>
>> But u give me a good hint.
>>
>> I've tested it now with two TestPages which only include Bookmarkable and
>> AjaxLinks and this works.
>>
>>
>> On the "non-working" Page the user did nothing before he browse to Page B
>> but on Page A are a lot of ListViews and nested panels and more...
>>
>> Could this be the Problem?
>>
>> Thanks :)
>>
>> --
>> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.html
>> Sent from the Users forum mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> 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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
My guess might still be "valid"... Somehow the "state" of the browser
does not match component tree. You can try forcing re-loading for that
page, so that the state is always the same on both sides.

Regards,

Ernesto

On Fri, Oct 21, 2011 at 10:30 AM, MattyDE <uf...@gmail.com> wrote:
> ur guess is wrong =(
>
> But u give me a good hint.
>
> I've tested it now with two TestPages which only include Bookmarkable and
> AjaxLinks and this works.
>
>
> On the "non-working" Page the user did nothing before he browse to Page B
> but on Page A are a lot of ListViews and nested panels and more...
>
> Could this be the Problem?
>
> Thanks :)
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
ur guess is wrong =(

But u give me a good hint.

I've tested it now with two TestPages which only include Bookmarkable and
AjaxLinks and this works.


On the "non-working" Page the user did nothing before he browse to Page B
but on Page A are a lot of ListViews and nested panels and more...

Could this be the Problem?

Thanks :)

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924658.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Re: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Hi,

Just guessing.

1-On page A you do some AJAX panel replacements? This is not reflected
on page store...
2-You navigate to page B and then back button.
3-You click on AJAX link... page A is retrieved from store but AJAX
link  is not found on component tree... Then WebRequestCycleProcessor
throws a PageExpiredException.

Regards,

Ernesto

On Fri, Oct 21, 2011 at 8:37 AM, MattyDE <uf...@gmail.com> wrote:
> Hi community,
>
> i have a big Problem:
>
>
> In my application i use BookmarkabePageLinks to browse through different
> Pages and AjaxLinks to Open a Div box for Example.
>
> If the user now browse from Site A to B with the BookmarkablePageLink, use
> than the back button of the Browser and now clicked a AjaxLink on Site A a
> /org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error appears.
>
> Can anyone explain me why this happend and how i can prevent this issue?
> Its not really userfriendly in my situation to throw exception if the user
> used the back-button.
>
> I'm using wicket 1.4.8.
>
> Thanks in Advance for any help.
>
>
> Iam sorry for my English is not my mothers tongue!
>
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924428.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> 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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
Updated and Still the Same Problem. =(

This is my BookmarkableLink:
linkNummer = new BookmarkablePageLink<AngebotDetailsPage>("link_nummer",
AngebotDetailsPage.class, new PageParameters(String.format("id=%d",
modelOfAngebot.getObject().getId())) );
		

and this my AjaxLink

AjaxLink showAngebotButton = new AjaxLink("showAngebotButton"){

			@Override
			public void onClick(AjaxRequestTarget target) {
				target.prependJavascript("showPrintDiv('....')");	
			}
			
		};

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924469.html
Sent from the Users forum mailing list archive at Nabble.com.

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


RE: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
iam updating right now. i Reply again if i double checked my issue in the new
version.

Thanks

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924456.html
Sent from the Users forum mailing list archive at Nabble.com.

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


RE: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by Chris Colman <ch...@stepaheadsoftware.com>.
1.4.8 is a very old version. Maybe try using the latest 1.4.x version
and see if the problem hasn't already been fixed.

>-----Original Message-----
>From: MattyDE [mailto:ufer.martin@gmail.com]
>Sent: Friday, 21 October 2011 5:37 PM
>To: users@wicket.apache.org
>Subject: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton
>
>Hi community,
>
>i have a big Problem:
>
>
>In my application i use BookmarkabePageLinks to browse through
different
>Pages and AjaxLinks to Open a Div box for Example.
>
>If the user now browse from Site A to B with the BookmarkablePageLink,
use
>than the back button of the Browser and now clicked a AjaxLink on Site
A a
>/org.apache.wicket.markup.html.pages.PageExpiredErrorPage /Error
appears.
>
>Can anyone explain me why this happend and how i can prevent this
issue?
>Its not really userfriendly in my situation to throw exception if the
user
>used the back-button.
>
>I'm using wicket 1.4.8.
>
>Thanks in Advance for any help.
>
>
>Iam sorry for my English is not my mothers tongue!
>
>--
>View this message in context: http://apache-
>wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLink
s-
>and-BackButton-tp3924428p3924428.html
>Sent from the Users forum mailing list archive at Nabble.com.
>
>---------------------------------------------------------------------
>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: Big Problem: BookmarkablePageLinks, AjaxLinks and BackButton

Posted by MattyDE <uf...@gmail.com>.
this doesnt matter. i use the back-button on time (less than 2 seconds) and
the error appears.

--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Big-Problem-BookmarkablePageLinks-AjaxLinks-and-BackButton-tp3924428p3924451.html
Sent from the Users forum mailing list archive at Nabble.com.

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