Commons Validator
  1. Commons Validator
  2. VALIDATOR-108

[validator] Enable variables <var> to come from Resource Bundles

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

      Description

      Something thats come up a couple of times on the Struts User List: it would be
      useful if variables could come from resource bundles. For example date patterns
      for the Date Validator.

      How about adding key and bundle attributes to the <var> element?

      Recent threads:

      http://article.gmane.org/gmane.comp.jakarta.struts.user/97277
      http://article.gmane.org/gmane.comp.jakarta.struts.user/97347

      Niall

        Activity

        Henri Yandell made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Henri Yandell made changes -
        Key COM-1763 VALIDATOR-108
        Project Commons [ 12310458 ] Commons Validator [ 12310494 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Affects Version/s unspecified [ 12311647 ]
        Component/s Validator [ 12311135 ]
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 32522 12341915
        Hide
        Niall Pemberton added a comment -

        I have added "resource" and "bundle" attributes to the 1.2.0 version of the
        DTD, along with corresponding properties in org.apache.commons.validator.Var
        and updated the digester rules to 'populate' these attributes.

        Its up to down-stream systems to use these attributes to retrieve resource
        values.

        http://svn.apache.org/viewcvs?rev=289131&view=rev

        Show
        Niall Pemberton added a comment - I have added "resource" and "bundle" attributes to the 1.2.0 version of the DTD, along with corresponding properties in org.apache.commons.validator.Var and updated the digester rules to 'populate' these attributes. Its up to down-stream systems to use these attributes to retrieve resource values. http://svn.apache.org/viewcvs?rev=289131&view=rev
        Hide
        David Graham added a comment -

        Sounds reasonable to me.

        Show
        David Graham added a comment - Sounds reasonable to me.
        Niall Pemberton created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Niall Pemberton
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development