public class SortInfoListValidator extends Object implements Validator
SortInfo
elements, checking that there is no
conflicting sort information (several sorts on same criterion)Modifier and Type | Field and Description |
---|---|
static String |
CONFLICTING_CRITERIA_MESSAGE_ID
The message identifier of the
FacesMessage to be created if the value
to validate is a list of sort infos with conflicting criteria (several
sorts on the same criterion). |
static String |
EMPTY_CRITERION_MESSAGE_ID
The message identifier of the
FacesMessage to be created if the value
to validate contains a sort info with an empty sort criterion. |
static String |
INVALID_VALUE_MESSAGE_ID
The message identifier of the
FacesMessage to be created if the value
to validate is not a list of sort infos. |
static String |
VALIDATOR_ID |
NOT_IN_RANGE_MESSAGE_ID
Constructor and Description |
---|
SortInfoListValidator() |
public static final String VALIDATOR_ID
public static final String INVALID_VALUE_MESSAGE_ID
FacesMessage
to be created if the value
to validate is not a list of sort infos.public static final String CONFLICTING_CRITERIA_MESSAGE_ID
FacesMessage
to be created if the value
to validate is a list of sort infos with conflicting criteria (several
sorts on the same criterion).
The message format string for this message may optionally include the following placeholders:
{0}
replaced by the first found duplicate criterion.public static final String EMPTY_CRITERION_MESSAGE_ID
FacesMessage
to be created if the value
to validate contains a sort info with an empty sort criterion.public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
validate
in interface Validator
ValidatorException
Copyright © 2011 Nuxeo SA. All Rights Reserved.