You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "alex xiao (JIRA)" <ji...@apache.org> on 2008/01/13 12:58:04 UTC

[jira] Updated: (WW-2417) freemarker template bug: template/xhtml/form-close-validate.ftl

     [ https://issues.apache.org/struts/browse/WW-2417?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

alex xiao updated WW-2417:
--------------------------

    Description: 
when I set the max value bigger than 999,
the client validation will not work.

my suggestion:

line 95                      ${validator.min?string}<#else>false</#if> ||
...
line 97                      ${validator.max?string }<#else>false</#if>) {
....

change to :

line 95                      ${validator.min?c}<#else>false</#if> ||
...
line 97                      ${validator.max?c}<#else>false</#if>) {
....




  was:
line 95                      ${validator.min?string}<#else>false</#if> ||
...
line 97                      ${validator.max?string }<#else>false</#if>) {
....

must change to :

line 95                      ${validator.min?c}<#else>false</#if> ||
...
line 97                      ${validator.max?c}<#else>false</#if>) {
....





> freemarker template bug: template/xhtml/form-close-validate.ftl
> ---------------------------------------------------------------
>
>                 Key: WW-2417
>                 URL: https://issues.apache.org/struts/browse/WW-2417
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Expression Language
>    Affects Versions: 2.0.11
>         Environment: windows XP
> tomcat6
> struts 2.0.11
>            Reporter: alex xiao
>
> when I set the max value bigger than 999,
> the client validation will not work.
> my suggestion:
> line 95                      ${validator.min?string}<#else>false</#if> ||
> ...
> line 97                      ${validator.max?string }<#else>false</#if>) {
> ....
> change to :
> line 95                      ${validator.min?c}<#else>false</#if> ||
> ...
> line 97                      ${validator.max?c}<#else>false</#if>) {
> ....

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.