struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Racon (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (WW-4057) Client Validation——XWork-core Validators Change,BUT Struts2-core /template/xhtml NOT!!!
Date Thu, 09 May 2013 23:28:14 GMT

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

Lukasz Racon updated WW-4057:
-----------------------------

    Attachment: form-close-validate.ftl.patch

Attached is a patch that fixes mentioned issue.

RegexFieldValidator and EmailValidator use getRegex(). form-close-validate still depends pm
getExpression().

Looks like it got broken around the work done for WW-3885.

For those who don't run snapshots - as a workaround you can put a fixed form-close-validate.ftl
in your project's resources folder (template\xhtml\form-close-validate.ftl).

                
> Client Validation——XWork-core Validators Change,BUT Struts2-core /template/xhtml
NOT!!!
> ---------------------------------------------------------------------------------------
>
>                 Key: WW-4057
>                 URL: https://issues.apache.org/jira/browse/WW-4057
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.12, 2.3.14
>         Environment: Struts2.3.12,Struts2.3.14 ,others not test
> jdk1.6
> tomcat6
>            Reporter: inthink
>              Labels: client, freemark, template, validation, validator, validators
>             Fix For: 2.3.15
>
>         Attachments: form-close-validate.ftl.patch
>
>
> In *XWork-core.jar* the validators "RegexFieldValidator",the field "expression" define
update  from *'expression'* to {color:red} *'regex'*{color}.
> But in the  *struts2-core.jar* xhtml template——*form-close-validate.ftl,use the old
field 'expression'*.So,when use client validation,it's will show freemark error!the client
validation can't work!
> other validators {color:red}  has SAME ERROR!{color} like *'EMAIL VAlIDATOR','URL VALIDATOR',and
so on!*

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message