You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by Jay Bose <di...@yahoo.com> on 2008/05/02 03:15:14 UTC

ActionValidatorManagerFactory

While I used WebWork-2, and the XWork associated with it, I was able to programmatically
retrieve action validation using the ActionValidatorManagerFactory.

Now, it seems this class was removed.

Any suggestions on how to programmatically get a ValidatorFactory instance?


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: ActionValidatorManagerFactory

Posted by Jay Bose <di...@yahoo.com>.
Jeromy, I looked into this a bit more and in the end, I was able to basically replace my
reference to  ActionValidatorManagerFactory with ActionValidatorManager.

I got the ActionValidatorManager instance set via the @Inject annotation.

Thanks for your response; it definitely set me in the right direction.


--- Jay Bose <di...@yahoo.com> wrote:

> Jeromy, Thanks. 
> 
> I asked this in there, and received no response.
> I will look at the use of @Inject.
> 
> --- Jeromy Evans <je...@blueskyminds.com.au> wrote:
> 
> > Hi Jay,
> > 
> > This question about the use of Struts 2 should be asked in the 
> > struts-users forum.
> > 
> > The quick answer is that XWork provides a DI mechanism.  The 
> > ValidatorFactory can be injected into a property or constructor using 
> > the @Inject annotation in objects created by the framework.  See the 
> > beans in struts-default.xml and the usages of @Inject, 
> > Container.getInstance and Container.inject for more information.
> > 
> > Jay Bose wrote:
> > > While I used WebWork-2, and the XWork associated with it, I was able to
> > programmatically
> > > retrieve action validation using the ActionValidatorManagerFactory.
> > >
> > > Now, it seems this class was removed.
> > >
> > > Any suggestions on how to programmatically get a ValidatorFactory instance?
> > >
> > >
> > >      
> > ____________________________________________________________________________________
> > > Be a better friend, newshound, and 
> > > know-it-all with Yahoo! Mobile.  Try it now. 
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: dev-help@struts.apache.org
> > >
> > >
> > >
> > >
> > >   
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> > 
> > 
> 
> 
> 
>      
> ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: ActionValidatorManagerFactory

Posted by Jay Bose <di...@yahoo.com>.
Jeromy, Thanks. 

I asked this in there, and received no response.
I will look at the use of @Inject.

--- Jeromy Evans <je...@blueskyminds.com.au> wrote:

> Hi Jay,
> 
> This question about the use of Struts 2 should be asked in the 
> struts-users forum.
> 
> The quick answer is that XWork provides a DI mechanism.  The 
> ValidatorFactory can be injected into a property or constructor using 
> the @Inject annotation in objects created by the framework.  See the 
> beans in struts-default.xml and the usages of @Inject, 
> Container.getInstance and Container.inject for more information.
> 
> Jay Bose wrote:
> > While I used WebWork-2, and the XWork associated with it, I was able to
> programmatically
> > retrieve action validation using the ActionValidatorManagerFactory.
> >
> > Now, it seems this class was removed.
> >
> > Any suggestions on how to programmatically get a ValidatorFactory instance?
> >
> >
> >      
> ____________________________________________________________________________________
> > Be a better friend, newshound, and 
> > know-it-all with Yahoo! Mobile.  Try it now. 
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> > For additional commands, e-mail: dev-help@struts.apache.org
> >
> >
> >
> >
> >   
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
> 
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Re: ActionValidatorManagerFactory

Posted by Jeromy Evans <je...@blueskyminds.com.au>.
Hi Jay,

This question about the use of Struts 2 should be asked in the 
struts-users forum.

The quick answer is that XWork provides a DI mechanism.  The 
ValidatorFactory can be injected into a property or constructor using 
the @Inject annotation in objects created by the framework.  See the 
beans in struts-default.xml and the usages of @Inject, 
Container.getInstance and Container.inject for more information.

Jay Bose wrote:
> While I used WebWork-2, and the XWork associated with it, I was able to programmatically
> retrieve action validation using the ActionValidatorManagerFactory.
>
> Now, it seems this class was removed.
>
> Any suggestions on how to programmatically get a ValidatorFactory instance?
>
>
>       ____________________________________________________________________________________
> Be a better friend, newshound, and 
> know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
> For additional commands, e-mail: dev-help@struts.apache.org
>
>
>
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org