Hi,
The method
record(String message, ValidationConstraint constraint)
of
org.apache.tapestry.valid.ValidationDelegate
will lookup any message automatically in the message property file.
However there does not seem to be a record-method that allows me to pass
in both the message-key and any substitution parameters, for example
// DOES NOT EXIST:
record(String message, String[] parameters, ValidationConstraint constraint)
When I try to trick Tapestry, by formatting the message myself, before
passing it in, like this:
record(getMessages().formatMessage("my-key",new String{"My-param"}, null)
..it will still try to lookup the complete formatted message in the
property file, and - obviously - won't find it and I end up with the
complete message text capitalized, between brackets ( like this: "[HELLO
THIS IS MY MESSAGE WITH MY PARAM: FOO]").
Does anybody out there know of any way to either:
- pass in message-substitution-paramaters into ValidationDelegate's
record() method
- disable ValidationDelegate's record() method from looking up messages
in the property file, so that I can pass in a pre-formatted message
Thanks for any input. I did look into the archives and didn't find an
answer yet. If I overlooked it, my humble apologies.
Thanks,
Martijn
--
*Cumquat Information Technology*
De Dreef 19
3706 BR Zeist
T +31 (0)30 - 6940490
F +31 (0)10 - 6940499
http://www.cumquat.nl <http://www.cumquat.nl/>
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
M +31 6 22 384 318
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]