Skip to content

Commit

Permalink
[playframework#713] Docs: document multiple required validation limit…
Browse files Browse the repository at this point in the history
…ation
  • Loading branch information
Peter Hilton committed Aug 16, 2011
1 parent 4e37e65 commit 2d05bf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/manual/validation.textile
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ This changes the output to:
bc. name is required
age is required

p(note). *Limitation*: Play cannot determine the correct parameter name when more than required-field validation using the @validation.required(age)@ syntax fails. In this case, you must specify the field name: @validation.required("age", age)@.
p(note). *Limitation*: Play cannot determine the correct parameter name when more than one required-field validation using the @validation.required(age)@ syntax fails. In this case, you must specify the field name directly, i.e. @validation.required("age", age)@.

This error key defaults to the parameter name, and is itself used to look up a message. For example, the @name@ parameter in the @hello@ action method above could be localised with:

Expand Down

0 comments on commit 2d05bf8

Please sign in to comment.