Re: struts2 annotation

2011-12-01 Thread Dave Newton
On Thu, Dec 1, 2011 at 2:37 AM, cwalet 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: http://struts.apache.org/2.x/docs/annotations.html#Ann

Re: using xwork validator programatically?

2011-12-01 Thread Josep García
Regarding: 2011/12/1 Josep García > > 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 my derived

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 > 2011/12/1 Josep García > > > Basically, validatorKey build from clazz AND context. > > > > final String validatorKey = buildValidatorKey(clazz, context); > > > > I enclose a patch, with changes rela

Re: using xwork validator programatically?

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

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 x

Re: struts2 annotation

2011-12-01 Thread Li Ying
I did some search, found it here: com.opensymphony.xwork2.conversion.impl.XWorkConverter.addConverterMapping(Map, 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: http://struts.apache