Announcement

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

    What is the correct way to Schedule repeating events in Smart GWT?

    Hello, I am a new developer just learning Smart GWT on the job, and so far, I find it very impressive how complex widgets can be made quickly and bound to data!

    I am developing in I.E. 9 with
    SmartClient Version: v8.2p_2013-02-06/LGPL Development Only (built 2013-02-06)

    I am convinced we are incorrectly using a GWT com.google.gwt.user.client.Timer inside the Smart GWT framework. The Timer initiates a call to a DataSource, and a widget is disabled or enabled in the call back.
    The problem is that the Timer causes the entire screen to appear to refresh, and any Combo Boxes that have been expanded to collapse. What this means for the user is the drop down values that have been expanded by the user collapse / scroll up / hide before they can pick one of the values. (This oddly enough does not affect Pick Lists).
    In the debugger, I found that the combo box's expanded values hide / vanish after the timer has returned and once GWT code is entered, but before the button is enabled/disabled in the Callback.

    I know accessing GWT classes directly is discouraged, and so I suspect this is the heart of the problem and would like to know the correct way to use the framework such that scheduled events do not cause expanded Combo Boxes (especially in different tabs!) to collapse / hide again.

    I am convinced this is happening because I do not understand how to schedule a repeating event in Smart GWT.

    Thanks for reading my post.

    Thanks in advance for any help!

    #2
    DataSource operations default to blocking the UI while the server is contacted, so this would cause a ComboBox to close because focus is moved away from the text input in order to block interactivity. Set rpcRequest.showPrompt to false via the requestProperties argument of DataSource.fetchData() to avoid this effect.

    Comment


      #3
      Thanks! That worked right away! No more collapsing combo boxes in smart gwt!

      Comment

      Working...
      X