Re: action binding with conditionals
Re: action binding with conditionals
- Subject: Re: action binding with conditionals
- From: "Richard L. Peskin" <email@hidden>
- Date: Tue, 8 Apr 2003 12:14:20 -0400
I stand corrected; it is a "behavioral feature", not a bug.
On Tuesday, April 8, 2003, at 01:26 AM, Chuck Hill wrote:
> Bugs should be reported at https://bugreport.apple.com/
>
> However, before you rush off there...
>
> - is the Submit button inside of a conditional?
yes
> If so, it will only be
> invoked if the conditional expression evaluates to true during the
> invokeAction phase, *after* the takeValues phase has updated the form
> values. Yes, this is correct behaviour.
This behavior was unexpected (by me). I would have expected that an
event triggered by pressing a button, would always invoke and "action"
(method) bound to that event. I think my confusion is that a
WOComponent (e.g. Submit button) is an object and the action is bound
to that object. The "event" (pressing the button) is handled by the
user's browser (doing the usual form data submission, etc.). It looks
like this button press sends a message to the Submit button object,
which in turn will deal with bound actions depending on conditionals.
Does this sound correct?
>
> - do you have multiple submit buttons in the form?
no
> Did you remember to set
> multipleSubmit=yes
>
>
> Regards,
>
> Chuck
>
>
> At 07:39 PM 07/04/2003 -0400, Richard L. Peskin wrote:
>> It appears that the problem I asked about previously, namely the
>> failure of a WOComponent (e.g. Submit button) to call and action
>> method
>> bound to it when conditionals are involved is a bug. When one presses
>> a
>> Submit button an action method bound to it should be called,
>> regardless
>> of the presence of conditionals. How does one report a WO bug?
>> --dick peskin
>>
>>
>>
>> Richard L. Peskin, RLP Consulting, Londonderry, VT
>> http://www.rlpcon.com
>> http://www.caip.rutgers.edu/~peskin
>> _______________________________________________
>> 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.
>>
>
> --
>
> Chuck Hill email@hidden
> Global Village Consulting Inc.
> http://www.global-village.net
>
Richard L. Peskin, RLP Consulting, Londonderry, VT
http://www.rlpcon.com
http://www.caip.rutgers.edu/~peskin
_______________________________________________
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.