Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Possible bug in SmartGWT with drop down on a grid

    Hi,

    I'm using SmartGWT 3.0 with GWT 2.4.

    OS is Windows Server 2003 R2 64 bit

    Browsers are:
    Google Chrome 20.0.1132.57 (Official Build 145807) m
    Internet Explorer 8.0.6001.18702

    I've attached a zip that contains an example of the problem.
    http://www.megafileupload.com/en/file/368243/SmartGWTDemo-zip.html

    The application has a single page.
    You select a branch from the branch drop down.
    Then you click the Add button on the bottom to add a new value to the grid.
    The grid field has a drop down that contains the business units for the selected branch.

    You then select another branch from the branch drop down.
    This clears the grid of business units.

    This is all fine so far.

    When we add a new row for the new branch and then pop down the business unit list then the business units for the second branch are shown but the first business unit of the previous branch is shown also.

    Please advise.

    #2
    Hi netroworx,

    If you think you've found a framework bug, you should submit just a single Java file (not a project .zip) that can run in a standard SDK.

    You should also explain what the buggy behavior is and specifically why you think the *framework* is doing wrong (not just that your code is not working how you intended).

    Comment


      #3
      Reduced to one file

      Hi,

      As requested I've reduced my example to one java file.

      SetValueMap seems to be carrying over values from a previous map instead of replacing entirely with the values from the new map.


      Regards,

      Greg
      Attached Files

      Comment


        #4
        If the SelectItem is showing a value from the old valueMap when you call setValueMap(), it will remain showing unless you either set addUnknownValues to false or clearValue() before applying a new valueMap.

        Comment


          #5
          addUnknownValues set to false

          I now set addUnknownValues to false when I create buSelectItem
          I also called clearValue before calling setValueMap.

          I still get the same behavior with the value from the previous branch being carried over.
          Attached Files

          Comment

          Working...
          X