Hi,
Assume I have an object that is not a java bean, but has the same capabilities, meaning, a way of getting / setting values by introspection. The simplest example is an object that holds all properties inside a Map instance and has get(String prop) and set(String prop, Object val) methods.
I want to work with such objects as command objects for AbstractCommandController-s. So far, I couldn't find a reliable way.
(Specifically, I've tried to modify AbstractCommandController, so it could bind to such objects, but it uses ServletRequestDataBinder which uses BeanWrapper from the 'errors' BindException instance, which instatiates it as BeanWrapperImpl by hard-code, and BeanWrapperImpl is very tied to java bean objects. This is all very strange type of coding from an IOC framework)
Can someone help me with this issue please?
Thanx,
Ittay


Reply With Quote