Package org.apache.myfaces.extensions.validator.baseval.annotation

Examples of org.apache.myfaces.extensions.validator.baseval.annotation.DoubleRange.minimum()


    protected Map<String, Object> transformMetaData(MetaDataEntry metaDataEntry)
    {
        Map<String, Object> results = new HashMap<String, Object>();
        DoubleRange annotation = metaDataEntry.getValue(DoubleRange.class);

        double minimum = annotation.minimum();

        if(minimum != Double.MIN_VALUE)
        {
            results.put(CommonMetaDataKeys.RANGE_MIN, minimum);
        }
View Full Code Here


        DoubleRange annotation = metaDataEntry.getValue(DoubleRange.class);
        DoubleRangeValidator doubleRangeValidator = (DoubleRangeValidator)facesContext.getApplication()
                                                        .createValidator("javax.faces.DoubleRange");

        if(annotation.minimum() != Double.MIN_VALUE)
        {
            doubleRangeValidator.setMinimum(annotation.minimum());
        }

        if(annotation.maximum() != Double.MAX_VALUE)
View Full Code Here

        DoubleRangeValidator doubleRangeValidator = (DoubleRangeValidator)facesContext.getApplication()
                                                        .createValidator("javax.faces.DoubleRange");

        if(annotation.minimum() != Double.MIN_VALUE)
        {
            doubleRangeValidator.setMinimum(annotation.minimum());
        }

        if(annotation.maximum() != Double.MAX_VALUE)
        {
            doubleRangeValidator.setMaximum(annotation.maximum());
View Full Code Here

    protected Map<String, Object> transformMetaData(MetaDataEntry metaDataEntry)
    {
        Map<String, Object> results = new HashMap<String, Object>();
        DoubleRange annotation = metaDataEntry.getValue(DoubleRange.class);

        double minimum = annotation.minimum();

        if(minimum != Double.MIN_VALUE)
        {
            results.put(CommonMetaDataKeys.RANGE_MIN, minimum);
        }
View Full Code Here

        DoubleRange annotation = metaDataEntry.getValue(DoubleRange.class);
        DoubleRangeValidator doubleRangeValidator = (DoubleRangeValidator)facesContext.getApplication()
                                                        .createValidator("javax.faces.DoubleRange");

        if(annotation.minimum() != Double.MIN_VALUE)
        {
            doubleRangeValidator.setMinimum(annotation.minimum());
        }

        if(annotation.maximum() != Double.MAX_VALUE)
View Full Code Here

        DoubleRangeValidator doubleRangeValidator = (DoubleRangeValidator)facesContext.getApplication()
                                                        .createValidator("javax.faces.DoubleRange");

        if(annotation.minimum() != Double.MIN_VALUE)
        {
            doubleRangeValidator.setMinimum(annotation.minimum());
        }

        if(annotation.maximum() != Double.MAX_VALUE)
        {
            doubleRangeValidator.setMaximum(annotation.maximum());
View Full Code Here

    public Map<String, Object> convertMetaData(MetaDataEntry metaDataEntry)
    {
        Map<String, Object> results = new HashMap<String, Object>();
        DoubleRange annotation = metaDataEntry.getValue(DoubleRange.class);

        double minimum = annotation.minimum();

        results.put(CommonMetaDataKeys.RANGE_MIN, minimum);
        results.put(CommonMetaDataKeys.RANGE_MAX, annotation.maximum());

        if(minimum > 0)
View Full Code Here

        DoubleRange annotation = metaDataEntry.getValue(DoubleRange.class);
        DoubleRangeValidator doubleRangeValidator = (DoubleRangeValidator)facesContext.getApplication()
                                                        .createValidator("javax.faces.DoubleRange");

        doubleRangeValidator.setMinimum(annotation.minimum());
        doubleRangeValidator.setMaximum(annotation.maximum());

        doubleRangeValidator.validate(facesContext, uiComponent, convertedObject);
    }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.