Play Framework custom validation errors with multiple String parameters
- by Mark
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?