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-buttonI 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