[
https://issues.apache.org/struts/browse/WW-3235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Dave Newton closed WW-3235.
---------------------------
Resolution: Not A Problem
I think you mean "disregard" ;)
> Visitor validation.
> -------------------
>
> Key: WW-3235
> URL: https://issues.apache.org/struts/browse/WW-3235
> Project: Struts 2
> Issue Type: Bug
> Components: XML Validators
> Affects Versions: 2.0.11.1
> Environment: Struts 2.0.1.11 + FreeMarker + Spring + JPA/Hibernate +
> Tomcat V6.0 + Windows XP
> Reporter: Leonardo
> Priority: Minor
>
> Dear,
> I'm using visitor validation (for person entity model -
> person-validation.xml) in my application and in my action there is a
> personaction-validation.xml). It's so good, but the field, which not pass in
> validation rule, don't change css style. When I changed validation type,
> removing visitor validation from personaction-validation.xml the css style is
> changed. I suspect that the problem is in the controlheader-core.ftl.
> My controlheader-core.ftl is:
> <#assign hasFieldErrors = parameters.name?exists && fieldErrors?exists &&
> fieldErrors[parameters.name]?exists/>
> <!-- I OMIT SOME CODE -->
> <!-- THIS IS THE PART WHERE CSS CLASS IS CHANGED -->
> <#if parameters.label?exists>
> <label <#t/>
> <#if parameters.id?exists>
> for="${parameters.id?html}" <#t/>
> </#if>
> <#if hasFieldErrors> // THIS CONDITION IS FALSE WHEN I USE VISITOR
> VALIDATION
> class="errorMessage"<#t/>
> <#else>
> class="label"<#t/>
> </#if>
> ><#t/>
>
> Could anyone help me to resolve this? Is it a bug?
> Thanks in advanced.
> Leonardo
> From Brazil
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.