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

        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.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development