Class ValidateUnique

    • Field Detail


        public static final String COMPONENT_TYPE
        The component type, which is "org.omnifaces.component.validator.ValidateUnique".
        See Also:
        Constant Field Values
    • Constructor Detail

      • ValidateUnique

        public ValidateUnique()
    • Method Detail

      • validateValues

        public boolean validateValues​(FacesContext context,
                                      List<UIInput> inputs,
                                      List<Object> values)
        Validate if all values are unique.
        context - The faces context to work with.
        inputs - The input components whose values are to be validated.
        values - The values of the input components to be validated, in the same order as the components.
        true if validation is successful, otherwise false (and thus show the message).