cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Joseph <pjos...@gmail.com>
Subject Fwd: Re: back button results in a blank
Date Wed, 22 Aug 2012 14:20:00 GMT
sorry about this, but it is indeed my error.

The back button works with Cocoon flowscript even in IE.

The problem was I was catching an error and displaying the error to the 
user in a new page that replaced the old one.

I gather in this process, the "continuation" gets "lost" and as a 
result, the back button no longer works.

What I was doing was as below:
if(errorMsg.length()>0) {
            errorPage("There appear to have been important changes made 
already.  Are you sure you want to clear all the fields before saving 
this task?  If yes, please click the back button.  Otherwice, click 
Create to start a new entry.")
            return;
}

brgds
paul



-------- Original Message --------
Subject: 	Re: back button results in a blank
Date: 	Wed, 22 Aug 2012 10:15:19 -0400
From: 	Paul Joseph <pjoseph@gmail.com>
To: 	users@cocoon.apache.org



Yes, sorry about that I am indeed using Flowscript (Cocoon 2.11).

I did read that "back button" issues are confined to IE and FF but not 
to Chrome.  I have not confirmed that.

I should do my homework and install the full Flowscript example set that 
comes with Cocoon and try it with those.

brgds
Paul

On 8/22/2012 4:57 AM, Robby Pelssers wrote:
>
> Well,
>
> I am assuming Paul is using flowscript (continuations) and they 
> 'should' solve the back button problem for all I know.  But let's 
> first find out which version of cocoon he's using and if he is indeed 
> using flowscript.
>
> @Paul,
>
> Could you perhaps setup a minimalistic test case and share it so we 
> can test ourselves?
>
> Robby
>
> *From:*Jos Snellings [mailto:jos.snellings@upperware.biz]
> *Sent:* Wednesday, August 22, 2012 10:54 AM
> *To:* users@cocoon.apache.org
> *Subject:* Re: back button results in a blank
>
> Hi Paul,
>
> The browser's back button problem is not a specific cocoon one.
> I believe that it could have different causes.
> It is even browser specific, I believe. The back button is just 
> supposed to show the "previous viewed resource".
> I usually stick to 'restful design principles'. This may help to 
> alleviate back button issues.
> As a principle, I never make webapps block the back button.
> I know this sounds a bit vague, but it's for the moment my best shot. 
> Anyone else?
>
> Kind regards,
> Jos
>
> On Tue, Aug 21, 2012 at 8:47 PM, Paul Joseph <pjoseph@gmail.com 
> <mailto:pjoseph@gmail.com>> wrote:
>
> Hi there,
>
> I notice that many times when I click the browser's back button, when 
> I expect to see the form previously that was displayed, instead I get 
> a blank page and have to click the browser's refresh button to 
> retrieve what was there.
>
> This is IE8 in particular.
>
> Is there any simple way to preserve what was there before so that on 
> clicking the back button it displays directly instead of having to 
> click refresh on a blank page?
>
> paul
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org 
> <mailto:users-unsubscribe@cocoon.apache.org>
> For additional commands, e-mail: users-help@cocoon.apache.org 
> <mailto:users-help@cocoon.apache.org>
>
>
>
>
> -- 
> The doctrine of human equality reposes on this: that there is no man
> really clever who has not found that he is stupid.
>         -- Gilbert K. Chesterson
>





Mime
View raw message