Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
530
<ig:inputDecimal> not taking into account specs for maximumFraction etc.
posted

Hi 

I have following tag in my code when I submit the page, if there is another validation error on some text field or text area the page comes back with error message. if the integers or fraction digits in the fields were more than specified in the tag the intial digit that were in access in integer and last in access digits in fraction value are truncated when page redisplays. But if there is no other error the validation doens't fail and the value which is bigger than the data fields gets to the persistance layer throwing an error from there.

 Please review the tag and let me know what I am doing wrong.

<
ig:inputDecimal id="myInput" styleClass="inputDecimal"

readOnly="false" disabled="false"

value="#{myBean.myQty}" required="true"

maximumFractionDigits="4" maximumIntegerDigits="11"

minimumFractionDigits="0"

tooltip="Maximum 11 integers and 4 fraction digits.">

<h:message id="myInputMsg" styleClass="errorMessage"

for="myInput"></h:message>

</ig:inputDecimal>

 

Thanks