Surely sendmail reeled when thusly spake Geert Bevin:
>
> >I'm hazy on what the variety of events is. HTML supports PUT
> >and POST, and Javascript supports purely local validation, and
> >Ajax can support round-trips to the server.
> >
> >Did you have something else in mind ? Such as interdependencies
> >between widgets (if X is "Y" then disable Z) ?
>
> Typically, each widget should be able to respond to certain events:
> * "onClicked", "onEnabled", "onDisabled" for a button
> * "onExpand", "onCollapse", "onSelect", ... for a tree
> * "onGetItems", "onSelect" for a combobox
> * etc
>
> This is normally done with a tree of widgets (in Swing), where core
> events are captured by listeners (which are for instance more
> functional widgets.
The question here is, do you want to do a page reload, or do you
want to to an asynchronous update using Javascript ?
Anyways, when we are talking about Rife, isn't it more useful to
talk about what is supported in Javascript and DOM events, rather
than what is supported in Swing ?
W.r.t. browser widgets, I guess it would be nice if I could (say)
map my Element to a Tree widget, and I could optionally declare an
Element method like "onExpand" which would auto-link to a Javascript
onExpand() handler in the browser that could handle data from the
servlet. But that sounds like a Javascript hell, unless there is
some Ajax framework that can do the grunt work.
BTW here's an article that describes what a conceptual nightmare
a lot of Ajax-type stuff is, and how declarative programming is
our best hope of rescue:
http://www.xml.com/pub/a/2005/06/29/deviant.html
> These widgets can then themselves support new event
> types that are specific for them. This is the model that Wicket uses.
> I'm not sure it makes total sense in the context of RIFE and if the
> same design should be applied, which is why I'm soliciting input.
If my browser tree widget maps to my Element, then maybe
I _could_ extend its behavior, if there is also a way to
provide the corresponding Javascript for the browser.
fred
--
F.Baube * "Happy songs never made me happy.
Georgetown/MSFS/1988 * A lot of sad songs have."
email fbaube#welho.com * -- Mira Aroyo, Ladytron
gsm +358 41 536 8192 *
wmd 60°11'10.8"N 24°57'36.9"E
_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users