Galera estou com o seguinte erro
java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Integer
Código abaixo
<h:inputText value="#{inputValue}" id="#{idInput}"
immediate="#{inputImmediate}" size="#{inputSize}"
>
<c:if test="${!empty inputMaxLength}">
<f:attribute name="maxlength" value="#{inputMaxLength}" />
</c:if>
</h:inputText>
tentei assim e ocorre o mesmo erro
<h:inputText value="#{inputValue}" id="#{idInput}"
immediate="#{inputImmediate}" size="#{inputSize}"
>
<c:if test="${!empty inputMaxLength}">
<f:attribute name="maxlength" value="#{inputMaxLength}">
<f:converter converterId="javax.faces.convert.IntegerConverter"/>
</f:attribute>
</c:if>
</h:inputText>