Thanks Li Ying,
I got some information from
http://today.java.net/pub/a/today/2006/01/19/webwork-validation.html?page=3#custom-validators
but I do not want to reinvent the wheel (basically avoid coding my
validation logic in java code). If I
could have my -validation.xml structured as
*
*
If your validate rules are fixed, only some parameters (integer/date
format or something else) relies on the country setting, I suggest you
implement it by retrieve the params via OGNL expression.
The parameter for the Validators can be OGNL expression.
These docs may help:
http://struts.apache.or
Hi all,
I am currently making use of the validator and able to work-out a example
as discussed at http://struts.apache.org/2.x/docs/validation.html.
My application has a concept of user's country which is stored in session.
Now depending on the value of this attribute stored in session, I need to
Sorry, the format of my email broken again.
Send it again.
The error message is
"optGroupInternalListUiBean.parameters is undefined"
I had a quick look at the source of Struts2 and tag template,
In [template/simple/optgroup.ftl]:
line 23: <#if parameters.optGroupInternalListUiBeanList??>
line
The error message isĀ "optGroupInternalListUiBean.parameters is undefined"
I had a quick look at the source of Struts2 and tag template,
In [template/simple/optgroup.ftl]:
line 23: <#if parameters.optGroupInternalListUiBeanList??>line 24:
<#assign optGroupInternalListUiBeans=parameters.optGroupInter
If you want a definitive solution, i suggest you create a new method like:
getTextEx(.)
in your action,
in this method, you can check the parameters, if they are null, change
them to empty string, and then invoke the original getText method.
you can put this method in the base class of you
6 matches
Mail list logo