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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

BigDecimal type with DefaultBigDecimalFormatter not working in table QBE

Robert ŠajinaOct 16 2017 — edited Oct 20 2017

Hi,

I have a problem with table filter with search fields that are BigDecimal and are using DefaultBigDecimalFormatter.

The problem occurs when i set locale to non-english, that is to Croatian. In my language decimal separator is comma(",").

I have printed the bind values in bindParametersForCollection method in ViewObject and discovered that for input value 7,44  in QBE, i am getting value 744 as the final value.

After searching a little bit more i found out that it is because framework is creating a new VariableImpl object that gets the value form associated viewCriteriaItem.

Value that viewCriteriaItem return is already formatted and the value is for example 7.44.

Now the framework try's to format this value again with the same locale (Croatian) and than the number formatter returns the number 744.

And that is the final value that gets into the query.

Is this a known bug?
Any solutions to this?

JDeveloper: 12.2.1.2.0.0

Robert

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Nov 17 2017
Added on Oct 16 2017
4 comments
318 views