Play Framework custom validation errors with multiple String parameters
Posted
by
Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2012-03-19T18:01:10Z
Indexed on
2012/03/19
18:03 UTC
Read the original article
Hit count: 289
I'm trying to set a custom validation error with multiple params in Play!, but it seems like my validation parameters are not rendered correctly.
I have defined in messages
:
validation.customerror=This is first param "%s", and this is the second "%s"
The in my code I execute:
validation.addError("","validation.customerror", "FIRST", "SECOND");
And I get:
This is first param "", and this is the second "FIRST"
Thoughts?
© Stack Overflow or respective owner