Cancel action buton

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Cancel action buton

BrunoBB
Hi,

 

How to implement a Cancel action with a button in AIDA?

 

I have a Form with 2 buttons: ?Accept? and ?Cancel?. No problem with accept
action, all form values are transfered to observee object.

But the cancel action does the same as accept button.

 

Then i noticed that #acceptInputs method it is always executed and that is
the problem.

 

Is there any way to avoid that subcomponents (as WebInputField,
WebDateInputField, etc) of a form set the variables of the observee object?

 

Regards

Bruno

 


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date: 17/07/2007
18:30
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.aidaweb.si/pipermail/aida/attachments/20070718/8c2240bc/attachment.htm 

Reply | Threaded
Open this post in threaded view
|

Cancel action buton

Janko Mivšek
Hi Bruno,

Bruno Buzzi Brassesco wrote:

> How to implement a Cancel action with a button in AIDA?

Try:

        e add: (WebButton new type: 'reset').


> I have a Form with 2 buttons: ?Accept? and ?Cancel?. No problem with
> accept action, all form values are transfered to observee object.
>
> But the cancel action does the same as accept button.

This cancel action (addButtonText: 'Cancel' action: #cancel) is not what
you want in that case.

You want to make a so called "reset" button. Clicking on it don't post
anything to server but just resets (empties) localy all form values.

See also: http://www.w3.org/TR/html401/interact/forms.html#reset-button

I hope this solves your problem

Best regards
Janko

> Then i noticed that #acceptInputs method it is always executed and that
> is the problem.
>
>  
>
> Is there any way to avoid that subcomponents (as WebInputField,
> WebDateInputField, etc) of a form set the variables of the observee object?
>
>  
>
> Regards
>
> Bruno
>
>  
>
>
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.5.476 / Virus Database: 269.10.8/906 - Release Date:
> 17/07/2007 18:30
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Aida mailing list
> Aida na aidaweb.si
> http://lists.aidaweb.si/mailman/listinfo/aida

--
Janko Miv?ek
AIDA/Web
Smalltalk Web Application Server
http://www.aidaweb.si

Reply | Threaded
Open this post in threaded view
|

Cancel action buton

BrunoBB

> How to implement a Cancel action with a button in AIDA?

Try:
        e add: (WebButton new type: 'reset').

> I have a Form with 2 buttons: ?Accept? and ?Cancel?. No problem with
> accept action, all form values are transfered to observee object.
>
> But the cancel action does the same as accept button.

This cancel action (addButtonText: 'Cancel' action: #cancel) is not what
you want in that case.

You want to make a so called "reset" button. Clicking on it don't post
anything to server but just resets (empties) localy all form values.

See also: http://www.w3.org/TR/html401/interact/forms.html#reset-button

I hope this solves your problem
/********************************************************************/

Yes, this is what I want.

Thanks very much.

Regards
Bruno


No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.476 / Virus Database: 269.10.9/907 - Release Date: 18/07/2007
15:30