[
https://issues.apache.org/jira/browse/TRINIDAD-1571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13020596#comment-13020596
]
Harald Kuhn commented on TRINIDAD-1571:
---------------------------------------
Hi Scott,
in our case the problem is on <tr:inputText>. The use case is to enter a month
(01..12). In this case 01,02,03,04,05,07 are OK. But 08,09 triggers the error
message. As 8 and 9 are not allowed as digits in octal numbers.
The reporter said "Trinidad component renders message as "Enter an integer"
besides the textbox on ui. " Therefore I believe the problem belongs to an
input component.
"The patch looks straight forward enough, but I'm wondering if there are
functional implications of forcing this to be base 10. "
This has to be checked for sure.
But as the method is named "_decimalParse()" it looks like it assumes decimal
numbers here.
Addtionally at one of the changed lines there was a call to
"TrNumberFormat.trimLeadingZeroes(numberString);" directly before the call to
parseInt() or parseFloat().
Regards
Harald
> If outputText is being bound with a field having Integer type. Then textbox
> doesn't accepts values like 08,008,009,09,010 etc.
> ------------------------------------------------------------------------------------------------------------------------------
>
> Key: TRINIDAD-1571
> URL: https://issues.apache.org/jira/browse/TRINIDAD-1571
> Project: MyFaces Trinidad
> Issue Type: Bug
> Components: Components
> Affects Versions: 1.2.7-plugins, 1.2.7-core
> Environment: Application Server: Jboss, on Cent OS and Client side:
> operating system - windows XP professional ,
> Reporter: gaurav raval
> Attachments: ParseIntOctal.patch
>
> Original Estimate: 5h
> Remaining Estimate: 5h
>
> 'outputText' component of trinidad library is being used for displaying text
> box on the GUI for a web application.
> If outputText is being bound with a field having Integer type. Then textbox
> doesn't accepts values like 08,008,009,09,010 etc.
> It accepts preceding zero till 7 (01,02,03,04,05,06,07) but it doesn't accept
> values equal to 8 or greater than 8 with preceding zero even though those
> values are integer.
> Trinidad component renders message as "Enter an integer" besides the textbox
> on ui.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira