]> source.dussan.org Git - vaadin-framework.git/commitdiff
Merge commit '0681a2f396e69cd60238d0e77a2d857af5865252'
authorArtur Signell <artur@vaadin.com>
Fri, 23 Mar 2012 07:38:31 +0000 (09:38 +0200)
committerArtur Signell <artur@vaadin.com>
Fri, 23 Mar 2012 07:38:31 +0000 (09:38 +0200)
Conflicts:
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

1  2 
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java
src/com/vaadin/terminal/gwt/client/ui/VScrollTable.java

index 71c2142461f7a9810d1ac0a9c2da62dc44e5bdf7,a05dc7d75861b3f75621916547d49b4652faefe9..11947720f89a392831d2aba893e73068c9f1d91f
@@@ -144,10 -140,8 +144,10 @@@ public class ApplicationConnection 
  
      protected boolean applicationRunning = false;
  
-     private int activeRequests = 0;
+     private boolean hasActiveRequest = false;
  
 +    protected boolean cssLoaded = false;
 +
      /** Parameters for this application connection loaded from the web-page */
      private ApplicationConfiguration configuration;
  
       * failed to start. This ensures that the applications are started in order,
       * to avoid session-id problems.
       * 
 -     * @return
       */
      public void start() {
 -        repaintAll();
 +        String jsonText = configuration.getUIDL();
 +        if (jsonText == null) {
 +            // inital UIDL not in DOM, request later
 +            repaintAll();
 +        } else {
 +            // Update counter so TestBench knows something is still going on
-             incrementActiveRequests();
++            hasActiveRequest = true;
 +
 +            // initial UIDL provided in DOM, continue as if returned by request
 +            handleJSONText(jsonText, -1);
 +        }
      }
  
      private native void initializeTestbenchHooks(
                  req.append(VAR_BURST_SEPARATOR);
              }
          }
 -        makeUidlRequest(req.toString(), "", forceSync);
 +
 +        // Include the browser detail parameters if they aren't already sent
 +        String extraParams;
 +        if (!getConfiguration().isBrowserDetailsSent()) {
 +            extraParams = getNativeBrowserDetailsParameters(getConfiguration()
 +                    .getRootPanelId());
 +            getConfiguration().setBrowserDetailsSent();
 +        } else {
 +            extraParams = "";
 +        }
 +
 +        makeUidlRequest(req.toString(), extraParams, forceSync);
      }
  
-     private void makeUidlRequest(String string) {
-         makeUidlRequest(string, "", false);
-     }
      /**
       * Sends a new value for the given paintables given variable to the server.
       * <p>