[gwt-contrib] Re: Switch CssResource to strict-by-default mode

2009-10-08 Thread rjrjr

And don't forget to update your wiki pages

http://gwt-code-reviews.appspot.com/75804

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6335 committed - More plausible use of a sprite class

2009-10-08 Thread codesite-noreply

Revision: 6335
Author: rj...@google.com
Date: Thu Oct  8 18:47:51 2009
Log: More plausible use of a sprite class
http://code.google.com/p/google-web-toolkit/source/detail?r=6335

Modified:
  /wiki/UiBinder.wiki

===
--- /wiki/UiBinder.wiki Thu Oct  8 18:46:03 2009
+++ /wiki/UiBinder.wiki Thu Oct  8 18:47:51 2009
@@ -243,7 +243,8 @@
  

  
-  
+  
+  
  Well hello there
  


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6334 committed - We don't need ui:apply after all

2009-10-08 Thread codesite-noreply

Revision: 6334
Author: rj...@google.com
Date: Thu Oct  8 18:46:03 2009
Log: We don't need ui:apply after all
http://code.google.com/p/google-web-toolkit/source/detail?r=6334

Modified:
  /wiki/UiBinder.wiki

===
--- /wiki/UiBinder.wiki Sat Sep 26 07:07:46 2009
+++ /wiki/UiBinder.wiki Thu Oct  8 18:46:03 2009
@@ -240,10 +240,10 @@



-
+

  
-  
+  
  Well hello there
  

@@ -288,12 +288,8 @@
  argument (as in this example), it must be instantiable by
  GWT.create().

-An element can be passed as an argument to a method on such resource
-class via the ui:apply attribute, as illustrated above with the Sprite and
-ImageResource uses. *(not yet implemented)*
-
-Note that there is no requirement that a with: class implement the
-ClientBundle interface, this is just an example.
+Note that there is no requirement that a ui:with resource implement
+the ClientBundle interface, this is just an example.

  =Share resource instances=


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Introduces ui:image--ImageResource in UiBinder

2009-10-08 Thread rjrjr

One note: GetEscapedInnerTextVisitor is just a rename of
GetInnerTextVisitor, no need for review beyond that.

http://gwt-code-reviews.appspot.com/77805

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Introduces ui:image--ImageResource in UiBinder

2009-10-08 Thread rjrjr

Reviewers: bobv, jgw,

Message:
Bob or Joel, could one of you grab this? Whoever gets there first...



Please review this at http://gwt-code-reviews.appspot.com/77805

Affected files:
   M user/src/com/google/gwt/uibinder/parsers/HasTextParser.java
   M user/src/com/google/gwt/uibinder/parsers/TextPlaceholderInterpreter.java
   M user/src/com/google/gwt/uibinder/rebind/BundleWriter.java
   A user/src/com/google/gwt/uibinder/rebind/GetEscapedInnerTextVisitor.java
   M user/src/com/google/gwt/uibinder/rebind/GetInnerHtmlVisitor.java
   M user/src/com/google/gwt/uibinder/rebind/GetInnerTextVisitor.java
   M user/src/com/google/gwt/uibinder/rebind/UiBinderParser.java
   M user/src/com/google/gwt/uibinder/rebind/XMLElement.java
   M user/src/com/google/gwt/uibinder/rebind/model/ImplicitClientBundle.java
   M user/src/com/google/gwt/uibinder/rebind/model/ImplicitCssResource.java
   A user/src/com/google/gwt/uibinder/rebind/model/ImplicitImageResource.java
   M user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUi.java
   M user/src/com/google/gwt/uibinder/sample/client/WidgetBasedUi.ui.xml
   A user/src/com/google/gwt/uibinder/sample/client/prettyImage.png
   M user/test/com/google/gwt/uibinder/rebind/XMLElementTest.java
   M user/test/com/google/gwt/uibinder/sample/client/UiBinderTest.java



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6333 committed - Adds LINE_START and LINE_END to DockPanelParser in UiBinder...

2009-10-08 Thread codesite-noreply

Revision: 6333
Author: rj...@google.com
Date: Thu Oct  8 18:15:53 2009
Log: Adds LINE_START and LINE_END to DockPanelParser in UiBinder

Internal contribution.
reviewed by: rjrjr
http://code.google.com/p/google-web-toolkit/source/detail?r=6333

Modified:
  /trunk/user/src/com/google/gwt/uibinder/parsers/DockPanelParser.java

===
--- /trunk/user/src/com/google/gwt/uibinder/parsers/DockPanelParser.java
 
Tue Sep  1 15:14:29 2009
+++ /trunk/user/src/com/google/gwt/uibinder/parsers/DockPanelParser.java
 
Thu Oct  8 18:15:53 2009
@@ -37,6 +37,8 @@
  values.put("EAST", "com.google.gwt.user.client.ui.DockPanel.EAST");
  values.put("WEST", "com.google.gwt.user.client.ui.DockPanel.WEST");
  values.put("CENTER", "com.google.gwt.user.client.ui.DockPanel.CENTER");
+ 
values.put("LINE_START", "com.google.gwt.user.client.ui.DockPanel.LINE_START");
+ 
values.put("LINE_END", "com.google.gwt.user.client.ui.DockPanel.LINE_END");
}

public void parse(XMLElement elem, String fieldName, JClassType type,

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6328 committed - Adding installer for OOPHM IE plugin.

2009-10-08 Thread codesite-noreply
Revision: 6328
Author: jlaba...@google.com
Date: Thu Oct  8 12:28:52 2009
Log: Adding installer for OOPHM IE plugin.
http://code.google.com/p/google-web-toolkit/source/detail?r=6328

Added:
  /trunk/plugins/ie/installer
  /trunk/plugins/ie/installer/COPYING.rtf
  /trunk/plugins/ie/installer/GwtBanner.bmp
  /trunk/plugins/ie/installer/GwtDevModeIePluginInstaller.msi
  /trunk/plugins/ie/installer/GwtDialog.bmp
  /trunk/plugins/ie/installer/README.txt
  /trunk/plugins/ie/installer/build.xml
  /trunk/plugins/ie/installer/installer.wxs.xml
Modified:
  /trunk/plugins/MissingBrowserPlugin.html

===
--- /dev/null
+++ /trunk/plugins/ie/installer/COPYING.rtf Thu Oct  8 12:28:52 2009
@@ -0,0 +1,252 @@
+{\rtf1\ansi\deff0{\fonttbl{\f0\fnil\fcharset0 Courier New;}}
+{\*\generator Msftedit  
5.41.15.1515;}\viewkind4\uc1\pard\lang1033\f0\fs20GOOGLE WEB  
TOOLKIT LICENSE INFORMATION\par
+\par
+March 3, 2008\par
+\par
+The Google Web Toolkit software and sample code developed by Google is \par
+licensed under the Apache License, v. 2.0. Other software included in this  
\par
+distribution is provided under other licenses, as listed in the Included  
\par
+Software and Licenses section at the bottom of this page. Source code for  
\par
+software included in this distribution is available from the Google Web  
\par
+Toolkit project or as otherwise indicated at the bottom of this page. \par
+\par
+Please note that the executable version of the Google Web Toolkit \par
+distributed by Google will communicate with Google's servers to check for  
\par
+available updates. If updates are available, you will receive the option  
to \par
+install them. \par
+\par
+=\par
+\par
+Apache License\par
+Version 2.0, January 2004\par
+http://www.apache.org/licenses/ \par
+\par
+1. Definitions.\par
+\par
+"License" shall mean the terms and conditions for use, reproduction, and  
\par
+distribution as defined by Sections 1 through 9 of this document. \par
+\par
+"Licensor" shall mean the copyright owner or entity authorized by the \par
+copyright owner that is granting the License. \par
+\par
+"Legal Entity" shall mean the union of the acting entity and all other \par
+entities that control, are controlled by, or are under common control with  
\par
+that entity. For the purposes of this definition, "control" means (i) the  
\par
+power, direct or indirect, to cause the direction or management of such  
\par
+entity, whether by contract or otherwise, or (ii) ownership of fifty  
percent \par
+(50%) or more of the outstanding shares, or (iii) beneficial ownership of  
\par
+such entity. \par
+\par
+"You" (or "Your") shall mean an individual or Legal Entity exercising \par
+permissions granted by this License. \par
+\par
+"Source" form shall mean the preferred form for making modifications, \par
+including but not limited to software source code, documentation source,  
and \par
+configuration files. \par
+\par
+"Object" form shall mean any form resulting from mechanical transformation  
\par
+or translation of a Source form, including but not limited to compiled \par
+object code, generated documentation, and conversions to other media  
types. \par
+\par
+"Work" shall mean the work of authorship, whether in Source or Object  
form, \par
+made available under the License, as indicated by a copyright notice that  
is \par
+included in or attached to the work (an example is provided in the  
Appendix \par
+below). \par
+\par
+"Derivative Works" shall mean any work, whether in Source or Object form,  
\par
+that is based on (or derived from) the Work and for which the editorial  
\par
+revisions, annotations, elaborations, or other modifications represent, as  
a \par
+whole, an original work of authorship. For the purposes of this License,  
\par
+Derivative Works shall not include works that remain separable from, or  
\par
+merely link (or bind by name) to the interfaces of, the Work and  
Derivative \par
+Works thereof. \par
+\par
+"Contribution" shall mean any work of authorship, including the original  
\par
+version of the Work and any modifications or additions to that Work or \par
+Derivative Works thereof, that is intentionally submitted to Licensor for  
\par
+inclusion in the Work by the copyright owner or by an individual or Legal  
\par
+Entity authorized to submit on behalf of the copyright owner. For the \par
+purposes of this definition, "submitted" means any form of electronic, \par
+verbal, or written communication sent to the Licensor or its \par
+representatives, including but not limited to communication on electronic  
\par
+mailing lists, source code control systems, and issue tracking systems  
that \par
+are managed by, or on behalf of, the Licensor for the purpose of  
discussing \par
+and improving the Work, but excluding communication that is conspicuously  
\par
+marked or otherwise designated in writing by the copyright owner as "Not a  
\par
+Contribution." \par

[gwt-contrib] [google-web-toolkit] r6332 committed - Fix a problem where JL's batching changes were botched in the process ...

2009-10-08 Thread codesite-noreply

Revision: 6332
Author: j...@google.com
Date: Thu Oct  8 15:44:08 2009
Log: Fix a problem where JL's batching changes were botched in the process  
of
merging, filter out annoying log spam when JUnit changes to the next module
(basically the JSNI call Window.Location.replace never returns and we get a
dropped connection).

http://code.google.com/p/google-web-toolkit/source/detail?r=6332

Modified:
  /changes/jat/abstractui/dev/core/src/com/google/gwt/dev/HostedModeBase.java
   
/changes/jat/abstractui/dev/core/test/com/google/gwt/dev/shell/BrowserChannelServerTest.java
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserListener.java
  /changes/jat/abstractui/user/src/com/google/gwt/junit/BatchingStrategy.java
  /changes/jat/abstractui/user/src/com/google/gwt/junit/JUnitShell.java

===
---  
/changes/jat/abstractui/dev/core/src/com/google/gwt/dev/HostedModeBase.java 
 
Thu Oct  8 14:16:26 2009
+++  
/changes/jat/abstractui/dev/core/src/com/google/gwt/dev/HostedModeBase.java 
 
Thu Oct  8 15:44:08 2009
@@ -62,6 +62,7 @@
  import java.util.Map;
  import java.util.Random;
  import java.util.Set;
+import java.util.concurrent.Semaphore;

  /**
   * The main executable class for the hosted mode shell. This class must  
not have
@@ -316,7 +317,7 @@
return true;
  }
}
-
+
/**
 * Handles the -noserver command line flag.
 */
@@ -607,7 +608,7 @@

  void setNoServer(boolean isNoServer);
}
-
+
/**
 * Controls what port to use.
 *
@@ -716,7 +717,7 @@
 */
private Set alreadySeenModules = new HashSet();

-  private final Object blockUntilDone = new Object();
+  private final Semaphore blockUntilDone = new Semaphore(0);

private BrowserWidgetHostImpl browserHost = new  
UiBrowserWidgetHostImpl();

@@ -785,9 +786,7 @@
  launchStartupUrls(getTopLogger());
}

