Re: implementaiton advise on custom TextProvider

2012-10-22 Thread Lukasz Lenart
2012/10/19 Davis, Chad chad.da...@emc.com: 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 Davis, Chad
2012/10/19 Davis, Chad chad.da...@emc.com: 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

Re: implementaiton advise on custom TextProvider

2012-10-22 Thread Lukasz Lenart
2012/10/22 Davis, Chad chad.da...@emc.com: 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-19 Thread Davis, Chad
PM To: Struts Users Mailing List Subject: Re: implementaiton advise on custom TextProvider 2012/10/18 Davis, Chad chad.da...@emc.com: 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

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 TextProvider is

Re: implementaiton advise on custom TextProvider

2012-10-18 Thread Lukasz Lenart
2012/10/18 Davis, Chad chad.da...@emc.com: 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
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 it.

Re: implementaiton advise on custom TextProvider

2012-10-18 Thread Lukasz Lenart
2012/10/18 Davis, Chad chad.da...@emc.com: 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

RE: implementaiton advise on custom TextProvider

2012-10-16 Thread Davis, Chad
Do you have the: constant name=struts.objectFactory value=spring/ 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

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 some

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 chad.da...@emc.com 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

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

Re: implementaiton advise on custom TextProvider

2012-10-16 Thread Lukasz Lenart
2012/10/16 Davis, Chad chad.da...@emc.com: 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

Re: implementaiton advise on custom TextProvider

2012-10-16 Thread Lukasz Lenart
2012/10/15 Davis, Chad chad.da...@emc.com: 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

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 it

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 bean 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 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 bean in Struts use the Spring Bean ID instead of using the full class name. Struts will use that Spring Bean in place

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 chad.da...@emc.com 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

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 bean in Struts use the Spring Bean ID instead of using the full class name. Struts will use that Spring Bean in place

Re: implementaiton advise on custom TextProvider

2012-10-15 Thread Chris Pratt
Do you have the: constant name=struts.objectFactory value=spring/ 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 chad.da...@emc.com wrote: If you are using the Spring Framework with your App, you should be

Re: implementaiton advise on custom TextProvider

2012-10-04 Thread Lukasz Lenart
2012/10/4 Davis, Chad chad.da...@emc.com: 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