Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Custom message for : must be a signed decimal number consisting of zero or more digits

PolaFeb 19 2014 — edited Mar 21 2014

Hi,

We have an InputBox mapped to EO attribute of type BigDecimal. Whenever user enters any special character other than numeric gets below error message.

<af:inputText id="it2" value="#{bindings.Number.inputValue}"

autoSubmit="true" columns="10" immediate="true"

binding="#{pageFlowScope.ServicesBean.numberInputText}">

</af:inputText>

Error

Component r2:0:it2: '/' must be a signed decimal number consisting of zero or more digits, that may be followed by a decimal point and fraction.

Tried adding custom error message in resource bundle as shown below, but no use.

javax.faces.converter.BigDecimalConverter.DECIMAL=Summary - BigDecimal conversion error
javax.faces.converter.BigDecimalConverter.DECIMAL_detail=Detail - BigDecimal conversion error

Is there any way of giving custom message?

JDev Studio Edition Version : 11.1.1.6.0

Thanks,

Bhaskar Pola

This post has been answered by Pola on Mar 21 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 18 2014
Added on Feb 19 2014
2 comments
1,491 views