[ http://issues.apache.org/jira/browse/BEEHIVE-307?page=all ]

Carlin Rogers updated BEEHIVE-307:
----------------------------------

    Fix Version: TBD
                     (was: V1)
    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. 

  was:
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. 

    Environment: 

We still need to make a change on the NetUI side. The struts validator 
Resources 
class formats the validation error using the alternate bundle and then creates 
a 
struts ActionMessage for the error. However, this ActionMessage is a little 
different
from the others that our ErrorBaseTag handle.

The error ActionMessage objects usually have the key being the actual key or the
key is the message but identified by a leading "NETUI-EXPRESSION:" to indicate
that we don't need to get the messsage from the default bundle.

In this case we have a message and not a real key but it does not start with the
leading "NETUI-EXPRESSION:" so we treat it as a key and actually try to look up
the message from the default bundle.

The fix will require some changes, probably in the NetUI ErrorBaseTag. I will go
ahead and make a patch. At this stage in preparing to release for V1, I think we
should move this back to TBD, unless anyone objects.

Thoughts?

> Struts validator support for the msg and args' bundle attribute is not working
> ------------------------------------------------------------------------------
>
>          Key: BEEHIVE-307
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-307
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Carlin Rogers
>     Assignee: Carlin Rogers
>     Priority: Minor
>      Fix For: TBD
>  Attachments: bundles-test-patch.txt
>
> 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. 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to