Validation Annotation Single Method Problem (Again) 2007-01-10 - By Andr? Faria
Back If someone know or have an example of how to use @(protected) annotation to be applied only for a single method, not for all methods, of a class, give-me help or tip, please!
@(protected) public AccountAction {
private Account account; //setter & getter
@(protected)(requiredFields = {@(protected)(type = ValidatorType .SIMPLE, fieldName = "account.number", message = "You must enter a number for accont.")}) public String save(){..};
public String execute(){..};
public String list(){..};
public String remove(){..};
public String search(){..};
}
I hope that the validation is applied only before the method save, but all the methods has been intercepted.... People, forgives me for insist, but couldn't find a solution yet.
Thank's Andr? Faria
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: user-unsubscribe@(protected) For additional commands, e-mail: user-help@(protected)
|
|