You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by James Sherwood <js...@rgisolutions.com> on 2008/05/30 20:46:51 UTC

T3: Stop back button

Hello all,

We are using tapestry 3.  We need to make it so when a user submits a form 
and then presses the back button, it does not show them the form.

Any ideas?

--James



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


Re: T3: Stop back button

Posted by zack1403 <za...@gmail.com>.
No worries James.  A pet peeve of mine is people posting their questions in
unrelated threads with the hope of help when they have been unsuccessful
elsewhere (which it just sounds like you made a mistake).  I develop for a
market research company and your problem has come up a couple times.  Modern
browsers will almost always cache what was on the previous page so this is
usually a tough issue.  Have you thought about doing it all with ajax?   
You should then be able to control the survey how you want. Or use js to
hide the form on submit of each page might work. If users that dont have js
enabled is an issue, then I dont know a clear (or possible) solution to your
issue.


James Sherwood wrote:
> 
> Zack,
> 
> 1: I just posted it to the Tapestry mailing list so I am not sure how you 
> view the list and why you say its in the wrong spot.
> 2: I did not post 2 times, I was replying to to a 'more clarification' 
> question.
> 3: They cannot change or submit again, our client just does not want them
> to 
> see the form when pressing the back button as on some sites you get a 
> 'session expired' page by pressing back.
> 4: I do not need basic research. I have built tons of Tapestry apps and
> this 
> still eludes me.
> 5: If its so basic, why do you not just answer my problem.
> 6: If you don't have anything constructive towards the post, please just
> do 
> not post...
> 
> Thanks,
> --James
> 
> ----- Original Message ----- 
> From: "zack1403" <za...@gmail.com>
> To: <us...@tapestry.apache.org>
> Sent: Monday, June 02, 2008 3:01 AM
> Subject: Re: T3: Stop back button
> 
> 
>>
>> Do you really think this is the right thread for that question? Also, I 
>> doubt
>> posting the same question twice will increase your chances of having it
>> answered. In relation to your question, just make sure that the user cant
>> access or makes changes to the survey if it has already been submitted .
>> Don't take the back button away from users. If you need more help, I
>> would
>> start another topic (but really I would just do some basic research
>> before
>> posting again).
>>
>> Zack
>>
>>
>> James Sherwood wrote:
>>>
>>> Hello,
>>>
>>> Our application submits a form then shows the results(like a survey 
>>> form).
>>> Problem is the users can hit the browser's back button and see the form
>>> again and we do not want that.  Any ideas how to make it show anything 
>>> but
>>> the form?
>>>
>>> --James
>>>
>>> ----- Original Message ----- 
>>> From: "Javier Sanchez" <ja...@gmail.com>
>>> To: "Tapestry users" <us...@tapestry.apache.org>
>>> Sent: Friday, May 30, 2008 6:46 PM
>>> Subject: Re: T3: Stop back button
>>>
>>>
>>>> Isn't obvious?  What exactly do you want your application to do?
>>>>
>>>> On Fri, May 30, 2008 at 1:46 PM, James Sherwood
>>>> <js...@rgisolutions.com>
>>>> wrote:
>>>>
>>>>> Hello all,
>>>>>
>>>>> We are using tapestry 3.  We need to make it so when a user submits a
>>>>> form
>>>>> and then presses the back button, it does not show them the form.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> --James
>>>>>
>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> __________ Information from ESET Smart Security, version of virus
>>>> signature database 3148 (20080530) __________
>>>>
>>>> The message was checked by ESET Smart Security.
>>>>
>>>> http://www.eset.com
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>>
>>
>> -- 
>> View this message in context: 
>> http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17594477.html
>> Sent from the Tapestry - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>> __________ Information from ESET Smart Security, version of virus 
>> signature database 3150 (20080601) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>>
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17609175.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


RE: T3: Stop back button

Posted by Jonathan Barker <jo...@gmail.com>.
The T5 approach is to generate redirects for everything.  I'm not sure how
to do that with T3, but you could try.

Another option might be to, when you navigate away from a page (like the one
with the form) set the class for a div around the form to something like
already-submitted and then use CSS to hide the form, and perhaps un-hide a
section with a message like "Form already submitted"

If the form is rendered again by the application, the CSS class gets reset,
but if the back button is used, then the page with the invisible form gets
displayed.

Just a thought.


