Mark Spritzler wrote:Can you, in code figure out the class implementation to instantiate?
I have done heirarchies like that in PropertyEditors and I am sure I can do that in a Converter class too.
How do you determine what type of implementation to instantiate?
Mark
can you point me in the right direction on how to do this in a custom editor?
I think I cannot figure out what type to instantiate because the BeanWrapperImpl only gives me the sourceType and TargetType, which it retrieved trough reflection and only from the signature of the property(the interface) not the actual implementation. If somehow the BeanWrapperImpl gave me the OldValue(which does contain the actual type) then I can get the value I should bind to. But for some reason the oldValue is always null...