I would like to know if it is possible to apply a validation on an attribute according to the controller\'s functions. As you can see, the inner class has two attributes. I