Skip to content
Advertisement

Tag: playframework-2.2

Play framework, Different constraints for different requests

How to implement different constraints for different requests? For example, there is User class: When I create a new user, all constraints are required. But when I update user information, I don’t need the password constraint. Should I create separate classes for createUser() and updateUser() actions? Is there any way I can use just one class? Answer As Play’s validation

Advertisement