FormMap addition - potentialy breaking some implementations

View: New views
1 Messages — Rating Filter:   Alert me  

FormMap addition - potentialy breaking some implementations

by Franck Routier :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

just a note to point out I just commited a modification to FormMap
interface, that has the potential to break some implementations...

fro_120508_1 - Adding a FormMap map(Map map) method to FormMap
interface, and to the DefaultFormMap implementation. Will break existing
implementations of FormMap not based on DefaultFormMap, but I doubt
there are many.


Notice that FormMap already had a map(StateMap sm) that internaly was
mapping the Map backing StateMap.
So, now you can map a plain java.util.Map. This can be useful for
example to map OS Quartz' JobDataMap and benefit from validations /
auto-casting provided by barracuda's form package while scheduling jobs.


Franck




--
Barracuda mailing list
Barracuda@...
http://www.ow2.org/wws/lists/projects/barracuda