commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32401] New: - The bundle-Attribute of the arg-Tag seems to have a Bug
Date Fri, 26 Nov 2004 08:56:03 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32401>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32401

           Summary: The bundle-Attribute of the arg-Tag seems to have a Bug
           Product: Commons
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Validator
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: jens.selders@mgi.de


Hello,

i have a Problem to switch the Bundle in the arg-Tag of the validation.xml 
File always the default Resourcebundle is used to match the key-Attribute.
The bundle-Attribute of the msg-Tag has no Problems

Following Code.

struts-config.xml
-----------------
.....
<message-resources parameter="resources.master"/>
<message-resources key="phonebook" parameter="resources.phonebook"/>
.....


resources/phonebook.properties
------------------------------
....
errors.required={0} is required.
phonebook.jsp.searchfor='Search for' entry
....


validation.xml
-------------
.....
<form-validation>
  <global/>
    <formset>
      <form name="phonebookForm">
	<field property="telQueryValue" depends="required">
	  <msg name="required" key="errors.required" bundle="phonebook"/>
	  <arg position="0" name="required" key="phonebook.jsp.searchfor"  
               bundle="phonebook"/>
	</field>
     </form>
   </formset>
</form-validation>
.....

Following happens if the validator finds an error.
the "errors.required" key is translated, but the "phonebook.jsp.searchfor" key 
is not translated, only if I put the key value-pair in the master.properties 
File. Did anybody have an idea ? I use Validator 1.1.3, but also the 
nightlybuild 1.2.0 seems to did not work. I found nothing in the web 
describing this Problem. So could anyone help.

Thanks Jens

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message