> -----Original Message-----
> From: James Sherwood [mailto:jsherwood@rgisolutions.com]
> Sent: Monday, June 02, 2008 8:24 AM
> To: Tapestry users
> Subject: Re: T3: Stop back button
> 
> Zack,
> 
> 1: I just posted it to the Tapestry mailing list so I am not sure how you
> view the list and why you say its in the wrong spot.
> 2: I did not post 2 times, I was replying to to a 'more clarification'
> question.
> 3: They cannot change or submit again, our client just does not want them
> to
> see the form when pressing the back button as on some sites you get a
> 'session expired' page by pressing back.
> 4: I do not need basic research. I have built tons of Tapestry apps and
> this
> still eludes me.
> 5: If its so basic, why do you not just answer my problem.
> 6: If you don't have anything constructive towards the post, please just
> do
> not post...
> 
> Thanks,
> --James
> 
> ----- Original Message -----
> From: "zack1403" <za...@gmail.com>
> To: <us...@tapestry.apache.org>
> Sent: Monday, June 02, 2008 3:01 AM
> Subject: Re: T3: Stop back button
> 
> 
> >
> > Do you really think this is the right thread for that question? Also, I
> > doubt
> > posting the same question twice will increase your chances of having it
> > answered. In relation to your question, just make sure that the user
> cant
> > access or makes changes to the survey if it has already been submitted .
> > Don't take the back button away from users. If you need more help, I
> would
> > start another topic (but really I would just do some basic research
> before
> > posting again).
> >
> > Zack
> >
> >
> > James Sherwood wrote:
> >>
> >> Hello,
> >>
> >> Our application submits a form then shows the results(like a survey
> >> form).
> >> Problem is the users can hit the browser's back button and see the form
> >> again and we do not want that.  Any ideas how to make it show anything
> >> but
> >> the form?
> >>
> >> --James
> >>
> >> ----- Original Message -----
> >> From: "Javier Sanchez" <ja...@gmail.com>
> >> To: "Tapestry users" <us...@tapestry.apache.org>
> >> Sent: Friday, May 30, 2008 6:46 PM
> >> Subject: Re: T3: Stop back button
> >>
> >>
> >>> Isn't obvious?  What exactly do you want your application to do?
> >>>
> >>> On Fri, May 30, 2008 at 1:46 PM, James Sherwood
> >>> <js...@rgisolutions.com>
> >>> wrote:
> >>>
> >>>> Hello all,
> >>>>
> >>>> We are using tapestry 3.  We need to make it so when a user submits a
> >>>> form
> >>>> and then presses the back button, it does not show them the form.
> >>>>
> >>>> Any ideas?
> >>>>
> >>>> --James
> >>>>
> >>>>
> >>>>
> >>>> ---------------------------------------------------------------------
> >>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >>>> For additional commands, e-mail: users-help@tapestry.apache.org
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>> __________ Information from ESET Smart Security, version of virus
> >>> signature database 3148 (20080530) __________
> >>>
> >>> The message was checked by ESET Smart Security.
> >>>
> >>> http://www.eset.com
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> >> For additional commands, e-mail: users-help@tapestry.apache.org
> >>
> >>
> >>
> >
> > --
> > View this message in context:
> > http://www.nabble.com/How-to-call-service-during-startup--
> tp17558546p17594477.html
> > Sent from the Tapestry - User mailing list archive at Nabble.com.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
> > __________ Information from ESET Smart Security, version of virus
> > signature database 3150 (20080601) __________
> >
> > The message was checked by ESET Smart Security.
> >
> > http://www.eset.com
> >
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org


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


Re: T3: Stop back button

Posted by James Sherwood <js...@rgisolutions.com>.
Zack,

1: I just posted it to the Tapestry mailing list so I am not sure how you 
view the list and why you say its in the wrong spot.
2: I did not post 2 times, I was replying to to a 'more clarification' 
question.
3: They cannot change or submit again, our client just does not want them to 
see the form when pressing the back button as on some sites you get a 
'session expired' page by pressing back.
4: I do not need basic research. I have built tons of Tapestry apps and this 
still eludes me.
5: If its so basic, why do you not just answer my problem.
6: If you don't have anything constructive towards the post, please just do 
not post...

Thanks,
--James

----- Original Message ----- 
From: "zack1403" <za...@gmail.com>
To: <us...@tapestry.apache.org>
Sent: Monday, June 02, 2008 3:01 AM
Subject: Re: T3: Stop back button


