Basically, validatorKey build from clazz AND context.
final String validatorKey = buildValidatorKey(clazz, context);
I enclose a patch, with changes relative to xwork-core-2.1.6.
In order to validate dynamic form input fields (based on freemarker's
ability to render input fields from
2011/12/1 Josep García jgar...@isigma.es
Basically, validatorKey build from clazz AND context.
final String validatorKey = buildValidatorKey(clazz, context);
I enclose a patch, with changes relative to xwork-core-2.1.6.
In order to validate dynamic form input fields (based on
JIRA created:
https://issues.apache.org/jira/browse/WW-3715
2011/12/1 Łukasz Lenart lukasz.len...@googlemail.com
2011/12/1 Josep García jgar...@isigma.es
Basically, validatorKey build from clazz AND context.
final String validatorKey = buildValidatorKey(clazz, context);
I
Regarding:
2011/12/1 Josep García jgar...@isigma.es
In order to validate dynamic form input fields (based on freemarker's
ability to render input fields from xml tree), I've also had to code my own
field validator, because my action does not have getter/setter for the
dynamic fields.
In
If I pass in a dynamic context name, like in
validatorManager.validate(this, my-validation), the
AnnotationActionValidator calls its method getValidators:
public synchronized ListValidator getValidators(Class clazz, String
context, String method) {
final String validatorKey =
2011/11/30 Josep García jgar...@isigma.es:
If I pass in a dynamic context name, like in validatorManager.validate(this,
my-validation), the AnnotationActionValidator calls its method
getValidators:
public synchronized ListValidator getValidators(Class clazz, String
context, String
2011/11/30 Josep García jgar...@isigma.es
This way, it works, but the downside: 149 line source file to work around
the problem.
Could you prepare a patch and label it with 3.x ? Maybe we'll be able to
refactor the manager with your changes
Kind regards
--
Łukasz
+ 48 606 323 122
Thanks for the tip, Łukasz.
I have tried this option, not without a few workarounds: I had to add a
param to struts.xml so validation files are loaded during runtime:
constant name=struts.configuration.xml.reload value=true/
I have arrived to a leve in which I can call, from my Action:
2011/11/28 Josep García jgar...@isigma.es:
I have tried this option, not without a few workarounds: I had to add a
param to struts.xml so validation files are loaded during runtime:
constant name=struts.configuration.xml.reload value=true/
Hmmm that's bad, each time the configs will be
You can try to obtain ActionValidatorManager instance (@Inject in to
an action) and try to use one of its methods.
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/
2011/11/16 Josep García jgar...@isigma.es:
Is there any
Is there any documentation on how to call xwork validation programatically?
The context: I have a dynamic form, which is a freemarker template, which
can have any fields that are then saved as xml in my Struts action.
I would like to have the possibility to call validation with a specific
11 matches
Mail list logo