Visitor validator crashes when <message> is blank
-------------------------------------------------

                 Key: WW-3109
                 URL: https://issues.apache.org/struts/browse/WW-3109
             Project: Struts 2
          Issue Type: Bug
          Components: XML Validators
    Affects Versions: 2.1.6
         Environment: Struts 2.1.6 on Websphere 6.1
            Reporter: Jon


Using a visitor validator crashes application if the <message> element is 
empty. e.g.

In BeanName-validation.xml this will crash.

        <field name="lifeAssured">
                <field-validator type="visitor">
                        <param name="appendPrefix">true</param>
                        <message></message>
                </field-validator>
        </field>

But this will work fine.

        <field name="lifeAssured">
                <field-validator type="visitor">
                        <param name="appendPrefix">true</param>
                        <message>Hi</message>
                </field-validator>
        </field>

Message shouldn't be mandatory - I'm happy for the messages defined in the 
nested beans validator to be displayed against the field without anything 
prepended.


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

Reply via email to