I'm trying to migrate code from webwork to 2.1.6 and am not sure about how
to get a reference to the XWorkConverter singleton. The
XWorkConverter.getInstance() method was removed in 2.1.x (existed in 2.0.x)
and the constructor is protected. The code I'm trying to migrate is:

 

//'from' is some random object

Map contextFrom = Ognl.createDefaultContext(from);

Ognl.setTypeConverter(contextFrom, XWorkConverter.getInstance());

 

Any suggestions would be appreciated. I've tried googling and looking at the
migration guides but didn't see anything that appeared relevant.

 

Thanks,

Bob

Reply via email to