-  synchronized (blockUntilDone) {
-blockUntilDone.wait();
-  }
+  blockUntilDone.acquire();
  } catch (Exception e) {
e.printStackTrace();
  } finally {
@@ -999,9 +998,7 @@
}

protected final void setDone() {
-synchronized (blockUntilDone) {
-  blockUntilDone.notifyAll();
-}
+blockUntilDone.release();
}

protected final void setHeadless(boolean headlessMode) {
===
---  
/changes/jat/abstractui/dev/core/test/com/google/gwt/dev/shell/BrowserChannelServerTest.java
 
Wed Oct  7 09:24:31 2009
+++  
/changes/jat/abstractui/dev/core/test/com/google/gwt/dev/shell/BrowserChannelServerTest.java
 
Thu Oct  8 15:44:08 2009
@@ -53,7 +53,7 @@
  public TestBrowserChannelServer(TreeLogger logger,
  InputStream inputStream, OutputStream outputStream,
  SessionHandler handler) throws IOException {
-  super(logger, inputStream, outputStream, handler);
+  super(logger, inputStream, outputStream, handler, true);
  }

  @Override
===
---  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
Thu Oct  8 08:49:57 2009
+++  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
Thu Oct  8 15:44:08 2009
@@ -25,17 +25,30 @@
  import java.io.BufferedOutputStream;
  import java.io.DataInputStream;
  import java.io.DataOutputStream;
+import java.io.EOFException;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.OutputStream;
  import java.io.UnsupportedEncodingException;
  import java.net.Socket;
+import java.net.SocketException;
  import java.util.Set;

  /**
   *
   */
  public abstract class BrowserChannel {
+
+  /**
+   * An error indicating that the remote side died and we should unroll the
+   * call stack as painlessly as possible to allow cleanup.
+   */
+  public static class RemoteDeathError extends Error {
+
+public RemoteDeathError(Throwable cause) {
+  super("Remote connection lost", cause);
+}
+  }

/**
 * Class representing a reference to a Java object.
@@ -1314,11 +1327,15 @@

  public static void send(BrowserChannel channel, boolean isException,
  Value returnValue) throws IOException {
-  final DataOutputStream stream = channel.getStreamToOtherSide();
-  stream.writeByte(MessageType.RETURN.getId());
-  stream.writeBoolean(isException);
-  channel.writeValue(stream, returnValue);
-  stream.flush();
+  try {
+final DataOutputStream stream = channel.getStreamToOtherSide();
+stream.writeByte(MessageType.RETURN.getId());
+stream.writeBoolean(isException);
+channel.writeValue(stream, returnValue);
+stream.flush();
+  } catch (SocketException e) {
+throw new RemoteDeathError(e);
+  

[gwt-contrib] [google-web-toolkit] r6331 committed - Adding a semicolon to the javascript reference in empty Anchor widgets...

2009-10-08 Thread codesite-noreply

Revision: 6331
Author: jlaba...@google.com
Date: Thu Oct  8 14:22:37 2009
Log: Adding a semicolon to the javascript reference in empty Anchor widgets  
to fix a FF2 bug where Anchor widgets open the error console.

Patch by: jlabanca
Review by: rjrjr


http://code.google.com/p/google-web-toolkit/source/detail?r=6331

Modified:
  /trunk/user/src/com/google/gwt/user/client/ui/Anchor.java
  /trunk/user/test/com/google/gwt/user/client/ui/AnchorTest.java

===
--- /trunk/user/src/com/google/gwt/user/client/ui/Anchor.java   Fri May 15  
13:39:00 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/Anchor.java   Thu Oct  8  
14:22:37 2009
@@ -74,26 +74,26 @@
/**
 * Creates an anchor for scripting.
 *
-   * The anchor's href is set to javascript:, based on the
+   * The anchor's href is set to javascript:;, based on the
 * expectation that listeners will be added to the anchor.
 *
 * @param text the anchor's text
 */
public Anchor(String text) {
-this(text, "javascript:");
+this(text, "javascript:;");
}

/**
 * Creates an anchor for scripting.
 *
-   * The anchor's href is set to javascript:, based on the
+   * The anchor's href is set to javascript:;, based on the
 * expectation that listeners will be added to the anchor.
 *
 * @param text the anchor's text
 * @param asHtml true to treat the specified text as html
 */
public Anchor(String text, boolean asHtml) {
-this(text, asHtml, "javascript:");
+this(text, asHtml, "javascript:;");
}

/**
===
--- /trunk/user/test/com/google/gwt/user/client/ui/AnchorTest.java  Thu Jul 
 
30 13:47:31 2009
+++ /trunk/user/test/com/google/gwt/user/client/ui/AnchorTest.java  Thu Oct 
  
8 14:22:37 2009
@@ -124,7 +124,7 @@
  assertEquals(1, DOM.getChildCount(p.getElement()));
  assertEquals("A", DOM.getChild(p.getElement(), 0).getTagName());
  assertEquals("Foo", anchor.getText());
-assertAttributeHasValue("javascript:", anchor.getElement(), "href");
+assertAttributeHasValue("javascript:;", anchor.getElement(), "href");

  for (String attribute : new String[]  
{"name", "id", "rel", "ref", "target"}) {
assertAttributeNotPresent(attribute, anchor.getElement());
@@ -140,7 +140,7 @@
  assertEquals(1, DOM.getChildCount(p.getElement()));
  assertEquals("A", DOM.getChild(p.getElement(), 0).getTagName());
  assertEquals("SPAN", DOM.getChild(anchor.getElement(),  
0).getTagName());
-assertAttributeHasValue("javascript:", anchor.getElement(), "href");
+assertAttributeHasValue("javascript:;", anchor.getElement(), "href");

  for (String attribute : new String[]  
{"name", "id", "rel", "ref", "target"}) {
assertAttributeNotPresent(attribute, anchor.getElement());

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Empty Anchor uses incorrect javascript syntax

2009-10-08 Thread rjrjr

LGTM

http://gwt-code-reviews.appspot.com/77804

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Empty Anchor uses incorrect javascript syntax

2009-10-08 Thread John LaBanca
FYI - I added another patch set.  It doesn't seem to send out an email to
that effect though

Thanks,
John LaBanca
jlaba...@google.com


On Thu, Oct 8, 2009 at 5:05 PM, Ray Ryan  wrote:

> That's why TDD is a good thing. Not that I've ever managed it.
>
>
> On Thu, Oct 8, 2009 at 1:52 PM,  wrote:
>
>> Forgot to update the tests :(
>>
>>
>> http://gwt-code-reviews.appspot.com/77804
>>
>
>

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6330 committed - Delay processing the -runStyle argument so JUnitShell's logger is avai...

2009-10-08 Thread codesite-noreply

Revision: 6330
Author: j...@google.com
Date: Thu Oct  8 14:16:26 2009
Log: Delay processing the -runStyle argument so JUnitShell's logger is  
available
for the runstyles.

http://code.google.com/p/google-web-toolkit/source/detail?r=6330

Modified:
  /changes/jat/abstractui/dev/core/src/com/google/gwt/dev/HostedModeBase.java
  /changes/jat/abstractui/user/src/com/google/gwt/junit/JUnitShell.java
   
/changes/jat/abstractui/user/src/com/google/gwt/junit/RunStyleExternalBrowser.java
  /changes/jat/abstractui/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java
  /changes/jat/abstractui/user/src/com/google/gwt/junit/RunStyleManual.java
   
/changes/jat/abstractui/user/src/com/google/gwt/junit/RunStyleRemoteWeb.java
  /changes/jat/abstractui/user/src/com/google/gwt/junit/RunStyleSelenium.java

===
---  
/changes/jat/abstractui/dev/core/src/com/google/gwt/dev/HostedModeBase.java 
 
Wed Oct  7 16:56:57 2009
+++  
/changes/jat/abstractui/dev/core/src/com/google/gwt/dev/HostedModeBase.java 
 
Thu Oct  8 14:16:26 2009
@@ -850,6 +850,15 @@

protected abstract void doShutDownServer();

+  /**
+   * Perform any startup tasks, including initializing the UI (if any) and  
the
+   * logger, updates checker, and the development mode code server.
+   *
+   * Subclasses that override this method should be careful what  
facilities
+   * are used before the super implementation is called.
+   *
+   * @return true if startup was successful
+   */
protected boolean doStartup() {
  // Create the main app window.
  ui.initialize();
===
--- /changes/jat/abstractui/user/src/com/google/gwt/junit/JUnitShell.java   
 
Wed Oct  7 16:56:57 2009
+++ /changes/jat/abstractui/user/src/com/google/gwt/junit/JUnitShell.java   
 
Thu Oct  8 14:16:26 2009
@@ -189,42 +189,8 @@

  @Override
  public boolean setString(String runStyleArg) {
-  String runStyleName = runStyleArg;
-  String args = null;
-  int colon = runStyleArg.indexOf(':');
-  if (colon >= 0) {
-runStyleName = runStyleArg.substring(0, colon);
-args = runStyleArg.substring(colon + 1);
-  }
-  if (runStyleName.indexOf('.') < 0) {
-runStyleName = RunStyle.class.getName() + runStyleName;
-  }
-  Throwable caught = null;
-  try {
-Class clazz = Class.forName(runStyleName);
-Class runStyleClass = clazz.asSubclass(
-RunStyle.class);
-Constructor ctor =  
runStyleClass.getConstructor(
-JUnitShell.class);
-runStyle = ctor.newInstance(JUnitShell.this);
-return runStyle.initialize(args);
-  } catch (ClassNotFoundException e) {
-caught = e;
-  } catch (SecurityException e) {
-caught = e;
-  } catch (NoSuchMethodException e) {
-caught = e;
-  } catch (IllegalArgumentException e) {
-caught = e;
-  } catch (InstantiationException e) {
-caught = e;
-  } catch (IllegalAccessException e) {
-caught = e;
-  } catch (InvocationTargetException e) {
-caught = e;
-  }
-  throw new RuntimeException("Unable to create runStyle " +  
runStyleArg,
-  caught);
+  runStyleName = runStyleArg;
+  return true;
  }
});

@@ -524,8 +490,6 @@
if (!argProcessor.processArgs(args)) {
  throw new JUnitFatalLaunchException("Error processing shell  
arguments");
}
-  unitTestShell.finalizeArguments();
-
unitTestShell.messageQueue = new JUnitMessageQueue(
unitTestShell.numClients);

@@ -613,6 +577,12 @@
 */
private RunStyle runStyle = null;

+  /**
+   * The argument passed to -runStyle.  This is parsed later so we can  
pass in
+   * a logger.
+   */
+  private String runStyleName = null;
+
private boolean shouldAutoGenerateResources = true;

/**
@@ -672,6 +642,11 @@
  if (!super.doStartup()) {
return false;
  }
+if (!createRunStyle()) {
+  // RunStyle already logged reasons for its failure
+  return false;
+}
+
  if (!runStyle.setupMode(getTopLogger(), developmentMode)) {
getTopLogger().log(TreeLogger.ERROR, "Run style does not support "
+ (developmentMode ? "development" : "production") + " mode");
@@ -822,13 +797,52 @@
}

/**
-   * Finish processing command line arguments.
+   * Create the specified (or default) runStyle.
+   *
+   * @return true if the runStyle was successfully created/initialized
 */
-  private void finalizeArguments() {
-if (runStyle == null) {
+  private boolean createRunStyle() {
+if (runStyleName == null) {
// Default to HtmlUnit runstyle with no args
runStyle = new RunStyleHtmlUnit(this);
-  runStyle.initialize(null);
+  return

[gwt-contrib] Comment on UiBinder in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by rj...@google.com:

{{{
   @UiHandler({"textField1", "textField2"})
   protected void updateLogin(KeyUpEvent event) {
 model.validate();
   }

}}}


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UiBinder in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by sven.tiffe:

Folks,

is there a way to bind more than one element to a method, e.g.

{{{
   @UiHandler("textField1")
   @UiHandler("textField2")
   protected void updateLogin(KeyUpEvent event) {
 model.validate();
   }
}}}

And is there anything planned for two-way bindings? I was playing around  
with gwittir but I was not very happy with it so far. I like the UIBinder  
approach which makes accessing the UI elements easier and saves a lot of  
code, but with gwitter i like in principle the two-way binding, converting,  
validating, etc. Any comment or idea?


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Empty Anchor uses incorrect javascript syntax

2009-10-08 Thread jlabanca

Reviewers: Ray Ryan,

Description:
Description:
The Anchor widget defaults its href to "javascript:" if no href is
specified to prevent a blank page from loading.  However, this causes
FF2 to open the error console with no error message.

Fix:
Changed the href to the correct value "javascript:;".  Notice the ; on
the end to close the javascript expression.

Testing:
Verified this works on all browsers.

Please review this at http://gwt-code-reviews.appspot.com/77804

Affected files:
   user/src/com/google/gwt/user/client/ui/Anchor.java


Index: user/src/com/google/gwt/user/client/ui/Anchor.java
===
--- user/src/com/google/gwt/user/client/ui/Anchor.java  (revision 6326)
+++ user/src/com/google/gwt/user/client/ui/Anchor.java  (working copy)
@@ -74,13 +74,13 @@
/**
 * Creates an anchor for scripting.
 *
-   * The anchor's href is set to javascript:, based on the
+   * The anchor's href is set to javascript:;, based on the
 * expectation that listeners will be added to the anchor.
 *
 * @param text the anchor's text
 */
public Anchor(String text) {
-this(text, "javascript:");
+this(text, "javascript:;");
}

/**
@@ -93,7 +93,7 @@
 * @param asHtml true to treat the specified text as html
 */
public Anchor(String text, boolean asHtml) {
-this(text, asHtml, "javascript:");
+this(text, asHtml, "javascript:;");
}

/**



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6329 committed - Adding UrlBuilder and using it in Showcase and GwtTestCase so we don't...

2009-10-08 Thread codesite-noreply

Revision: 6329
Author: jlaba...@google.com
Date: Thu Oct  8 13:06:28 2009
Log: Adding UrlBuilder and using it in Showcase and GwtTestCase so we don't  
remove gwt.hosted parameter in URLs.

Patch by: jlabanca
Review by: jat


http://code.google.com/p/google-web-toolkit/source/detail?r=6329

Added:
  /trunk/user/src/com/google/gwt/http/client/UrlBuilder.java
  /trunk/user/test/com/google/gwt/http/client/UrlBuilderTest.java
Modified:
   
/trunk/samples/showcase/src/com/google/gwt/sample/showcase/client/Showcase.java
  /trunk/user/src/com/google/gwt/user/client/Window.java
   
/trunk/user/super/com/google/gwt/junit/translatable/com/google/gwt/junit/client/impl/GWTRunner.java
  /trunk/user/test/com/google/gwt/http/HTTPSuite.java
  /trunk/user/test/com/google/gwt/user/client/WindowTest.java

===
--- /dev/null
+++ /trunk/user/src/com/google/gwt/http/client/UrlBuilder.java  Thu Oct  8  
13:06:28 2009
@@ -0,0 +1,243 @@
+/*
+ * Copyright 2009 Google Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License"); you may  
not
+ * use this file except in compliance with the License. You may obtain a  
copy of
+ * the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,  
WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations  
under
+ * the License.
+ */
+package com.google.gwt.http.client;
+
+import java.util.HashMap;
+import java.util.Map;
+
+/**
+ * Utility class to build a URL from components.
+ *
+ * TODO(jlabanca): Add a constructor that parses an existing URL
+ */
+public class UrlBuilder {
+
+  /**
+   * The port to use when no port should be specified.
+   */
+  public static final int PORT_UNSPECIFIED = Integer.MIN_VALUE;
+
+  /**
+   * A mapping of query parameters to their values.
+   */
+  private Map listParamMap = new HashMap();
+
+  private String protocol = "http";
+  private String host = null;
+  private int port = PORT_UNSPECIFIED;
+  private String path = null;
+  private String hash = null;
+
+  /**
+   * Build the URL and return it as an encoded string.
+   *
+   * @return the encoded URL string
+   */
+  public String buildString() {
+StringBuilder url = new StringBuilder();
+
+// http://
+url.append(protocol).append("://");
+
+// http://www.google.com
+if (host != null) {
+  url.append(host);
+}
+
+// http://www.google.com:80
+if (port != PORT_UNSPECIFIED) {
+  url.append(":").append(port);
+}
+
+// http://www.google.com:80/path/to/file.html
+if (path != null && !"".equals(path)) {
+  url.append("/").append(path);
+}
+
+// Generate the query string.
+// http://www.google.com:80/path/to/file.html?k0=v0&k1=v1
+char prefix = '?';
+for (Map.Entry entry : listParamMap.entrySet()) {
+  for (String val : entry.getValue()) {
+url.append(prefix).append(entry.getKey()).append('=');
+if (val != null) {
+  url.append(val);
+}
+prefix = '&';
+  }
+}
+
+// http://www.google.com:80/path/to/file.html?k0=v0&k1=v1#token
+if (hash != null) {
+  url.append("#").append(hash);
+}
+
+return URL.encode(url.toString());
+  }
+
+  /**
+   * Remove a query parameter from the map.
+   *
+   * @param name the parameter name
+   */
+  public UrlBuilder removeParameter(String name) {
+listParamMap.remove(name);
+return this;
+  }
+
+  /**
+   * Set the hash portion of the location (ex. myAnchor or #myAnchor).
+   *
+   * @param hash the hash
+   */
+  public UrlBuilder setHash(String hash) {
+if (hash != null && hash.startsWith("#")) {
+  hash = hash.substring(1);
+}
+this.hash = hash;
+return this;
+  }
+
+  /**
+   * Set the host portion of the location (ex. google.com). You can also  
specify
+   * the port in this method (ex. localhost:).
+   *
+   * @param host the host
+   */
+  public UrlBuilder setHost(String host) {
+// Extract the port from the host.
+if (host != null && host.contains(":")) {
+  String[] parts = host.split(":");
+  if (parts.length > 2) {
+throw new IllegalArgumentException(
+"Host contains more than one colon: " + host);
+  }
+  try {
+setPort(Integer.parseInt(parts[1]));
+  } catch (NumberFormatException e) {
+throw new IllegalArgumentException("Could not parse port out of  
host: "
++ host);
+  }
+  host = parts[0];
+}
+this.host = host;
+return this;
+  }
+
+  /**
+   * 
+   * Set a query parameter to a list of values. Each value in the list  
will be
+   * added as its own key/value pair.
+   *
+   * 
+   * Example Output
+   * ?mykey=value0&mykey=value1&mykey=value2
+   * 
+   *
+   * @param key the key
+   * @par

[gwt-contrib] Re: Switch CssResource to strict-by-default mode

2009-10-08 Thread rjrjr

LGTM

Just nits.


http://gwt-code-reviews.appspot.com/75804/diff/1/3
File user/src/com/google/gwt/resources/client/CssResource.java (right):

http://gwt-code-reviews.appspot.com/75804/diff/1/3#newcode120
Line 120: * The {...@code @external} at-rule can be used in strict mode to
indicate that
did you mean {...@literal @external}? Also, {...@literal @}external works just
fine.

http://gwt-code-reviews.appspot.com/75804/diff/1/5
File user/src/com/google/gwt/resources/rg/CssResourceGenerator.java
(right):

http://gwt-code-reviews.appspot.com/75804/diff/1/5#newcode716
Line 716: @SuppressWarnings("deprecation")
Should comment why this was needed.

http://gwt-code-reviews.appspot.com/75804

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6327 committed - Makes Image aware of ImageResource...

2009-10-08 Thread codesite-noreply

Revision: 6327
Author: rj...@google.com
Date: Thu Oct  8 12:27:08 2009
Log: Makes Image aware of ImageResource

Reviewed by: jlabanca
http://gwt-code-reviews.appspot.com/78804
http://code.google.com/p/google-web-toolkit/source/detail?r=6327

Added:
  /trunk/user/test/com/google/gwt/user/client/ui/prettyPiccy.png
Modified:
  /trunk/user/src/com/google/gwt/user/client/ui/Image.java
  /trunk/user/test/com/google/gwt/user/client/ui/ImageTest.java

===
--- /dev/null   
+++ /trunk/user/test/com/google/gwt/user/client/ui/prettyPiccy.png  Thu Oct 
  
8 12:27:08 2009
Binary file, no diff available.
===
--- /trunk/user/src/com/google/gwt/user/client/ui/Image.javaWed May 13  
08:08:49 2009
+++ /trunk/user/src/com/google/gwt/user/client/ui/Image.javaThu Oct  8  
12:27:08 2009
@@ -1,12 +1,12 @@
  /*
   * Copyright 2008 Google Inc.
- *
+ *
   * Licensed under the Apache License, Version 2.0 (the "License"); you may  
not
   * use this file except in compliance with the License. You may obtain a  
copy of
   * the License at
- *
+ *
   * http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
   * Unless required by applicable law or agreed to in writing, software
   * distributed under the License is distributed on an "AS IS" BASIS,  
WITHOUT
   * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
@@ -42,6 +42,7 @@
  import com.google.gwt.event.dom.client.MouseWheelEvent;
  import com.google.gwt.event.dom.client.MouseWheelHandler;
  import com.google.gwt.event.shared.HandlerRegistration;
+import com.google.gwt.resources.client.ImageResource;
  import com.google.gwt.user.client.Event;
  import com.google.gwt.user.client.ui.impl.ClippedImageImpl;

@@ -56,16 +57,16 @@
   * image is constructed, and how it is transformed after construction.  
Methods
   * will operate differently depending on the mode that the image is in.  
These
   * differences are detailed in the documentation for each method.
- *
+ *
   * 
   * If an image transitions between clipped mode and unclipped mode, any
   * {...@link Element}-specific attributes added by the user (including style
   * attributes, style names, and style modifiers), except for event  
listeners,
   * will be lost.
   * 
- *
+ *
   * CSS Style Rules  .gwt-Image { } 
- *
+ *
   * Tranformations between clipped and unclipped state will result in a  
loss of
   * any style names that were set/added; the only style names that are  
preserved
   * are those that are mentioned in the static CSS style rules. Due to
@@ -74,7 +75,7 @@
   * expected when an image is in clipped mode. These limitations can  
usually be
   * easily worked around by encapsulating the image in a container widget  
that
   * can itself be styled.
- *
+ *
   * 
   * Example
   * {...@example com.google.gwt.examples.ImageExample}
@@ -304,7 +305,7 @@

/**
 * Causes the browser to pre-fetch the image at a given URL.
-   *
+   *
 * @param url the URL of the image to be prefetched
 */
public static void prefetch(String url) {
@@ -315,11 +316,11 @@

/**
 * Creates a Image widget that wraps an existing  element.
-   *
+   *
 * This element must already be attached to the document. If the element  
is
 * removed from the document, you must call
 * {...@link RootPanel#detachNow(Widget)}.
-   *
+   *
 * @param element the element to be wrapped
 */
public static Image wrap(Element element) {
@@ -345,11 +346,21 @@
  changeState(new UnclippedState(this));
  setStyleName("gwt-Image");
}
+
+  /**
+   * Creates an image whose size and content are defined by an  
ImageResource.
+   *
+   * @param resource the ImageResource to be displayed
+   */
+  public Image(ImageResource resource) {
+this(resource.getURL(), resource.getLeft(),
+ resource.getTop(), resource.getWidth(), resource.getHeight());
+  }

/**
 * Creates an image with a specified URL. The load event will be fired  
once
 * the image at the given URL has been retrieved by the browser.
-   *
+   *
 * @param url the URL of the image to be displayed
 */
public Image(String url) {
@@ -366,7 +377,7 @@
 * the width and height are specified explicitly by the user, this  
behavior
 * will not cause problems with retrieving the width and height of a  
clipped
 * image in a load event handler.
-   *
+   *
 * @param url the URL of the image to be displayed
 * @param left the horizontal co-ordinate of the upper-left vertex of the
 *  visibility rectangle
@@ -383,7 +394,7 @@
/**
 * This constructor may be used by subclasses to explicitly use an  
existing
 * element. This element must be an  element.
-   *
+   *
 * @param element the element to be used
 */
protected Image(Element element) {
@@ -466,7 +477,7 @@
 * Gets the height of the image. When the image is in the unclipped  
state, the
 * height of the imag

[gwt-contrib] Re: Teach Image about ImageResource

2009-10-08 Thread rjrjr

Committed r6327


http://gwt-code-reviews.appspot.com/78804

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Teach Image about ImageResource

2009-10-08 Thread jlabanca

LGTM

But consider the one comment


http://gwt-code-reviews.appspot.com/78804/diff/5/6
File user/src/com/google/gwt/user/client/ui/Image.java (right):

http://gwt-code-reviews.appspot.com/78804/diff/5/6#newcode355
Line 355: public Image(ImageResource resource) {
I think it would be better to call the other constructor to to avoid
duplication of code.

http://gwt-code-reviews.appspot.com/78804

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Teach Image about ImageResource

2009-10-08 Thread bobv

LGTM, but there's a lot of diff noise.

http://gwt-code-reviews.appspot.com/78804

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Teach Image about ImageResource

2009-10-08 Thread rjrjr

Reviewers: jlabanca,

Message:
Okay, ready for my close up Mr. Labanca



Please review this at http://gwt-code-reviews.appspot.com/78804

Affected files:
   M user/src/com/google/gwt/user/client/ui/Image.java
   M user/test/com/google/gwt/user/client/ui/ImageTest.java
   A user/test/com/google/gwt/user/client/ui/prettyPiccy.png



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6326 committed - Merge farewellSwt changes into branch....

2009-10-08 Thread codesite-noreply

Revision: 6326
Author: j...@google.com
Date: Thu Oct  8 11:27:39 2009
Log: Merge farewellSwt changes into branch.

svn merge --ignore-ancestry -r6280:6325 \
 https://google-web-toolkit.googlecode.com/svn/branches/farewellSwt .

http://code.google.com/p/google-web-toolkit/source/detail?r=6326

Added:
  /changes/jat/abstractui/tools/do-not-commit-to-trunk
Deleted:
  /changes/jat/abstractui/distro-source/linux/build.xml
  /changes/jat/abstractui/distro-source/mac/build.xml
  /changes/jat/abstractui/distro-source/windows/build.xml
Modified:
  /changes/jat/abstractui/branch-info.txt
  /changes/jat/abstractui/dev/build.xml
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/HostedModePluginObject.java
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/HtmlUnitSessionHandler.java
  /changes/jat/abstractui/eclipse/dev/.classpath
  /changes/jat/abstractui/eclipse/user/.classpath
  /changes/jat/abstractui/samples/common.ant.xml
  /changes/jat/abstractui/user/src/com/google/gwt/junit/RunStyleHtmlUnit.java
  /changes/jat/abstractui/user/src/com/google/gwt/user/tools/README.txtsrc
   
/changes/jat/abstractui/user/src/com/google/gwt/user/tools/project.ant.xmlsrc
Replaced:
  /changes/jat/abstractui/tools/do-not-commit-to-trunk/README
   
/changes/jat/abstractui/tools/do-not-commit-to-trunk/htmlunit-core-js-sources.jar
  /changes/jat/abstractui/tools/do-not-commit-to-trunk/htmlunit-core-js.jar
  /changes/jat/abstractui/tools/do-not-commit-to-trunk/htmlunit-sources.jar
  /changes/jat/abstractui/tools/do-not-commit-to-trunk/htmlunit.jar
  /changes/jat/abstractui/tools/do-not-commit-to-trunk/nekohtml-1.9.13.jar

===
--- /changes/jat/abstractui/distro-source/linux/build.xml   Thu Sep 24  
13:55:42 2009
+++ /dev/null
@@ -1,76 +0,0 @@
-
-  
-  
-  
-
-  
-
-
-
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-
-  
-  
-
-
-
-
-  
-
-  
-  
-
-
-
-
-  
-  
-
-  
-
-  
-
-
-
-  
-  
-
-
-
-  
-  
-  
-  
-
-  
-
-  
-
===
--- /changes/jat/abstractui/distro-source/mac/build.xml Thu Sep 24 13:55:42  
2009
+++ /dev/null
@@ -1,74 +0,0 @@
-
-  
-  
-  
-
-  
-
-
-
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-  
-
-  
-
-  
-  
-
-
-
-
-  
-
-  
-  
-
-
-
-
-  
-  
-
-  
-
-
-
-  
-  
-
-
-
-  
-  
-  
-  
-
-  
-
-  
-
===
--- /changes/jat/abstractui/distro-source/windows/build.xml Thu Sep 24  
13:55:42 2009
+++ /dev/null
@@ -1,55 +0,0 @@
-
-  
-  
-  
-
-  
-
-
-
-
-  
-  
-  
-  
-  
-  
-  
-  
-
-  
-  
-
-  
-  
-  
-
-  
-  
-
-
-
-
-  
-
-  
-  
-
-
-
-
-  
-  
-
-  
-
-
-
-  
-  
-
-
-  
-
-  
-
===
--- /changes/jat/abstractui/branch-info.txt Thu Oct  1 11:39:10 2009
+++ /changes/jat/abstractui/branch-info.txt Thu Oct  8 11:27:39 2009
@@ -4,5 +4,7 @@
   
https://google-web-toolkit.googlecode.com/svn/branches/farewell...@6280 \
  https://google-web-toolkit.googlecode.com/svn/changes/jat/abstractui

-Merged from trunk
-
+Merges
+==
+svn merge --ignore-ancestry -r6280:6325 \
+https://google-web-toolkit.googlecode.com/svn/branches/farewellSwt .
===
--- /changes/jat/abstractui/dev/build.xml   Wed Sep 30 21:43:14 2009
+++ /changes/jat/abstractui/dev/build.xml   Thu Oct  8 11:27:39 2009
@@ -7,6 +7,7 @@



+  


  
@@ -74,9 +75,6 @@



-  
-  
-  



@@ -86,6 +84,11 @@

  
  
+
+  
+  
+  
+


  
@@ -129,9 +132,9 @@



-  
-  
-  
+  
+  
+  



===
---  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/HostedModePluginObject.java
   
Fri Oct  2 16:13:44 2009
+++  
/changes/jat/abstract

[gwt-contrib] Re: Teach Image about ImageResource

2009-10-08 Thread rjrjr

WHOA! Nevermind,  git diff problems.

http://gwt-code-reviews.appspot.com/78803

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Teach Image about ImageResource

2009-10-08 Thread rjrjr

Reviewers: jlabanca,

Message:
John, can you take this?



Please review this at http://gwt-code-reviews.appspot.com/78803

Affected files:
   M build.xml
   M dev/core/src/com/google/gwt/dev/javac/ArtificialRescueChecker.java
   M  
tools/api-checker/src/com/google/gwt/tools/apichecker/ApiCompatibilityChecker.java
   M user/src/com/google/gwt/rpc/rebind/RpcProxyCreator.java
   M  
user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java
   M user/src/com/google/gwt/user/client/ui/Image.java
   M user/test/com/google/gwt/user/client/ui/ImageTest.java
   A user/test/com/google/gwt/user/client/ui/prettyPiccy.png



--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6325 committed - Update branch-info.txt.

2009-10-08 Thread codesite-noreply

Revision: 6325
Author: b...@google.com
Date: Thu Oct  8 10:35:28 2009
Log: Update branch-info.txt.

http://code.google.com/p/google-web-toolkit/source/detail?r=6325

Modified:
  /branches/snapshot-2009.10.06-r6307/branch-info.txt

===
--- /branches/snapshot-2009.10.06-r6307/branch-info.txt Wed Oct  7 08:02:09  
2009
+++ /branches/snapshot-2009.10.06-r6307/branch-info.txt Thu Oct  8 10:35:28  
2009
@@ -7,4 +7,6 @@


  Merges:
-(none)
+/trunk/@6323 was merged (r6324) into this branch
+  $ svn merge -c 6323  https://google-web-toolkit.googlecode.com/svn/trunk
+

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by myonceinalifetime:

I got debugging to work!

I created a new GWT web app with the Eclipse google plugin using GWT 2.0MS1  
as the SDK. This is what most likely solved my problem. Simply changing a  
project from GWT 1.7.1 to 2.0 must not be making all the necessary changes  
to the auto generated files to be properly compatible. Obviously this sort  
of thing will be ironed out for release.

Then I needed to first launch (not a debug launch) the newly created GWT  
web app (with the default app still intact). I tried this with a browser  
that did not have the plugin installed (FF3.5) and when navigating to the  
URL it auto directed me to the plugin install web page and after installing  
the plugin the web app was rendered correctly. Note that at this point I  
have not compiled the app so the plugin is indeed doing its job! The java  
code is what is interacting synchronously with the browser instead of the  
compiled JS!

Note that I had first attempted to launch the app in debug mode which gave  
me 3 errors related to the Appengine (com.google.apphosting.utils.jetty...  
yet eclipse could not resolve com.google.apphosting.utils.jetty) but those  
errors went away as soon as I did a non debug launch. In other words, the  
app was able to do a debug launch only after doing a regular launch.

With the debug launch successful I was able to hit a breakpoint in the  
onModuleLoad method of this default web app! I then copied all the required  
files from my previous project into this new one. Once again I was able to  
hit a breakpoint on the onModuleLoad method!

I am very excited to have this working!


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6324 committed - Merge r6323 into snapshot branch....

2009-10-08 Thread codesite-noreply

Revision: 6324
Author: b...@google.com
Date: Thu Oct  8 10:32:14 2009
Log: Merge r6323 into snapshot branch.
$ svn merge -c 6323  https://google-web-toolkit.googlecode.com/svn/trunk

http://code.google.com/p/google-web-toolkit/source/detail?r=6324

Modified:
  /branches/snapshot-2009.10.06-r6307
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/core/ext/ServletContainer.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/core/ext/ServletContainerLauncher.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/javac/ArtificialRescueChecker.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteSingleJsoImplDispatches.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerDisableAggressiveOptimization.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerEnableAssertions.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerOutDir.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDirOptional.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/src/com/google/gwt/dev/util/arg/ArgHandlerWorkDirRequired.java
   
/branches/snapshot-2009.10.06-r6307/dev/core/test/com/google/gwt/dev/AboutTest.java
  /branches/snapshot-2009.10.06-r6307/distro-source/linux/src/webAppCreator
  /branches/snapshot-2009.10.06-r6307/distro-source/mac/src/webAppCreator
   
/branches/snapshot-2009.10.06-r6307/distro-source/windows/src/webAppCreator.cmd
  /branches/snapshot-2009.10.06-r6307/eclipse/samples/Hello/Hello-gwtc.launch
  /branches/snapshot-2009.10.06-r6307/samples/dynatable/war/DynaTable.css
  /branches/snapshot-2009.10.06-r6307/samples/dynatable/war/DynaTable.html
  /branches/snapshot-2009.10.06-r6307/samples/hello/war/Hello.html
  /branches/snapshot-2009.10.06-r6307/samples/i18n/war/I18N.css
  /branches/snapshot-2009.10.06-r6307/samples/i18n/war/I18N.html
  /branches/snapshot-2009.10.06-r6307/samples/json/war/JSON.css
  /branches/snapshot-2009.10.06-r6307/samples/json/war/JSON.html
  /branches/snapshot-2009.10.06-r6307/samples/mail/war/Mail.css
  /branches/snapshot-2009.10.06-r6307/samples/mail/war/Mail.html
  /branches/snapshot-2009.10.06-r6307/samples/mail/war/gradient.gif
  /branches/snapshot-2009.10.06-r6307/samples/mail/war/leftCorner.gif
  /branches/snapshot-2009.10.06-r6307/samples/mail/war/rightCorner.gif
  /branches/snapshot-2009.10.06-r6307/samples/showcase/war/Showcase.html
  /branches/snapshot-2009.10.06-r6307/samples/simplerpc/war/SimpleRPC.css
  /branches/snapshot-2009.10.06-r6307/samples/simplerpc/war/SimpleRPC.html
  /branches/snapshot-2009.10.06-r6307/samples/simplexml/war/SimpleXML.css
  /branches/snapshot-2009.10.06-r6307/samples/simplexml/war/SimpleXML.html
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/core/client/HttpThrowableReporter.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/core/client/JsonUtils.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/dom/client/HandlesAllFocusEvents.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/dom/client/HandlesAllKeyEvents.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/dom/client/HandlesAllMouseEvents.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/dom/client/KeyCodes.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/dom/client/PrivateMap.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/logical/shared/HasValueChangeHandlers.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/logical/shared/ValueChangeEvent.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/logical/shared/ValueChangeHandler.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/shared/DefaultHandlerRegistration.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/shared/GwtEvent.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/event/shared/HandlerRegistration.java
  /branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources/client/ClientBundle.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources/ext/ClientBundleFields.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources/ext/ClientBundleRequirements.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources/rebind/context/InlineClientBundleGenerator.java
   
/branches/snapshot-2009.10.06-r6307/user/src/com/google/gwt/resources/rebind/context/StaticClientBundleGenerator.java
   
/branches/snapshot-2009.1

[gwt-contrib] [google-web-toolkit] r6323 committed - Various fixes for deRPC....

2009-10-08 Thread codesite-noreply

Revision: 6323
Author: b...@google.com
Date: Thu Oct  8 10:06:39 2009
Log: Various fixes for deRPC.
- If an array type is artificially rescued, it should rescue its component  
type.
- Don't generate bad RPC proxy code if the legacy type-elision flag is set.
- Correctly handle CustomFieldSerializers that write null Strings.

Patch by: bobv
Review by: jgw (desk)
http://code.google.com/p/google-web-toolkit/source/detail?r=6323

Modified:
  /trunk/dev/core/src/com/google/gwt/dev/javac/ArtificialRescueChecker.java
  /trunk/user/src/com/google/gwt/rpc/rebind/RpcProxyCreator.java
   
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java

===
---  
/trunk/dev/core/src/com/google/gwt/dev/javac/ArtificialRescueChecker.java   
 
Mon Jul  6 14:45:31 2009
+++  
/trunk/dev/core/src/com/google/gwt/dev/javac/ArtificialRescueChecker.java   
 
Thu Oct  8 10:06:39 2009
@@ -102,6 +102,15 @@
if (collectTypes) {
  referencedTypes = Lists.add(referencedTypes, className);
}
+
+  boolean isArray = false;
+  while (className.endsWith("[]")) {
+className = className.substring(0, className.length() - 2);
+if (collectTypes) {
+  referencedTypes = Lists.add(referencedTypes, className);
+}
+isArray = true;
+  }

if (!reportErrors) {
  // Nothing else to do
@@ -110,11 +119,6 @@

// Goal (2)
// Strip off any array-like extensions and just find base type
-  boolean isArray = false;
-  while (className.endsWith("[]")) {
-className = className.substring(0, className.length() - 2);
-isArray = true;
-  }

// Fix JSNI primitive type names to something JDT will understand
if (isArray && className.length() == 1) {
===
--- /trunk/user/src/com/google/gwt/rpc/rebind/RpcProxyCreator.java  Tue Jul 
 
21 14:50:34 2009
+++ /trunk/user/src/com/google/gwt/rpc/rebind/RpcProxyCreator.java  Thu Oct 
  
8 10:06:39 2009
@@ -111,6 +111,11 @@
  + ".create() : null;");
  srcWriter.println();
}
+
+  @Override
+  protected void generateStreamWriterOverride(SourceWriter srcWriter) {
+// Intentional no-op. Called if elideTypeNames is on, which is ignored
+  }

@Override
protected void generateTypeHandlers(TreeLogger logger, GeneratorContext  
ctx,
===
---  
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java

Mon Jul  6 16:17:17 2009
+++  
/trunk/user/src/com/google/gwt/rpc/server/CommandServerSerializationStreamReader.java

Thu Oct  8 10:06:39 2009
@@ -314,7 +314,7 @@
}

public String readString() throws SerializationException {
-return readNextCommand(StringValueCommand.class).getValue();
+return (String) readObject();
}

private  T readNextCommand(Class clazz)

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UiBinder in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by rj...@google.com:

Oh, and yes: UiBinder gets along just fine with MVP. One thing I want to  
start experimenting with is having binder instances injected by GIN, e.g.:

{{{
MyView extends Widget {
   public interface Binder extends UiBinder {}
   private static final Binder defaultBinder = GWT.create(Binder.class);

   public MyView() {
 this(defaultBinder);
   }

   @Inject
   public MyView(Binder binder) {
 binder.createAndBindUi(this);
   }
}
}}}

Although this will require making UiFields public, which is kind of gross.

Are you running into any particular problems?



For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UiBinder in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by rj...@google.com:

I agree on the DialogBox use case, and will try to make it work. Thanks for  
the workaround.


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6322 committed - Add better error handling for future protocol version where we support...

2009-10-08 Thread codesite-noreply

Revision: 6322
Author: j...@google.com
Date: Thu Oct  8 08:49:57 2009
Log: Add better error handling for future protocol version where we support
downloading the real plugin via a shim plugin.


http://code.google.com/p/google-web-toolkit/source/detail?r=6322

Modified:
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java

===
---  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
Tue Oct  6 15:59:35 2009
+++  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannel.java
   
Thu Oct  8 08:49:57 2009
@@ -157,7 +157,9 @@

  REQUEST_ICON(13),

-USER_AGENT_ICON(14);
+USER_AGENT_ICON(14),
+
+REQUEST_PLUGIN(15);

  private final int id;

===
---  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java
 
Wed Oct  7 09:24:31 2009
+++  
/changes/jat/abstractui/dev/oophm/src/com/google/gwt/dev/shell/BrowserChannelServer.java
 
Thu Oct  8 08:49:57 2009
@@ -294,6 +294,13 @@
  moduleName = loadModule.getModuleName();
  userAgent = loadModule.getUserAgent();
  break;
+  case REQUEST_PLUGIN:
+logger.log(TreeLogger.ERROR, "Plugin download not supported yet");
+// We can't clear the socket since we don't know how to interpret  
this
+// message yet -- it is only here now so we can give a better error
+// message with mixed versions once it is supported.
+new FatalErrorMessage(this, "Plugin download not  
supported").send();
+return;
default:
  logger.log(TreeLogger.ERROR, "Unexpected message type " + type
  + "; expecting CheckVersions");

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: GWT OOPHM Plugin for IE Windows Installer

2009-10-08 Thread jat

I have not looked at the code, only running the installer.

- OOPHM everywhere, never saw a mention of GWT Development Mode Plugin
- Icon looks lousy
   we have large ones available that can be scaled to the size you need

Other than that, looks good.


http://gwt-code-reviews.appspot.com/78801

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] [google-web-toolkit] r6321 committed - Edited wiki page through web user interface.

2009-10-08 Thread codesite-noreply

Revision: 6321
Author: tamplinjohn
Date: Thu Oct  8 07:14:59 2009
Log: Edited wiki page through web user interface.
http://code.google.com/p/google-web-toolkit/source/detail?r=6321

Modified:
  /wiki/UsingOOPHM.wiki

===
--- /wiki/UsingOOPHM.wiki   Sun Sep 27 10:12:08 2009
+++ /wiki/UsingOOPHM.wiki   Thu Oct  8 07:14:59 2009
@@ -17,13 +17,15 @@

* *Google Chrome*
_*Note: this is relatively untested, but appears to  
work.*_
-  If you are running the !DevChannel version of Google Chrome on Windows  
x86 ([http://dev.chromium.org/getting-involved/dev-channel instructions]  
for switching to !DevChannel), you can install the  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/npapi/prebuilt/gwtdmp.crx
  
GWT Chrome extension].  Note that performance is slower than the other  
browsers right now because the plugin runs in an isolated process, though  
we may be able to improve performance before the final release.  Also, you  
may get a "plugin unresponsive" warning which is annoying but harmless.
+  If you are running the !DevChannel version of Google Chrome on Windows  
x86
+([http://dev.chromium.org/getting-involved/dev-channel  
instructions] for switching to !DevChannel), you can install the  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/npapi/prebuilt/gwtdmp.crx
  
GWT Chrome extension].  Note that performance is slower than the other  
browsers right now because the plugin runs in an isolated process, though  
we may be able to improve performance before the final release.  Also, you  
may get a "plugin unresponsive" warning which is annoying but harmless.

* *Firefox*
_*Note: If you have previously installed an OOPHM  
plugin, you will need to uninstall or disable it first.*_
Install the appropriate XPI by clicking below while running Firefox:
  *  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/gwt-dmp-ff2.xpi
  
Firefox 2] (Mac PPC/x86, Linux x86/x86_64)
  *  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/gwt-dmp-ff3.xpi
  
Firefox 3] (Win x86, Mac PPC/x86, Linux x86/x86_64)
+  * If the above version doesn't work on Linux, you can try a  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/gwt-dmp-ff3+.xpi
  
version with alternate libraries], which is needed on at least Fedora 10  
(Linux x86/x86_64 only)
  *  
[http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/gwt-dmp-ff35.xpi
  
Firefox 3.5] (Win x86, Mac PPC/x86, Linux x86/x86_64)

If you are running multiple versions of Firefox, it is recommended to  
use different profiles for each version.

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by tamplinjohn:

What is the exact message it gives you when rejecting the addon?

I don't have an Ubuntu9 machine to test on, but you could try and see if  
the version with alternate libraries (needed for Fedora 10 at least) works:

http://google-web-toolkit.googlecode.com/svn/trunk/plugins/xpcom/prebuilt/gwt-dmp-ff3+.xpi


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread John Tamplin
On Thu, Oct 8, 2009 at 9:57 AM, Konstantin.Scheglov <
konstantin.scheg...@gmail.com> wrote:

>
>
>
> On 8 окт, 17:46, John Tamplin  wrote:
> >
> > >  FF 3.5.3 can not install plugin.
> > >  When I try to install extension, it goes further, but still fails
> > > with some deferred binding exception.
> >
> > Can you clarify what you mean here?  When you try and install the FF3.5
> > plugin from the Missing Plugin page, what happens?
> >
> > What is the deferred binding exception you get?
>
>   Here is exception (how it is copied from Swing) when I try Mail
> sample.
>  Hello sample works.
>
>
> 00:00:27,541 [ERROR] Unable to load module entry point class
> com.google.gwt.sample.mail.client.Mail (see associated exception for
> details)
> java.lang.RuntimeException: Deferred binding failed for
> 'com.google.gwt.sample.mail.client.Mail$Binder' (did you forget to
> inherit a required module?) at
> com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
> at com.google.gwt.core.client.GWT.create(GWT.java:98)   at
> com.google.gwt.sample.mail.client.Mail.(Mail.java:36)   at
> java.lang.Class.forName0(Native Method) at java.lang.Class.forName
> (Class.java:247)at
> com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
> (ModuleSpace.java:571)  at com.google.gwt.dev.shell.ModuleSpace.onLoad
> (ModuleSpace.java:348)  at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule
> (OophmSessionHandler.java:174)  at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> (BrowserChannelServer.java:391) at
> com.google.gwt.dev.shell.BrowserChannelServer.run
> (BrowserChannelServer.java:178) at
> java.lang.Thread.run(Thread.java:
> 619) Caused by: com.google.gwt.core.ext.UnableToCompleteException:
> (see previous log entries)  at
> com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:532)   at
> com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
> 409)at com.google.gwt.dev.shell.GWTBridgeImpl.create
> (GWTBridgeImpl.java:39) at com.google.gwt.core.client.GWT.create
> (GWT.java:98)   at com.google.gwt.sample.mail.client.Mail.
> (Mail.java:36)  at java.lang.Class.forName0(Native Method)  at
> java.lang.Class.forName(Class.java:247) at
> com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
> (ModuleSpace.java:571)  at com.google.gwt.dev.shell.ModuleSpace.onLoad
> (ModuleSpace.java:348)  at
> com.google.gwt.dev.shell.OophmSessionHandler.loadModule
> (OophmSessionHandler.java:174)  at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> (BrowserChannelServer.java:391) at
> com.google.gwt.dev.shell.BrowserChannelServer.run
> (BrowserChannelServer.java:178) at
> java.lang.Thread.run(Thread.java:
> 619)
>

Was there an earlier log message?  If you run with -logLevel DEBUG what is
the last message before this one?

How did you run the mail sample?  Does the Showcase sample have the same
problem?  What is the exact version of Firefox you are running?


> > Correct -- that is a 32-bit DLL and will not work with a 64-bit IE.  The
> > simple attempt at compiling the same thing in 64-bit mode (the
> oophm64.dll
> > listed below) does not work, and it will probably be a while before that
> can
> > be addressed.
>
>   I've downloaded
> http://google-web-toolkit.googlecode.com/svn/trunk/plugins/ie/prebuilt/oophm64.dll
> but "regsvr32 oophm64.dll" still fails because "Can not call
> DllRegisterServer", error code 0x80070005.
>
>
Yes, as mentioned above, it is known to not work and it will likely be a
while before that can be addressed.

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UiBinder in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by dygger:

BTW, I have found a workaround for the DialogBox problem.

At first I had to create a subclass for DialogBox implementing HasWidgets  
interface:

{{{
public class HasWidgetsDialogBox extends  
com.google.gwt.user.client.ui.DialogBox
 implements HasWidgets {
 @Override
 public void add(Widget w) {
 Widget widget = getWidget();
 if (widget != null && widget instanceof HasWidgets) {
 ((HasWidgets) getWidget()).add(w);
 } else {
 super.add(w);
 }
 }
}
}}}

Then goes my test Dialog (note it is the owner of its controls):

{{{
public class TestDialogBox extends HasWidgetsDialogBox {

 @UiTemplate("TestDialogBox.ui.xml")
 interface MyUiBinder extends UiBinder {
 }

 private static MyUiBinder uiBinder = GWT.create(MyUiBinder.class);

 @UiField
 Label labelTextToServer;
 @UiField
 Label labelServerResponse;
 @UiField
 Button buttonClose;

 public TestDialogBox() {
 uiBinder.createAndBindUi(this);
 }

 @UiFactory
 protected TestDialogBox createDialog() {
 return this;
 }

 @UiHandler("buttonClose")
 protected void doClose(ClickEvent event) {
 this.hide();
 }
}
}}}


And finally corresponding .ui.xml:
{{{

 
 
 
 Sending name to the server:
 
 
 
 
 Server replies:
 
 
 
 
 

}}}




For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread Konstantin.Scheglov



On 8 окт, 17:46, John Tamplin  wrote:
>
> >  FF 3.5.3 can not install plugin.
> >  When I try to install extension, it goes further, but still fails
> > with some deferred binding exception.
>
> Can you clarify what you mean here?  When you try and install the FF3.5
> plugin from the Missing Plugin page, what happens?
>
> What is the deferred binding exception you get?

  Here is exception (how it is copied from Swing) when I try Mail
sample.
  Hello sample works.


00:00:27,541 [ERROR] Unable to load module entry point class
com.google.gwt.sample.mail.client.Mail (see associated exception for
details)
java.lang.RuntimeException: Deferred binding failed for
'com.google.gwt.sample.mail.client.Mail$Binder' (did you forget to
inherit a required module?) at
com.google.gwt.dev.shell.GWTBridgeImpl.create(GWTBridgeImpl.java:43)
at com.google.gwt.core.client.GWT.create(GWT.java:98)   at
com.google.gwt.sample.mail.client.Mail.(Mail.java:36)   at
java.lang.Class.forName0(Native Method) at java.lang.Class.forName
(Class.java:247)at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
(ModuleSpace.java:571)  at com.google.gwt.dev.shell.ModuleSpace.onLoad
(ModuleSpace.java:348)  at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:174)  at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:391) at
com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:178) at java.lang.Thread.run(Thread.java:
619) Caused by: com.google.gwt.core.ext.UnableToCompleteException:
(see previous log entries)  at
com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:532)   at
com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate(ModuleSpace.java:
409)at com.google.gwt.dev.shell.GWTBridgeImpl.create
(GWTBridgeImpl.java:39) at com.google.gwt.core.client.GWT.create
(GWT.java:98)   at com.google.gwt.sample.mail.client.Mail.
(Mail.java:36)  at java.lang.Class.forName0(Native Method)  at
java.lang.Class.forName(Class.java:247) at
com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
(ModuleSpace.java:571)  at com.google.gwt.dev.shell.ModuleSpace.onLoad
(ModuleSpace.java:348)  at
com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:174)  at
com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:391) at
com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:178) at java.lang.Thread.run(Thread.java:
619)


