You mention annotations, and that is definitely the way
to go, to move from a procedural style to a declarative.
I note that Rife is using Constraints to implement (in
a JDK 1.4 context) what other frameworks are trying to
do now with 1.5  :)

Indeed :-)

The constraints have one huge benefit though, they function on instance level and not on class level.

This is obvious I guess; all I want to say is that it
might be relatively easy to make Rife do these things
with annotations instead.  Code would be cleaner, and
it would boost the attractiveness of the framework while
still retaining the additional niceties of the Rife API.

Indeed it would not be hard.

You talk about using autodiscovery to detect forms variables
and forms processing methods, and I think that would be great.
I wonder if (for example) it would be useful if an Element
could use annotations to declare the forms variables it needs
and their default widget types, and with the possibility to
declare custom "widget loaders".

Could you expand on this?

FWIW I wonder if you might get some inspirations from Stripes,
a new framework that rolled out recently and uses annotations
very heavily.  It got lots of "hey that's cool!" comments, but

The comments I read about it were more "so what?" comments, but that's beyond the point. I'll definitely look at their annotions reference.

I haven't read yet any stories about people actually using it.

http://www.theserverside.com/news/thread.tss?thread_id=36388
http://stripes.mc4j.org/confluence/display/stripes/Home
http://stripes.mc4j.org/confluence/display/stripes/Annotation +Reference

Any ideas about how to support events for widget elements (I always read this like midget, dunno why ;-)), or better ideas to make them usable in the site structure?

--
Geert Bevin                       Uwyn bvba
"Use what you need"               Avenue de Scailmont 34
http://www.uwyn.com               7170 Manage, Belgium
gbevin[remove] at uwyn dot com    Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 309F D6A9
Public PGP key  : available at servers pgp.mit.edu, wwwkeys.pgp.net


_______________________________________________
Rife-users mailing list
[email protected]
http://www.uwyn.com/mailman/listinfo/rife-users

Reply via email to