Re: how to write json/xml output using struts 2 and rest + convention plugin

2012-10-04 Thread Ken McWilliams
I'm not familiar with this application but simply look at the documentation for the struts2-json-plugin, you can specify a json result and you can specify include and exclude parameters (so you just return the part(s) of your Action you want). In this way you could define a new map, put a key of "r

how to write json/xml output using struts 2 and rest + convention plugin

2012-10-04 Thread Jane Wayne
i've downloaded the demo apps for struts 2 v2.3.5 SNAPSHOT for today. i am trying to understand and study the rest struts2-rest-showcase webapp. in the rest showcase, the OrdersController class has the following method. public String editNew() { model = new Order(); return "editNew"; } the use

RE: overriding framework components

2012-10-04 Thread Davis, Chad
> 2012/10/4 Davis, Chad : > > And, since I think I saw your name on some comments in the TextProvider, > I wonder what constructors get invoked when the TextProvider is injected in > the TextProviderFactory on ActionSupport. The default TextProviderSupport > has references to locale provider and

Re: implementaiton advise on custom TextProvider

2012-10-04 Thread Lukasz Lenart
2012/10/4 Davis, Chad : > So, I want to have the framework use my own custom TextProvider. Since the > framework uses DI to inject such things, I've been able to have my own custom > TextProvider injected into the system. Now, I'm encountering some other > issues related to how to correctly in

Re: overriding framework components

2012-10-04 Thread Łukasz Lenart
2012/10/4 Davis, Chad : > And, since I think I saw your name on some comments in the TextProvider, I > wonder what constructors get invoked when the TextProvider is injected in the > TextProviderFactory on ActionSupport. The default TextProviderSupport has > references to locale provider and a

implementaiton advise on custom TextProvider

2012-10-04 Thread Davis, Chad
So, I want to have the framework use my own custom TextProvider. Since the framework uses DI to inject such things, I've been able to have my own custom TextProvider injected into the system. Now, I'm encountering some other issues related to how to correctly initialize my custom provider. Ac

RE: overriding framework components

2012-10-04 Thread Davis, Chad
> > Here you have the full list of extension points > > http://struts.apache.org/2.x/docs/plugins.html#Plugins-ExtensionPoints > Excellent. Thank you. And, since I think I saw your name on some comments in the TextProvider, I wonder what constructors get invoked when the TextProvider is in

Re: Struts2 authentication, validation, and roles

2012-10-04 Thread Łukasz Lenart
2012/10/3 Ken McWilliams : > Asking for the consideration of a struts2 feature enhancement. > > The roles interceptor depends on container based security, it is a bit > of a pain to set up and portability is complicated by needing to cover > more documentation steps (how to secure your application