Roughly speaking, instead of using the setXxx and getXxx pattern, these packages use calls like document.getField("xxx") and document.setField("xxx",value).
I'm wondering if the bean introspection layer of Velocity has any mechanism whereby I could write an adapter class, with the ultimate goal being the use of these classes (or Maps, for that matter) just like regular old Java Beans in Velocity template, i.e. the adapter class would generate the mapping so that $object.property would call document.getField("xxx") instead of document.getXxx.
Any pointers greatly appreciated. If this doesn't exist, seems useful to other people, and I manage to do it, I would of course be happy to contribute it back to the project. (I could write a wrapper bean, but this seems more fun, and since these classes have have changing field sets, more useful as well)
Thanks! (and thanks for Velocity!) eric
--------------------------------------------------------------------- Eric Fixler [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
