Re: struts2 annotation

2011-12-01 Thread Li Ying
I did some search, found it here: com.opensymphony.xwork2.conversion.impl.XWorkConverter.addConverterMapping(MapString, Object, Class) And this converter is configured in [struts-default.xml]: http://struts.apache.org/2.x/docs/struts-defaultxml.html The following doc describe more details:

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
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

Re: using xwork validator programatically?

2011-12-01 Thread Łukasz Lenart
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

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
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

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
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

Re: struts2 annotation

2011-12-01 Thread Dave Newton
On Thu, Dec 1, 2011 at 2:37 AM, cwalet cwal110...@gmail.com wrote: i've search the source in both xwork and struts,but not anything did i found how struts2 resolve the @TypeConversion and @Conversion annotation. Type conversion annotations are listed here: