I used Apache Trinidad Component in rendering my mobile user interface. Now I have an inputtext code like this but if it for example the space is constrained (browser rendering) and a carriage return is added in the inputtext
<tr:inputText id="it3" simple="true" required="true"
maximumLength="30">
<tr:convertNumber locale="#{myBean.locale}"
minFractionDigits="6"
maxFractionDigits="6" />
</tr:inputText>
..I am getting this error
The value must be a number
Based on my investigation, it is the carriage return in the inputtext that causes the conversion error
If for example in my inputtext..I have this data (with carriage return..)
123456789
01
I am getting the error above..
If my data has no carriage return such as this one
12345678901
then no converter error is received. Any thoughts?
[Update] ..or better yet. Is there a way for a JSF Input text not to add carriage return or make it single line only?