|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
ActionValidatorManagerFactoryWhile 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@... For additional commands, e-mail: dev-help@... |
|
|
Re: ActionValidatorManagerFactoryHi 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@... > For additional commands, e-mail: dev-help@... > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@... |
|
|
Re: ActionValidatorManagerFactoryJeromy, Thanks.
I asked this in there, and received no response. I will look at the use of @Inject. --- Jeromy Evans <jeromy.evans@...> 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@... > > For additional commands, e-mail: dev-help@... > > > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@... > For additional commands, e-mail: dev-help@... > > ____________________________________________________________________________________ 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@... For additional commands, e-mail: dev-help@... |
|
|
Re: ActionValidatorManagerFactoryJeromy, 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 <digi9ten@...> wrote: > Jeromy, Thanks. > > I asked this in there, and received no response. > I will look at the use of @Inject. > > --- Jeromy Evans <jeromy.evans@...> 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@... > > > For additional commands, e-mail: dev-help@... > > > > > > > > > > > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: dev-unsubscribe@... > > For additional commands, e-mail: dev-help@... > > > > > > > > > ____________________________________________________________________________________ > 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@... > For additional commands, e-mail: dev-help@... > > ____________________________________________________________________________________ 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@... For additional commands, e-mail: dev-help@... |
| Free Forum Powered by Nabble | Forum Help |