Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-7846

WebWork does not mark numeric values as selected in dropdown lists.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.0 rc1, 3.0
    • 3.0 i5
    • None
    • None

    Description

      This code

      [@ww.select id="linesToDisplay" name="linesToDisplay" list=[10, 25, 50, 100] theme="simple"/]
      

      and

      public int getLinesToDisplay()
      {
        return 25;
      }
      

      will not work as expected: generated dropdown list will not have "25" as initially selected value.

      Problem is that webwork would internally use BigDecimal type and action method would return Integer and comparing them with method equal will always return false (see ContainUtil.contains(Object, Object)

      Attachments

        Issue Links

          Activity

            People

              kbrazulewicz Krystian Brazulewicz
              kbrazulewicz Krystian Brazulewicz
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: