Ugo Cei wrote:
I'd like to add an "enum" basetype and "enum" convertor to Woody. Those would work with types implementing Joshua Bloch's "typesafe enum" pattern [1].

OK, since I had a little time on my hands, I went ahead and committed a first implementation. Basically, it works, but relies on the usage of reflection (see o.a.c.woody.datatype.convertor.EnumConvertor), which I don't like. A sprinkle of AOP would be nice here, maybe implemented via a dynamic proxy.


See http://localhost:8888/samples/woody/form2bean.flow for an example of usage.

Ugo


Reply via email to