Re: Some WOConditionals won't transfer form values
Re: Some WOConditionals won't transfer form values
- Subject: Re: Some WOConditionals won't transfer form values
- From: Jonathan Rochkind <email@hidden>
- Date: Mon, 17 Mar 2003 19:50:46 -0600
The conditional needs to evaluate to 'true' through the request-response
loop. If the state of the component changes such that at the point the
form submit is processed the conditional evaluates to 'false', it won't
take it's values or invoke it's action.
You could think of this as a security feature: attackers can't invoke
random actions or set random values by guessing at the elementIDs---only
things that are supposed to be available to the user can respond to form
submits. Things inside conditonals bound to false can not.
But it's sometimes tricky when you write code where the condition will
change in between page generation and form submit. You need to change
things around so this doesn't happen. Perhaps set the condition to a
special variable which is only changed in appendToResponse before
super.appendToResponse. That's my favorite control point for stuff like this.
--Jonathan
At 01:48 AM 3/18/2003 +0100, you wrote:
Hi!
I have a really strange problem with *some* WOConditionals:
There are some WOConditionals that - when bound to a certain key - will
refrain to send form values to the application.
The funny thing: this behaviour occurs only on a very very little number
of keys - and I still wasn't able to found out what they have in common.
With these keys, however, this problem reproducable. Binding another key
to the vey some WOConditional everything works fine.
The result of this problem is that if I have a submit button in such a
conditional it would simply not call the action bound to it. When such a
conditional contains a textfield, e.g. its values won't be passed on to
the key that is bound to it.
Does anybody have any idea what I could have done wrong?
(BTW: WO 5.1, Mac OS X 10.2.4)
Cheers
-Marc
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Bis zu 100 MB Speicher bei http://premiummail.yahoo.de
_______________________________________________
WebObjects-dev mailing list
email@hidden
http://www.omnigroup.com/mailman/listinfo/webobjects-dev
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.