>
> Are you running a special 64-bit build of Firefox?  The official builds are
> only 32-bit and that is all we support at the moment.

  No, I use 32-bit FireFox, just x64 OS.


>
>  oophm.dll just can not be registered, may be because of x64?
>
>
>
> Correct -- that is a 32-bit DLL and will not work with a 64-bit IE.  The
> simple attempt at compiling the same thing in 64-bit mode (the oophm64.dll
> listed below) does not work, and it will probably be a while before that can
> be addressed.

  I've downloaded 
http://google-web-toolkit.googlecode.com/svn/trunk/plugins/ie/prebuilt/oophm64.dll
but "regsvr32 oophm64.dll" still fails because "Can not call
DllRegisterServer", error code 0x80070005.

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UiBinder in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by dygger:

@jgw I think it makes sense to have view objects initialized from a .ui.xml  
file as a whole. Since `DialogBox` is a view, why do I have to describe  
dialog's content in xml and at the same time initialize dialog itself (set  
its caption, other view related properties like animationEnabled etc) in my  
code?

And more general question: I am trying to understand if it is possible to  
follow MVP pattern with UiBinder, e.g. can I follow practices described at  
Google I/O and in   
[http://blog.hivedevelopment.co.uk/2009/08/google-web-toolkit-gwt-mvp-example.html
  
this blog]?





