Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-2912

Client-side validation displays property key instead of value.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.11.2, 2.0.14
    • 2.1.3
    • Other
    • None

    Description

      if validation xml uses message key:

      <field name="password">
      <field-validator type="requiredstring">
      <param name="trim">true</param>
      <message key="password.required"/>
      </field-validator>
      </field>

      from property file:

      password.required=password is required

      and client-side validation is enabled:

      <s:form action="doLogin" method="POST" theme="css_xhtml" validate="true">

      then property key "password.required" is displayed instead of it value "password is required" when validation fails.

      Attachments

        1. clientside.PNG
          1 kB
          Andrei Hryshanovich
        2. serverside.PNG
          2 kB
          Andrei Hryshanovich
        3. jssnippet.txt
          0.3 kB
          Andrei Hryshanovich

        Activity

          People

            Unassigned Unassigned
            nh36uzc Andrei Hryshanovich
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: