You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by bu...@apache.org on 2002/07/16 16:37:02 UTC

DO NOT REPLY [Bug 10868] New: - Validator does not support non-default resource bundles

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=10868

Validator  does not support non-default resource bundles

           Summary: Validator  does not support non-default resource bundles
           Product: Struts
           Version: Nightly Build
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Validator Framework
        AssignedTo: struts-dev@jakarta.apache.org
        ReportedBy: maslovsky@mail.ru


For example:

struts-config.xml:
<message-resources key="myBunde" parameter="MyResources"/>

validation.xml:
<form-validation>
    <formset>
        <form name="logonForm">
            <field property="name"
                depends="required">
         	    <arg0 key="user.userName"/>
            </field>    
        </form>
    </formset>
</form-validation>

The key "user.userName" from "myBunde" will not be found. And there is no way in
validator file to specify which resource bundles to use. Language attributes of
<formset> tag does not help because there may be multible bundes for each
language. Validator needs to explicitely support struts resource bundles.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>