http://docs.oracle.com/javase/1.5.0/docs/api/java/util/Formatter.html#syntax
On Thursday, 8 March 2012, Rural Hunter wrote:
> Ah, thanks. Now I understand the message in tapestry 5.2.
>
> 于 2012/3/8 21:08, Taha Hafeez Siddiqi 写道:
>
> You can change the ordering by using %2$s for second argument a
Ah, thanks. Now I understand the message in tapestry 5.2.
于 2012/3/8 21:08, Taha Hafeez Siddiqi 写道:
You can change the ordering by using %2$s for second argument and %1$s for second
argument. So something like "%2$s and %1$s"
Please do file a JIRA.
regards
Taha
On Mar 8, 2012, at 6:33 PM, Ru
You can change the ordering by using %2$s for second argument and %1$s for
second argument. So something like "%2$s and %1$s"
Please do file a JIRA.
regards
Taha
On Mar 8, 2012, at 6:33 PM, Rural Hunter wrote:
> Yes, I overriden the message with the default English one and it works.
> But...t
Yes, I overriden the message with the default English one and it works.
But...to translate the message into Chinese in a better way, the order
of the 2 parameters has to be reversed. Is there anyway to handle this
situation?
于 2012/3/8 18:39, Lance Java 写道:
Try overriding the error message us
Looks like you've found a bug... please file a jira for it
As a workaround, override the message using the link I sent previously with
a valid error message.
Cheers,
Lance.
On Thursday, 8 March 2012, Rural Hunter wrote:
> update:
> I found the valication messages. This is from
ValidationMessage
update:
I found the valication messages. This is from ValidationMessages.properties:
maximum-string-length=You may provide at most %d characters for %s.
This is from ValidationMessages_zh_CN.properties:
maximum-string-length=\u60a8\u6700\u591a\u80fd\u4e3a %s
\u63d0\u4f9b\u81f3\u5c11 %d \u5b57\u7
I didn't set any language in this test app. So tapestry might be using
my locale(Chinese). Where can I find the default property setting for
Chinese?
于 2012/3/8 18:14, Lance Java 写道:
What language are your error messages displaying in?
Perhaps there is a bad format in one of the language prop
Try overriding the error message using these instructions:
http://tapestry.apache.org/forms-and-validation.html#FormsandValidation-CustomizingValidationMessages
Set the error message to something like "no more than %d chars allowed in
%s"
On Thursday, 8 March 2012, Lance Java wrote:
> What lang
What language are your error messages displaying in?
Perhaps there is a bad format in one of the language property files.
FYI, the validator is looking for a property named "maximum-string-length"
On Thursday, 8 March 2012, Lance Java wrote:
> Have you overridden the validation error message?
>
No, I didn't set any validation message. Just the tml and java files for
the page.
于 2012/3/8 17:41, Lance Java 写道:
Have you overridden the validation error message?
Tapestry is having troubles showing an error message and is trying to push
a string where an integer should go.
Somewhere in th
Have you overridden the validation error message?
Tapestry is having troubles showing an error message and is trying to push
a string where an integer should go.
Somewhere in the validation error message, there is a %d where it should be
a %s.
On Thursday, 8 March 2012, Rural Hunter wrote:
> I
11 matches
Mail list logo