[aida] Ajax action handlers
Janko Mivšek
janko.mivsek at eranova.si
Thu Jan 29 18:45:27 CET 2009
Hi Nico,
nico pravi:
> With a colleague we have tweaked Aida to handle (ajax or not) actions in
> WebComponent. We do it with an unique action id in the html page, each
> id corresponding to an action (a block closure actually). All id/action
> association is registered in a context object, itself stored in a
> special session class, subclass of WebSession.
In WebSession we have #userValues dynamic value for any extensions.
Well, maybe would be better to rename to #other?
> This mechanism works very well, and we have this way standalone
> components. We use this to build a commercial CMS based on Scribo.ž
I hope you'll show us to copy it to base Aida too :)
Janko
> Le mardi 27 janvier 2009 à 16:39 +0100, Janko Mivšek a écrit :
>> But introduction of action methods to WebComponents, that's something
>> worth looking at. Ok, then there will be a problem of double
>> implementation of essentially the same in apps and components, but
>> this
>> could be resolved later. What I'd like to add soon is form posting
>> from
>> standalone components, Ajax style. We can achieve a lot just with
>> that!
>>
>> Your example bellow also shows the problem of parameter passing via
>> Ajax
>> requests. So far only strings are supported and you need to compose
>> and
>> decomose them manually. General object passing would be nice of
>> course,
>> by value or maybe even by reference?
>>
>> ------------------------------------------------------------------------
>>
>> _______________________________________________
>> Aida mailing list
>> Aida na aidaweb.si
>> http://lists.aidaweb.si/mailman/listinfo/aida
--
Janko Mivšek
Svetovalec za informatiko
Eranova d.o.o.
Ljubljana, Slovenija
www.eranova.si
tel: 01 514 22 55
faks: 01 514 22 56
gsm: 031 674 565
More information about the Aida
mailing list