[ https://issues.apache.org/jira/browse/WW-2975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Lukasz Lenart updated WW-2975: ------------------------------ Fix Version/s: 7.1.0 (was: 7.0.0) > client side validation and components with forms > ------------------------------------------------ > > Key: WW-2975 > URL: https://issues.apache.org/jira/browse/WW-2975 > Project: Struts 2 > Issue Type: Improvement > Components: Other > Affects Versions: 2.1.6 > Reporter: Miguel Diaz > Priority: Major > Fix For: 7.1.0 > > > When form-close-validate.ftl generates the JavaScript validation code, it > only takes into account the fields that are present in the <s:form> when it's > processed (via parameters.tagNames). > There are two problems with this: > - if for some reason a field is missing, the validation will fail but no > message will be displayed > - if one creates a <s:component> that builds a form and gets some fields > passed to it in a parameter (i.e. receives the HTML generated by some fields) > then the form doesn't know about the fields so they aren't included in the > "tagNames" parameter, thus not taken into account for the JavaScript > validation -- This message was sent by Atlassian Jira (v8.20.10#820010)