| java.lang.Object org.andromda.cartridges.jsf.validator.ValidatorMessages
ValidatorMessages | public class ValidatorMessages (Code) | | Retrieves and formats the validation messages.
author: Chad Brandon |
Method Summary | |
public static String[] | getArgs(String action, Field field) Gets the message arguments based on the given
validator action and cield . | public static String | getMessage(ValidatorAction action, String[] args, FacesContext context) Gets the message based on the
message and the field 's arg objects. | public static String | getMessage(ValidatorAction action, Field field, FacesContext context) Gets the message given the action, field and faces context.
Parameters: action - the validator action instance. Parameters: field - the field. Parameters: context - the faces context. |
getArgs | public static String[] getArgs(String action, Field field)(Code) | | Gets the message arguments based on the given
validator action and cield .
Parameters: action - action name Parameters: field - the validator field |
getMessage | public static String getMessage(ValidatorAction action, String[] args, FacesContext context)(Code) | | Gets the message based on the
message and the field 's arg objects.
Parameters: action - Validator action Parameters: args - any message arguments to be substituted. Parameters: context - the faces context |
getMessage | public static String getMessage(ValidatorAction action, Field field, FacesContext context)(Code) | | Gets the message given the action, field and faces context.
Parameters: action - the validator action instance. Parameters: field - the field. Parameters: context - the faces context. the message |
|
|