public Class<?> getTypeFromValueExpression(FacesContext context, InputNumber component) {
        ValueExpression valueExpression = component.getValueExpression("value");
        if (valueExpression == null) {
            return null;
        }

        try {
            return valueExpression.getType(context.getELContext());
        }
        catch (PropertyNotFoundException e) {
            return null;
        }
    }
If using @Negative annotation and this is an Integer default to 0 instead of -0.0001.
@param context faces context
@param isIntegral flag whether the (expected) value is integral
@param component the component
@return the maximum value of the component
primefaces/src/main/java/org/primefaces/component/inputnumber/InputNumberRenderer.java