Holger Moosbauer wrote:
Hello "friends",
I have a serious problem here, maybe someone can help me.
Thank you first :-) .. OK, the problem ... how can I change the
application resource bundle for xml validation?
I can read in validatior-rules.xml ...
[...]
How does the validator know this file when I don't pass an
explicit bundle value?
It doesn't; if you don't pass an explicit bundle name, the default
resource bundle will be looked up.
It's annoying here, because I have to overwrite the default key for each
field with something like that ...
<msg name="intRange" bundle="default"
key="validation.error.integer.range.field"/>
How can I avoid this?
Copy the message resources from the comment in validatior-rules.xml into
your default resource bundle (the one you defined with no key in
struts-config.xml), and edit as required.
L.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]