For more information:
http://code.google.com/p/google-web-toolkit/wiki/UiBinder

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread John Tamplin
On Thu, Oct 8, 2009 at 6:23 AM, Konstantin.Scheglov

>  > * Changes to the distribution: Note that there's only one download,
> > and it's no longer platform-specific. You download the same zip file
> > for every development platform. This is made possible by the new
> > plugin approach used to implement development mode (see below). The
> > distribution file does not include the browser plugins themselves;
> > those are downloaded separately the first time you use development
> > mode in a browser that doesn't have the plugin installed.
>
>   Does not work for me on Vista x64.
>
>  FF 3.5.3 can not install plugin.
>  When I try to install extension, it goes further, but still fails
> with some deferred binding exception.
>

Can you clarify what you mean here?  When you try and install the FF3.5
plugin from the Missing Plugin page, what happens?

What is the deferred binding exception you get?

Are you running a special 64-bit build of Firefox?  The official builds are
only 32-bit and that is all we support at the moment.

 oophm.dll just can not be registered, may be because of x64?
>

Correct -- that is a 32-bit DLL and will not work with a 64-bit IE.  The
simple attempt at compiling the same thing in 64-bit mode (the oophm64.dll
listed below) does not work, and it will probably be a while before that can
be addressed.

-- 
John A. Tamplin
Software Engineer (GWT), Google

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread Sanjiv Jivan
The oophm.dll IE plugin does not work with IE 64 bit on Vista x64  but it
does work with IE 32 bit on Vista x64.
I had reported this (
http://code.google.com/p/google-web-toolkit/issues/detail?id=2410&can=5 )
and John Tamplin built a 64 bit version of the oophm dll.

https://google-web-toolkit.googlecode.com/svn/trunk/plugins/ie/prebuilt/oophm64.dll

Unfortunately
I temporarily do not have access to my x64 box so was unable to confirm if
oophm64.dll works with IE 64 bit. If you can verify it please add a note in
the above issue.

Sanjiv

On Thu, Oct 8, 2009 at 6:23 AM, Konstantin.Scheglov <
konstantin.scheg...@gmail.com> wrote:

>
>
>
> > * Changes to the distribution: Note that there's only one download,
> > and it's no longer platform-specific. You download the same zip file
> > for every development platform. This is made possible by the new
> > plugin approach used to implement development mode (see below). The
> > distribution file does not include the browser plugins themselves;
> > those are downloaded separately the first time you use development
> > mode in a browser that doesn't have the plugin installed.
>
>   Does not work for me on Vista x64.
>
>  FF 3.5.3 can not install plugin.
>  When I try to install extension, it goes further, but still fails
> with some deferred binding exception.
>
>  oophm.dll just can not be registered, may be because of x64?
>
>
> >
>

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Re: Announcing GWT 2.0 Milestone 1

2009-10-08 Thread Konstantin.Scheglov



> * Changes to the distribution: Note that there's only one download,
> and it's no longer platform-specific. You download the same zip file
> for every development platform. This is made possible by the new
> plugin approach used to implement development mode (see below). The
> distribution file does not include the browser plugins themselves;
> those are downloaded separately the first time you use development
> mode in a browser that doesn't have the plugin installed.

  Does not work for me on Vista x64.

  FF 3.5.3 can not install plugin.
  When I try to install extension, it goes further, but still fails
with some deferred binding exception.

  oophm.dll just can not be registered, may be because of x64?


--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



[gwt-contrib] Comment on UsingOOPHM in google-web-toolkit

2009-10-08 Thread codesite-noreply

Comment by martin.g...@gmail.com:

@elmacho: for me the plugin is not even installing - ubuntu 9.04, 64bit, ff  
3.0.14

it complains about being not for this version (which obviously is true ;) )

did you do anything else to get it working? i still don't get the tab in  
the debug mode when i start firefox with the url posted in the eclipse  
console.


For more information:
http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---