[jira] [Created] (OFBIZ-5533) ModelForm.getOverrideListSize fails to convert to integer when value > 1000

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (OFBIZ-5533) ModelForm.getOverrideListSize fails to convert to integer when value > 1000

Nicolas Malin (Jira)
Gareth Carter created OFBIZ-5533:
------------------------------------

             Summary: ModelForm.getOverrideListSize fails to convert to integer when value > 1000
                 Key: OFBIZ-5533
                 URL: https://issues.apache.org/jira/browse/OFBIZ-5533
             Project: OFBiz
          Issue Type: Bug
          Components: ALL COMPONENTS
    Affects Versions: SVN trunk
            Reporter: Gareth Carter
            Priority: Minor


The getOverrideListSize uses FlexibleStringExpander to get the list size but depending on the object type will depend on the value returned and how big the number value is

e.g
override-list-size="${listSize}"

when listSize is a number and more than 1000, the returned value is 1,000
when listSize is a string and more than 1000, it returns 1000.

Looking at NumberConverters, it always uses NumberFormat. For this scenario, you do need to format the number




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)