Beehive
  1. Beehive
  2. BEEHIVE-307

Struts validator support for the msg and args' bundle attribute is not working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: V1Beta, v1m1, 1.0
    • Fix Version/s: 1.0.1
    • Component/s: NetUI
    • Labels:
      None

      Description

      Struts does not correctly get validator msg and args from alternate resource bundles. Struts ignores a bundle attribute defined in the validation XML msg or args element tags used in the commons-validator framework.

      There's already a bug in struts on this. Here's a summary,

      Bug 21760 already includes a patch to go into Struts to resolve this issue. The patch is dependent on some changes in Commons Validator that are part of Validator 1.1.4. Struts is waiting for a "GA" quality release of Validator 1.1.4, then will move the Struts dependency to 1.1.4 and apply the fix.

      and the details...
      http://issues.apache.org/bugzilla/show_bug.cgi?id=21760

      Unfortunately this implies that the NetUI annotations for validator msg and args alternate resource bundles will not work until the fix in struts is integrated into NetUI. User will need to keep msg and args in the default resource bundle.

      1. j307-patch.txt
        22 kB
        Carlin Rogers
      2. bundles-test-patch.txt
        8 kB
        Carlin Rogers

        Activity

        Carlin Rogers created issue -
        Carlin Rogers made changes -
        Field Original Value New Value
        Attachment bundles-test-patch.txt [ 18992 ]
        Steve Tocco made changes -
        Fix Version/s V1 [ 10780 ]
        Carlin Rogers made changes -
        Fix Version/s V1 [ 10780 ]
        Fix Version/s TBD [ 10950 ]
        Carlin Rogers made changes -
        Assignee Carlin Rogers [ crogers ] Rich Feit [ rich ]
        Rich Feit made changes -
        Assignee Rich Feit [ rich ] Alejandro Ramirez [ alramire ]
        Fix Version/s TBD [ 10950 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s V1 [ 12310123 ]
        Resolution Fixed [ 1 ]
        Alejandro Ramirez made changes -
        Resolution Fixed [ 1 ]
        Assignee Alejandro Ramirez [ alramire ] Carlin Rogers [ crogers ]
        Status Resolved [ 5 ] Reopened [ 4 ]
        Carlin Rogers made changes -
        Fix Version/s V1 [ 12310123 ]
        Environment
        Fix Version/s TBD [ 10950 ]
        Description Struts does not correctly get validator msg and args from alternate resource bundles. Struts ignores a bundle attribute defined in the validation XML msg or args element tags used in the commons-validator framework.

        There's already a bug in struts on this. Here's a summary,

        Bug 21760 already includes a patch to go into Struts to resolve this issue. The patch is dependent on some changes in Commons Validator that are part of Validator 1.1.4. Struts is waiting for a "GA" quality release of Validator 1.1.4, then will move the Struts dependency to 1.1.4 and apply the fix.

        and the details...
        http://issues.apache.org/bugzilla/show_bug.cgi?id=21760


        Unfortunately this implies that the NetUI annotations for validator msg and args alternate resource bundles will not work until the fix in struts is integrated into NetUI. User will need to keep msg and args in the default resource bundle.
        Struts does not correctly get validator msg and args from alternate resource bundles. Struts ignores a bundle attribute defined in the validation XML msg or args element tags used in the commons-validator framework.

        There's already a bug in struts on this. Here's a summary,

        Bug 21760 already includes a patch to go into Struts to resolve this issue. The patch is dependent on some changes in Commons Validator that are part of Validator 1.1.4. Struts is waiting for a "GA" quality release of Validator 1.1.4, then will move the Struts dependency to 1.1.4 and apply the fix.

        and the details...
        http://issues.apache.org/bugzilla/show_bug.cgi?id=21760


        Unfortunately this implies that the NetUI annotations for validator msg and args alternate resource bundles will not work until the fix in struts is integrated into NetUI. User will need to keep msg and args in the default resource bundle.
        Carlin Rogers made changes -
        Attachment j307-patch.txt [ 12312117 ]
        Carlin Rogers made changes -
        Assignee Carlin Rogers [ crogers ] Rich Feit [ rich ]
        Rich Feit made changes -
        Resolution Fixed [ 1 ]
        Assignee Rich Feit [ rich ] Alejandro Ramirez [ alramire ]
        Status Reopened [ 4 ] Resolved [ 5 ]
        Carlin Rogers made changes -
        Fix Version/s TBD [ 10950 ]
        Affects Version/s v1m1 [ 12310122 ]
        Fix Version/s 1.1 [ 12310333 ]
        Affects Version/s V1 [ 12310123 ]
        Julie Zhuo made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Assignee Alejandro Ramirez [ alramire ] Julie Zhuo [ jzhuo ]

          People

          • Assignee:
            Julie Zhuo
            Reporter:
            Carlin Rogers
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development