Why is the Action not being populated correctly with a List?

2016-12-02 Thread Nuno Oliveira
Hi, I have an DummyAction{ private List records; } which has the following converter DummyAction-conversion.properties: KeyProperty_records=id Element_records=com.package.model.RecordImpl CreateIfNull_records=true When the value stack is being populated in the ParametersInterceptor method setPa

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Lukasz Lenart
Super cool, thanks :) 2016-12-02 11:40 GMT+01:00 Miguel Almeida : > Thank you Lukasz! > > I will check if/how we can inject the converter there. If we manage to > get it working in a way that helps the ticket resolution I'll also post > the information there. > > > > On Sex, 2016-12-02 at 09:50 +0

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Miguel Almeida
Thank you Lukasz! I will check if/how we can inject the converter there. If we manage to get it working in a way that helps the ticket resolution I'll also post the information there. On Sex, 2016-12-02 at 09:50 +0100, Lukasz Lenart wrote: > Hi, > > JSON plugin uses its own conversation mecha

Re: Can you use type conversion with JSONInterceptor?

2016-12-02 Thread Lukasz Lenart
Hi, JSON plugin uses its own conversation mechanism, check JSONPopulator but I think it should be possible to inject XWorkConverter and use it to convert objects - this requires implementing your own JSONPopulator. There is a task to do it so it should happen in Struts 2.5 ;-) https://issues.apac