2012/12/3 Eric Lentz <ericle...@outfastsource.com>: > I'm almost there. I didn't suspect that it would work that way with the > iterator. Should have tried it first! Thanks Dave. > > On the way back, such as in a post, if BaseObject is an interface or > abstract, as I'm hoping for it to be, then Struts tries to instantiate the > BaseObject type, which it can't, so it throws: > > [com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler] Could > not create and/or set value back on to object > java.lang.InstantiationException > at > sun.reflect.InstantiationExceptionConstructorAccessorImpl.newInstance(InstantiationExceptionConstructorAccessorImpl.java:30) > at java.lang.reflect.Constructor.newInstance(Constructor.java:501) > at java.lang.Class.newInstance0(Class.java:350) > at java.lang.Class.newInstance(Class.java:303) > at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:130) > at > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.createObject(InstantiatingNullHandler.java:159) > at > com.opensymphony.xwork2.conversion.impl.InstantiatingNullHandler.nullPropertyValue(InstantiatingNullHandler.java:137) > at > com.opensymphony.xwork2.ognl.OgnlNullHandlerWrapper.nullPropertyValue(OgnlNullHandlerWrapper.java:21) > at ognl.ASTProperty.getValueBody(ASTProperty.java:118) > ...etc. > > Any ideas on solving that?
You can implement your own ObjectTypeDeterminer or you can try to play with @Element Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org