[aida] Buttons and actions

Martin Polák nigol at nigol.cz
Thu Jul 21 23:05:07 CEST 2011


Hi  Janko,

thanks for fast response.

On 21.7.2011, at 22:49, Janko Mivšek wrote:

> Hi Martin,
>
> Welcome to the list!
>
> I'm just preparing a ToDo example to show the another and currently  
> the
> strongest dimension: highly ajaxified and realtime so called single  
> page
> apps. What you saw in tutorial is a traditional but still very needed
> approach. Combined with single page one you come to the biggest  
> strength
> of Aida.

Great, I'm really looking forward to see such this example.

>
>
> Super, just corrected, thanks!
>

You're welcome, I'm pleased I could help.


>
> Change method name to #actionMainBack
>
>>
>> changed method:
>>
>> ADemoAddressApp>>actionEdit
>> 	self redirectToView: #edit
>
> And change this method name to #actionMainEdit.
>>
>> and made changes in:
>>
>> ADemoAddressApp>>viewMain
>>
>> 	...here goes original code from tutorial...
>> 	...
>> 	e addButtonText: 'Edit' action: #edit.
>> 	e addButtonText: 'Zpět' action: #back.
>> 	self style pageFrameWith: e title: 'Address'
>
> As you see action method names are composed by convetion as
> 'action'+viewname+action(optional). That's why #actionMainBack.
>
> Let me add an error report if such method is not composed correctly  
> and
> therefore missing...
>
> Best regards
> Janko
>

Thanks a lot. Now it's clear to me and everything woks well. I must  
catch the overall 'spirit' of Aida, because I just started to dicover  
it, but I must say, it quite impressed me.

Regards
Martin



More information about the Aida mailing list