>
> Do you really think this is the right thread for that question? Also, I 
> doubt
> posting the same question twice will increase your chances of having it
> answered. In relation to your question, just make sure that the user cant
> access or makes changes to the survey if it has already been submitted .
> Don't take the back button away from users. If you need more help, I would
> start another topic (but really I would just do some basic research before
> posting again).
>
> Zack
>
>
> James Sherwood wrote:
>>
>> Hello,
>>
>> Our application submits a form then shows the results(like a survey 
>> form).
>> Problem is the users can hit the browser's back button and see the form
>> again and we do not want that.  Any ideas how to make it show anything 
>> but
>> the form?
>>
>> --James
>>
>> ----- Original Message ----- 
>> From: "Javier Sanchez" <ja...@gmail.com>
>> To: "Tapestry users" <us...@tapestry.apache.org>
>> Sent: Friday, May 30, 2008 6:46 PM
>> Subject: Re: T3: Stop back button
>>
>>
>>> Isn't obvious?  What exactly do you want your application to do?
>>>
>>> On Fri, May 30, 2008 at 1:46 PM, James Sherwood
>>> <js...@rgisolutions.com>
>>> wrote:
>>>
>>>> Hello all,
>>>>
>>>> We are using tapestry 3.  We need to make it so when a user submits a
>>>> form
>>>> and then presses the back button, it does not show them the form.
>>>>
>>>> Any ideas?
>>>>
>>>> --James
>>>>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>>
>>>>
>>>
>>>
>>>
>>> __________ Information from ESET Smart Security, version of virus
>>> signature database 3148 (20080530) __________
>>>
>>> The message was checked by ESET Smart Security.
>>>
>>> http://www.eset.com
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>>
>
> -- 
> View this message in context: 
> http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17594477.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
> __________ Information from ESET Smart Security, version of virus 
> signature database 3150 (20080601) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
>
> 


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


Re: T3: Stop back button

Posted by zack1403 <za...@gmail.com>.
Do you really think this is the right thread for that question? Also, I doubt
posting the same question twice will increase your chances of having it
answered. In relation to your question, just make sure that the user cant
access or makes changes to the survey if it has already been submitted .
Don't take the back button away from users. If you need more help, I would
start another topic (but really I would just do some basic research before
posting again).

Zack


James Sherwood wrote:
> 
> Hello,
> 
> Our application submits a form then shows the results(like a survey form). 
> Problem is the users can hit the browser's back button and see the form 
> again and we do not want that.  Any ideas how to make it show anything but 
> the form?
> 
> --James
> 
> ----- Original Message ----- 
> From: "Javier Sanchez" <ja...@gmail.com>
> To: "Tapestry users" <us...@tapestry.apache.org>
> Sent: Friday, May 30, 2008 6:46 PM
> Subject: Re: T3: Stop back button
> 
> 
>> Isn't obvious?  What exactly do you want your application to do?
>>
>> On Fri, May 30, 2008 at 1:46 PM, James Sherwood 
>> <js...@rgisolutions.com>
>> wrote:
>>
>>> Hello all,
>>>
>>> We are using tapestry 3.  We need to make it so when a user submits a 
>>> form
>>> and then presses the back button, it does not show them the form.
>>>
>>> Any ideas?
>>>
>>> --James
>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>>> For additional commands, e-mail: users-help@tapestry.apache.org
>>>
>>>
>>
>>
>>
>> __________ Information from ESET Smart Security, version of virus 
>> signature database 3148 (20080530) __________
>>
>> The message was checked by ESET Smart Security.
>>
>> http://www.eset.com
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-call-service-during-startup--tp17558546p17594477.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


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


Re: T3: Stop back button

Posted by James Sherwood <js...@rgisolutions.com>.
Hello,

Our application submits a form then shows the results(like a survey form). 
Problem is the users can hit the browser's back button and see the form 
again and we do not want that.  Any ideas how to make it show anything but 
the form?

--James

----- Original Message ----- 
From: "Javier Sanchez" <ja...@gmail.com>
To: "Tapestry users" <us...@tapestry.apache.org>
Sent: Friday, May 30, 2008 6:46 PM
Subject: Re: T3: Stop back button


> Isn't obvious?  What exactly do you want your application to do?
>
> On Fri, May 30, 2008 at 1:46 PM, James Sherwood 
> <js...@rgisolutions.com>
> wrote:
>
>> Hello all,
>>
>> We are using tapestry 3.  We need to make it so when a user submits a 
>> form
>> and then presses the back button, it does not show them the form.
>>
>> Any ideas?
>>
>> --James
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
>> For additional commands, e-mail: users-help@tapestry.apache.org
>>
>>
>
>
>
> __________ Information from ESET Smart Security, version of virus 
> signature database 3148 (20080530) __________
>
> The message was checked by ESET Smart Security.
>
> http://www.eset.com
> 


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


Re: T3: Stop back button

Posted by Javier Sanchez <ja...@gmail.com>.
Isn't obvious?  What exactly do you want your application to do?

On Fri, May 30, 2008 at 1:46 PM, James Sherwood <js...@rgisolutions.com>
wrote:

> Hello all,
>
> We are using tapestry 3.  We need to make it so when a user submits a form
> and then presses the back button, it does not show them the form.
>
> Any ideas?
>
> --James
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>