[ 
https://issues.apache.org/jira/browse/WW-4964?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16719310#comment-16719310
 ] 

Lukasz Lenart commented on WW-4964:
-----------------------------------

I think [~yasser.zamani] is right, a solution here is to use {{<s:head/>}} that 
will import {{utils.js}} into the scope.

[~aleksandr-m] I'm not sure if this is a good idea, {{validation.js}} is only 
required when you use a client side validation within a form, in other cases 
it's useless.

I will remove the duplicated {{utils.js}} from {{xhtml/form-validate.ftl}}

> Missing javascript in form-validate.ftl
> ---------------------------------------
>
>                 Key: WW-4964
>                 URL: https://issues.apache.org/jira/browse/WW-4964
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Tags
>    Affects Versions: 2.5.17
>            Reporter: nikos dimitrakas
>            Priority: Major
>             Fix For: 2.6
>
>
> There are two versions of form-validate.ftl, one in xhtml theme and one in 
> css_xhtml theme. The one in css_xhtml is missing the script tag for utils.js 
> (and also some special character cleaning). This causes the following error 
> on the client: 
> Uncaught ReferenceError: StrutsUtils is not defined
>  at validation.js:161
> (anonymous) @ validation.js:161



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to