Re: Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Musachy Barroso
If your action is instantiated by the default object factory, do this: @Inject public void setConverter(XWorkConverter converter) {.} if you are using a different object factory (I think injection still happens with the Spring factory, but I am not 100% sure): Dispatcher.getInstance().getCon

Retrieving instance of XWorkConverter in 2.1.x

2009-05-11 Thread Bob Jacoby
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 ra