public class SortInfoListValidator extends Object implements javax.faces.validator.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 |
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(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) throws javax.faces.validator.ValidatorException
validate
in interface javax.faces.validator.Validator
javax.faces.validator.ValidatorException
Copyright © 2014 Nuxeo SA. All rights reserved.