Re: implementaiton advise on custom TextProvider

2012-10-22 Thread Lukasz Lenart
2012/10/22 Davis, Chad : > Because the framework components, such as ActionSupport, are intended to be > extended, correct? Correct :-) Regards -- Łukasz mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - Confitura http://confitura.pl/ -

RE: implementaiton advise on custom TextProvider

2012-10-22 Thread Davis, Chad
> 2012/10/19 Davis, Chad : > > Thanks man! I'll check it out this morning. I think the protected seems > > like > a great idea. It's an interesting question, whether to make such things > protected or private. > > When this is a part of framework it should be protected. In apps mostly no ;

Re: implementaiton advise on custom TextProvider

2012-10-22 Thread Lukasz Lenart
2012/10/19 Davis, Chad : > Thanks man! I'll check it out this morning. I think the protected seems > like a great idea. It's an interesting question, whether to make such things > protected or private. When this is a part of framework it should be protected. In apps mostly no ;-) Regards --

RE: implementaiton advise on custom TextProvider

2012-10-19 Thread Davis, Chad
October 18, 2012 11:59 PM > To: Struts Users Mailing List > Subject: Re: implementaiton advise on custom TextProvider > > 2012/10/18 Davis, Chad : > > > >> Of course, and I'd even be happy to do the work. Perhaps you can > >> advise me on a plan? > &g

Re: implementaiton advise on custom TextProvider

2012-10-18 Thread Lukasz Lenart
2012/10/18 Davis, Chad : > >> Of course, and I'd even be happy to do the work. Perhaps you can advise >> me on a plan? >> >> Everything is ready, I'm just waiting for you to register the issue ;-) >> > > I created the ticket. Let me know if the ticket conforms with struts2 > standards for ticket

RE: implementaiton advise on custom TextProvider

2012-10-18 Thread Davis, Chad
> Of course, and I'd even be happy to do the work. Perhaps you can advise > me on a plan? > > Everything is ready, I'm just waiting for you to register the issue ;-) > I created the ticket. Let me know if the ticket conforms with struts2 standards for ticket submission; I'll be happy to edit

Re: implementaiton advise on custom TextProvider

2012-10-18 Thread Lukasz Lenart
2012/10/18 Davis, Chad : > Of course, and I'd even be happy to do the work. Perhaps you can advise me > on a plan? Everything is ready, I'm just waiting for you to register the issue ;-) Regards -- Łukasz + 48 606 323 122 http://www.lenart.org.pl/

RE: implementaiton advise on custom TextProvider

2012-10-18 Thread Davis, Chad
> >> But when I start the app I get the following error, thrown when the > >> framework tries to create the text provider bean. It seems like the > >> framework isn't recognizing that I'm referencing a spring bean with > >> the class attribute . . . > >> > > > > So, I have figured this out. The

Re: implementaiton advise on custom TextProvider

2012-10-16 Thread Lukasz Lenart
2012/10/15 Davis, Chad : > I'm not sure I follow you. Just for clarity, let me restate my problem. I > have written a custom extension of TextProviderSupport. I want to have it > injected as the framework's default TextProvider. I have achieved this by > configuring it in struts.xml, declarin

Re: implementaiton advise on custom TextProvider

2012-10-16 Thread Lukasz Lenart
2012/10/16 Davis, Chad : >> >> Okay. I'm following this path. I've got the Spring Plugin in place. And >> it's >> working. I verified it by autowiring a trivial spring bean into one of my >> actions. But when I try to create my custom textprovider and then have it >> used as the framework def

RE: implementaiton advise on custom TextProvider

2012-10-16 Thread Davis, Chad
> Spring MVC might be a consideration! (wink) On Oct 16, 2012 1:26 PM, I heard it has a pretty good integration with the whole Spring ecosystem. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comman

RE: implementaiton advise on custom TextProvider

2012-10-16 Thread stanlick
Spring MVC might be a consideration! (wink) On Oct 16, 2012 1:26 PM, "Davis, Chad" wrote: > > > > Okay. I'm following this path. I've got the Spring Plugin in place. > And it's > > working. I verified it by autowiring a trivial spring bean into one of > my > > actions. But when I try to crea

RE: implementaiton advise on custom TextProvider

2012-10-16 Thread Davis, Chad
> > Okay. I'm following this path. I've got the Spring Plugin in place. And > it's > working. I verified it by autowiring a trivial spring bean into one of my > actions. But when I try to create my custom textprovider and then have it > used as the framework default text provider I'm getting

RE: implementaiton advise on custom TextProvider

2012-10-16 Thread Davis, Chad
> Do you have the: > > > > constant defined in your struts.xml? That should be all that's needed. > (*Chris*) I don't but . . . isn't that in the plugin.xml? And isn't the fact that I was able to autowire an action with a spring bean proof that the spring object factory is being used a

Re: implementaiton advise on custom TextProvider

2012-10-15 Thread Chris Pratt
Do you have the: constant defined in your struts.xml? That should be all that's needed. (*Chris*) On Mon, Oct 15, 2012 at 2:53 PM, Davis, Chad wrote: > > > > If you are using the Spring Framework with your App, you should be able > to > > define your TextProvider, with all it's dependenc

RE: implementaiton advise on custom TextProvider

2012-10-15 Thread Davis, Chad
> If you are using the Spring Framework with your App, you should be able to > define your TextProvider, with all it's dependencies, as a Spring Bean, then > when you define the in Struts use the Spring Bean ID instead of using > the full class name. Struts will use that Spring Bean in place of

Re: implementaiton advise on custom TextProvider

2012-10-15 Thread Chris Pratt
With the Spring Plugin, Spring becomes the framework's internal DI. (*Chris*) On Mon, Oct 15, 2012 at 8:43 AM, Davis, Chad wrote: > > > > If you are using the Spring Framework with your App, you should be able > to > > define your TextProvider, with all it's dependencies, as a Spring Bean, > t

RE: implementaiton advise on custom TextProvider

2012-10-15 Thread Davis, Chad
> If you are using the Spring Framework with your App, you should be able to > define your TextProvider, with all it's dependencies, as a Spring Bean, then > when you define the in Struts use the Spring Bean ID instead of using > the full class name. Struts will use that Spring Bean in place of

Re: implementaiton advise on custom TextProvider

2012-10-15 Thread Chris Pratt
If you are using the Spring Framework with your App, you should be able to define your TextProvider, with all it's dependencies, as a Spring Bean, then when you define the in Struts use the Spring Bean ID instead of using the full class name. Struts will use that Spring Bean in place of creating

RE: implementaiton advise on custom TextProvider

2012-10-15 Thread Davis, Chad
> > ActionSupport#getTextProviderSupport() uses the TextProviderFactory to > obtain it's instance of a support object. Since it uses the di to inject > this into > the factory, my custom version is correctly injected. However, I need to > initialize my custom support object with a resource that

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

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