[aida] The greatest thing since sliced bread

nico petton.nicolas at gmail.com
Sat Jan 24 13:47:41 CET 2009


Le samedi 24 janvier 2009 à 11:36 +0100, Janko Mivšek a écrit :
> Eli Green pravi:
> 
> >> This is a quick idea from my head, maybe not the most elegant, but one
> >> of possibilities how to proceed towards the goal to have a fully
> >> ajaxified entry to your list.
> 
> > I've just had a moment to sit down and take a look at how this is done and from what I'm seeing there's no way to integrate the current action methods into this setup. What I would ideally like is to be able to say this:
> > 
> > (e addButtonText: 'Add' action #addObject) onClickUpdate: objectList.
> > 
> > Ideally, what the Ajax handler should do is to still call the normal actionMainAddObject before refreshing the objectList component. If we return "false" in the onClick javascript handler, the page will not actually be submitted normally. It's not a big issue but it would be nice to be able to code this consistently. It has the added benefit of being able to work whether the user's browser supports javascript or not but to be perfectly honest I'm not sure how many lynx/links users I need to worry about.
> > 
> > Oh, another benefit is that the form data gets posted all at once when the user has finished editing it, saving us the round-trips to and from the server.
> > 
> > Anyway, not a major complaint, just a suggestion!
> 
> Current action methods work nicely and follow MVC faithfully for views
> in your Apps. But for standalone ajaxified components, which can be
> reusable among different Apps and not only among views on the same App,
> well, here we have a problem.

Hi,

I think we already talked about it, and the result was that a way to do
it is to extend WebComponent to have actions (I know it would be a deep
change in Aida) and observee too.

Cheers!

Nico
-------------- section suivante --------------
Une pi�ce jointe non texte a �t� nettoy�e...
Nom: non disponible
Type: application/pgp-signature
Taille: 197 octets
Desc: Ceci est une partie de message
 =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?=
Url: http://lists.aidaweb.si/pipermail/aida/attachments/20090124/52c71fff/attachment.sig 


More information about the Aida mailing list