Re: Backtrack and re-submit WOSubmitButton behaviour
Re: Backtrack and re-submit WOSubmitButton behaviour
- Subject: Re: Backtrack and re-submit WOSubmitButton behaviour
- From: Susanne Schneider <email@hidden>
- Date: Mon, 28 Sep 2009 17:47:32 +0200
Hi John,
the described behaviour is absolut normal. In addition if the checkbox
is the only element in the form ,the form will not get submitted at all
if the checkbox is not checked. This can cause strange results if not
expected. In that case it helps to put a hidden element in the form to
get the submit working.
HTH,
Susanne
It was suggested to me to check
WOApplication.setPageRefreshOnBacktrackEnabled() but that didn't help
unfortunately. The default for this setting is true and I don't call
it. Experimental setting of this flag made no difference. Does the
behaviour I describe sound weird, or is it normal for WOCheckBox not
to pass through their value when unticked? I am using the "checked"
binding only.
Thanks, John
On 25 Sep 2009, at 15:46, John Pollard wrote:
Hi List, I am struggling with a simple backtrack scenario with our
web-site shopping cart.
To observe the behaviour, please use this link to put a delightful
pair of gloves in the cart on our test server:
http://test.inrax.com/wa/4/43/4004/120494.html
then click CHECKOUT, enter some rubbish into the mandatory fields
and TICK THE "Deliver to an alternative address?" box, then click
NEXT STEP.
This takes you to the next checkout page where you can enter the
alternate delivery address.
Now you realise that you don't want a separate delivery address
after all, so you backtrack one page and untick the "Deliver to an
alternative address?" box and click NEXT STEP again.
This is where things go wrong and the behaviour depends on the
browser:
Safari on Leopard: the new toggle selection is completely ignored
and your second click on NEXT STEP does not result in my
submitDetails() method being called at all; this is the action
method on the NEXT STEP WOSubmitButton. Tellingly (I suspect), if
you do the opposite and initially do NOT tick the Alternate Delivery
Address toggle, but change your mind, backtrack and then tick it,
the submitDetails() is called and it works as expected.
IE8 on WinXP: When you try to backtrack, IE doesn't let you, saying:
Webpage has expired, Most likely cause: The local copy of this
webpage is out of date, and the website requires that you download
it again. etc. and if you opt to refresh it tells you not to do so
if you are buying something!
Firefox on Leopard: On clicking the backtrack button, you are told
Firefox must send info to repeat the action and clicking Resend has
the end result of leaving you where you are effectively blocking the
backtrack.
John
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
Susanne Schneider
Coordinator secuTrial Development
iAS interActive Systems GmbH
Dieffenbachstraße 33 c, D-10967 Berlin
fon +49(0)30 22 50 50 - 498
fax +49(0)30 22 50 50 - 451
mail email@hidden
web http://www.interActive-Systems.de
----------------------------------------------------
Geschäftsführer: Dr. Marko Reschke, Thomas Fritzsche
Sitz der Gesellschaft: Berlin
Amtsgericht Berlin Charlottenburg, HRB 106103B
----------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden