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

     Assign To: Carlin Rogers  (was: Alejandro Ramirez)

Carlin,
I used the pageflow that you attached (in the form of a patch) and entered the 
following values for the form:
Item 1: 1
Item 2: 12345
Item 3: 1234
Item 4: 1234567890

Expected:  All validation for the form properties should fail and correct 
messages should be displayed.
Actual:  Validation failed, however, the error and errors tags displayed the 
following "tag error messages:

Error Number    Tag Type        Error
1       Error   Message Could not find a message for message key "Maximum 
length validation: item two cannot be more than four chars." in the default 
message bundle for the current page flow.
2       Error   Message Could not find a message for message key "Maximum 
length validation: item four cannot be more than eight chars." in the default 
message bundle for the current page flow.
3       Errors  Message Could not find a message for message key "Maximum 
length validation: item four cannot be more than eight chars." in the default 
message bundle for the current page flow.
4       Errors  Message Could not find a message for message key "Maximum 
length validation: item two cannot be more than four chars." in the default 
message bundle for the current page flow.

> 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: V1
>  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