Uploaded image for project: 'Stripes'
  1. STS-869

@Validate( field = "copyTo" , label="defaultLabel", labelKey="bundleKey" )

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: Release 1.5.6
    • Fix versions: Release 1.6
    • Components: Validation
    • Labels:
      None
    • Environment:
      Any
    • Sprint:

      Description

      It would have been great to be able to specify a bundle key directly into the validate annotation.

      Actually according to the documentation label is already used as a default label, if the following bundle keys are not found:
      Bundle lookup of: beanClassFQN.fieldName
      Bundle lookup of: actionPath.fieldName
      Bundle lookup of: fieldName
      defaultLabel

      It would be nice to be able to specify a bundlekey so that the order would be:
      Bundle lookup of: labelKey
      Bundle lookup of: beanClassFQN.fieldName
      Bundle lookup of: actionPath.fieldName
      Bundle lookup of: fieldName
      defaultLabel

      Because in case of an action path or actionbean name refactoring, we could break the localization of fields.
      Using the fieldName is often not an option since a fieldName can be common to many forms but doesn't always represent the same concept.

      So it would be great, and easy, to add a labelKey item to avoid changing all of our bundles in case of a refactoring.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              slorber SĂ©bastienL
            • Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: