Announcement

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

    SmartGWT blocks user actions on requests

    I'm sorry if this question is caused by my misconception of any kind. Also i've tried searching the forum, but didn't find anything useful.

    As i can see, async calls from smartgwt components block user interaction with application.

    As an example "fetch" operation on animals datasource in "build-in-ds" example can be executed through DMI with Thread.sleep() in it.

    On fetch, the application hangs and waits for a response. Unfortunately, user has to wait too... He can't switch tabs (smartgwt tabs) and continue his work while waiting for the result.

    This behavior is pretty disappointing if expencive fetch operations are performed.

    Is this a problem or concept? And what are the best practices to overcome this.
    Last edited by vostapenko; 11 Jan 2013, 08:07.

    #2
    Entirely optional behavior, see rpcRequest.showPrompt.

    Comment


      #3
      Thx, but...

      Seems like RPCManager.setShowPrompt(false) doesn't work (and actually i don't have to set it manually, cause default value is false according to docs).

      And i have to setShowPrompt(false) for each request.

      Probably a bug...

      v8.3p_2013-01-11/PowerEdition Deployment (built 2013-01-11)

      It can be easily reproduced by
      Code:
      RPCManager.setShowPrompt(false);
      RPCManager.setPromptStyle(PromptStyle.DIALOG); //not needed to reproduce, just for convenience
      Last edited by vostapenko; 12 Jan 2013, 05:07.

      Comment


        #4
        No bug, multiple levels of defaults here - see DataSource.showPrompt.

        Comment

        Working...
        X