A couple of thoughts come to mind:
 - very hacky: ensure the wizard pages are not serializable -> they
won't end up in the pagestore so any back button activity will result
in pageexpired messages
 - less hacky: remove the wizard pages after the final submission from
the pagestore (I believe you can evict them)
 - even less hacky: in onsubmit of your final step mark the form
submitted (create a field 'submitted' and set it to true) and add a
validator that fails when the flag is true

Martijn

On Fri, Mar 26, 2010 at 4:48 PM, Sergey Olefir <solf.li...@gmail.com> wrote:
>
> Also on this subject -- if I want to prevent users from submitting wizard
> (multi-page form) again via back button after they've submitted it once (or
> in other conditions), what would be the best way to approach this problem?
>
> And similarly -- if I want to prevent users from using back button at all
> (e.g. show them the last 'normally' generated page if they submit anything
> from the 'old' page), what would be the best way to achieve this?
>
>
>
> Sergey Olefir wrote:
>>
>> Hi,
>>
>> I'm looking for a good source of information on Wicket's support for
>> browser's back button and also on what happens when user opens a new
>> tab/window. I feel this is something I need to understand well before
>> we can deploy our first Wicket application in production.
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Support-for-back-button-and-new-windows--tp28028525p28043507.html
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.4 increases type safety for web applications
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.4.4

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

Reply via email to