Ondřej Čada
2013-01-18 03:01:46 UTC
Hello there,
I've got this kind of form:
<wo:form action = "$app.emptyAction">
Check
<wo:checkbox checked = "$auctionTemplate.hiddenForOwner" onchange = "this.form.submit();" /> hidden for owner
<wo:checkbox checked = "$auctionTemplate.hiddenForBroker" onchange = "this.form.submit();" /> hidden for broker
</wo:form>
where app.emptyAction is truly an empty action (no contents, returns null), and it works excellently -- unless the last of the switches (regardless which one) is to be switched off.
In that case, the form properly reloads, but auctionTemplate is _not_ changed at all -- the application is _not_ informed about the change, and the hiddenForXXX property stays on.
Just by chance, I've found that if I add a completely unused variable 'wtf' to the component and change the form thus:
<wo:form action = "$app.emptyAction"> ### action which does nothing at all
Check
<wo:checkbox checked = "$auctionTemplate.hiddenForOwner" onchange = "this.form.submit();" /> hidden for owner
<wo:checkbox checked = "$auctionTemplate.hiddenForBroker" onchange = "this.form.submit();" /> hidden for broker
<wo:hidden value = "$wtf"/>
</wo:form>
it works quite all right.
What the heck?!? Is that a known bug in HTML or WebObjects or...what? Or is there some weird problem in my code somewhere?
Thanks and all the best,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc
I've got this kind of form:
<wo:form action = "$app.emptyAction">
Check
<wo:checkbox checked = "$auctionTemplate.hiddenForOwner" onchange = "this.form.submit();" /> hidden for owner
<wo:checkbox checked = "$auctionTemplate.hiddenForBroker" onchange = "this.form.submit();" /> hidden for broker
</wo:form>
where app.emptyAction is truly an empty action (no contents, returns null), and it works excellently -- unless the last of the switches (regardless which one) is to be switched off.
In that case, the form properly reloads, but auctionTemplate is _not_ changed at all -- the application is _not_ informed about the change, and the hiddenForXXX property stays on.
Just by chance, I've found that if I add a completely unused variable 'wtf' to the component and change the form thus:
<wo:form action = "$app.emptyAction"> ### action which does nothing at all
Check
<wo:checkbox checked = "$auctionTemplate.hiddenForOwner" onchange = "this.form.submit();" /> hidden for owner
<wo:checkbox checked = "$auctionTemplate.hiddenForBroker" onchange = "this.form.submit();" /> hidden for broker
<wo:hidden value = "$wtf"/>
</wo:form>
it works quite all right.
What the heck?!? Is that a known bug in HTML or WebObjects or...what? Or is there some weird problem in my code somewhere?
Thanks and all the best,
---
Ondra Čada
OCSoftware: ***@ocs.cz http://www.ocs.cz
private ***@ocs.cz http://www.ocs.cz/oc