Plan for Official WebSocket Support?

2015-01-24 Thread Art Hsieh
Hi All,

I can't seem to find any plan regarding adding the official WebSocket 
support to GWT. I know there is at least one open source project (gwt-ws) 
exists, but I am just wondering if GWT is considering adding WebSocket 
support into next official release.

Thanks,
Art

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Adding tool tip to a hyperlink in GWT

2009-10-05 Thread ART

Hi All,
How can I add a tooltip to a hyperlink in GWT, I tried
link.setTitlehelp;
where link is my hyperlink, this did not help in my case.
Any tip is appreciated.
Thanks,
ART.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Clicking Anchor widget wrapping image from image bundle does nothing on IE

2009-10-02 Thread Art

Hello,

I have the image created by the image bundle like next:
AbstractImagePrototype jpNationFlagImagePrototype =
bounceAbsorberImageBundle.jpNationFlag();
I wrapped that by the Anchor widget like:
Anchor jpAnchor = new Anchor( jpNationFlagImagePrototype.getHTML
(), true, hrefStr + locale=ja_JP);

In the hosted mode or on IE7 (web mode), clicking on that Anchor
widget does nothing.
On FF 3.5 (web mode), clicking on that Anchor widget works as
expected: forwarding to the URL specified as the part of hrefStr +
locale=ja_JP above.

I see the differences in the permutation results for IE and FF. For
IE, img HTML tag has been wrapped by clipper tag like:
gwt:clipper style=overflow: hidden; width: 16px; height: 11px;
padding: 0px; zoom: 1img src='http://' onerror='if
(window.__gwt_transparentImgHandler)window.__gwt_transparentImgHandler
(this);else this.src=http://localhost:8080/bounceabsorber/
clear.cache.gif' style=filter:
progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://
localhost:8080/bounceabsorber/
CD45E40E45B278324279E1892614A969.cache.png',sizingMethod='crop');
margin-left: 0px; margin-top: 0px; border: none width=16 height=11
border='0'/gwt:clipper

When I intentionally extracted the img HTML tag and added the
extracted img HTML tag to the Anchor widget like below, the problem
went away: clicking on the Anchor widget worked to forward to the
intended URL as expected in the hosted mode or on IE7 (web mode).
Element imgElement = jpNationFlagImagePrototype.createElement
().getElementsByTagName( img).getItem( 0);
Anchor jpAnchor = new Anchor();
jpAnchor.getElement().appendChild( imgElement);
jpAnchor.setHref( hrefStr + locale=ja_JP);

I like to know if there will be any draw back for removing clipper tag
by the above way, in order to clicking on Anchor widget works on IE.

My environments are:
GWT 1.7.0
eclipse.buildId=I20090611-1540
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product

Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Clicking Anchor widget wrapping image from image bundle does nothing on IE

2009-10-02 Thread Art

Thomas,

Thank you for the info. I understood the issue. Those are the info I
searched by Google, and could not find.

As you suggested as the workaround, I used the ClickHandler way, since
I found that the secondary image from the ImageBundle was not shown
properly when I used the extracted img tag.
However, after I have read the info you provided, I thought that I
might be able to work around by covering the image from ImageBundle
with the custom transparent (image) layer, and put Anchor widget on
that transparent layer. I will give it try next time.

Regards



On Oct 2, 6:14 am, Thomas Broyer t.bro...@gmail.com wrote:
 On 2 oct, 13:07, Art art...@gmail.com wrote:

  Hello,

  I have the image created by the image bundle like next:
      AbstractImagePrototype jpNationFlagImagePrototype =
  bounceAbsorberImageBundle.jpNationFlag();
  I wrapped that by the Anchor widget like:
      Anchor jpAnchor = new Anchor( jpNationFlagImagePrototype.getHTML
  (), true, hrefStr + locale=ja_JP);

  In the hosted mode or on IE7 (web mode), clicking on that Anchor
  widget does nothing.

 Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=3080
 It's been reported nearly a year ago, but unfortunately it's hard to
 fix. The proposed fix is to completely rework ImageBundle (and the
 @sprite equivalent in 
 CssResource):http://code.google.com/p/google-web-toolkit/issues/detail?id=3588
 (the actual underlying issue is that in IE, the click event is eaten
 by the image and doesn't propagate up to the 
 anchor:http://code.google.com/p/google-web-toolkit/issues/detail?id=3951)

 The workaround is to use an Image with a ClickHandler and
 Window.Location.assign(...), or to not use an ImageBundle (use an
 image on its own)



  On FF 3.5 (web mode), clicking on that Anchor widget works as
  expected: forwarding to the URL specified as the part of hrefStr +
  locale=ja_JP above.

  I see the differences in the permutation results for IE and FF. For
  IE, img HTML tag has been wrapped by clipper tag like:
      gwt:clipper style=overflow: hidden; width: 16px; height: 11px;
  padding: 0px; zoom: 1img src='http://' onerror='if
  (window.__gwt_transparentImgHandler)window.__gwt_transparentImgHandler
  (this);else this.src=http://localhost:8080/bounceabsorber/
  clear.cache.gif' style=filter:
  progid:DXImageTransform.Microsoft.AlphaImageLoader(src='http://
  localhost:8080/bounceabsorber/
  CD45E40E45B278324279E1892614A969.cache.png',sizingMethod='crop');
  margin-left: 0px; margin-top: 0px; border: none width=16 height=11
  border='0'/gwt:clipper

  When I intentionally extracted the img HTML tag and added the
  extracted img HTML tag to the Anchor widget like below, the problem
  went away: clicking on the Anchor widget worked to forward to the
  intended URL as expected in the hosted mode or on IE7 (web mode).
      Element imgElement = jpNationFlagImagePrototype.createElement
  ().getElementsByTagName( img).getItem( 0);
      Anchor jpAnchor = new Anchor();
      jpAnchor.getElement().appendChild( imgElement);
      jpAnchor.setHref( hrefStr + locale=ja_JP);

  I like to know if there will be any draw back for removing clipper tag
  by the above way, in order to clicking on Anchor widget works on IE.

 Well, AFAICT, it'll only display as expected if your image is in the
 upper left corner of the generated bundle.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR

2009-08-27 Thread Art
)
          at
   com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument
   (CoreDOMImplementationImpl.java:268)

   Here's the Google gadget class (IGadgetExperiment2.java) I try to
   compile:
   package com.inetools.igadgetexperiment2.client;

   import com.google.gwt.event.dom.client.ClickEvent;
   import com.google.gwt.event.dom.client.ClickHandler;
   import com.google.gwt.gadgets.client.Gadget;
   import com.google.gwt.gadgets.client.UserPreferences;
   import com.google.gwt.gadgets.client.Gadget.ModulePrefs;
   import com.google.gwt.user.client.Window;
   import com.google.gwt.user.client.ui.Button;
   import com.google.gwt.user.client.ui.RootPanel;

   @ModulePrefs( title = iGoogle Gadget Experiement2, author = Art,
   author_email = atozof...@gmail.com)
   public class IGadgetExperiment2 extends GadgetUserPreferences {

         �...@override
          protected void init(UserPreferences preferences) {
              Button simpleButton = new Button(SimpleGadget);
              simpleButton.addClickHandler(
                          new ClickHandler() {
                                         �...@override
                                          public void onClick(ClickEvent 
   event) {
                                          Window.alert(Hello World!);
                                          }
                                  }
                          );
              RootPanel.get().add(simpleButton);
          }
   }

   And here's the IGadgetExperiment2.gwt.xml file:
   ?xml version=1.0 encoding=UTF-8?
   !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.0//
   EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
   source/core/src/gwt-module.dtd
   module rename-to='igadgetexperiment2'
    !-- Inherit the core Web Toolkit stuff.                        --
    inherits name='com.google.gwt.user.User'/

    !-- Inherit the default GWT style sheet.  You can change       --
    !-- the theme of your GWT application by uncommenting          --
    !-- any one of the following lines.                            --
    inherits name='com.google.gwt.user.theme.standard.Standard'/
    !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
    !-- inherits name='com.google.gwt.user.theme.dark.Dark'/     --

    !-- Other module inherits                                      --
          inherits name=com.google.gwt.gadgets.Gadgets /

    !-- Specify the app entry point class.                         --
    entry-point
   class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/
   /module

   gwt-gadgets-noredist.jar 
   fromhttp://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
   has been added as the library as well as GWT 1.7 SDK (and AppEngine
   1.2.2 SDK).

   Here's the web.xml:
   ?xml version=1.0 encoding=UTF-8?
   !DOCTYPE web-app
      PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
      http://java.sun.com/dtd/web-app_2_3.dtd;

   web-app

    !-- Servlets --

    !-- Default page to serve --
    welcome-file-list
      welcome-fileIGadgetExperiment2.html/welcome-file
    /welcome-file-list

   /web-app

   Environment:
   XP SP3
   Google Plugin for Eclipse 3.5 1.1.0.v200907291526
   eclipse.buildId=I20090611-1540
   java.version=1.6.0_13
   java.vendor=Sun Microsystems Inc.
   BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
   Framework arguments:  -product org.eclipse.epp.package.jee.product
   Command-line arguments:  -os win32 -ws win32 -arch x86 -product
   org.eclipse.epp.package.jee.product

  --
  Eric Z. Ayers - GWT Team - Atlanta, GA 
  USAhttp://code.google.com/webtoolkit/

 --
 Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to google-web-toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en
-~--~~~~--~~--~--~---



Re: .gwt-TreeItem-selected does not work?

2009-08-15 Thread Art

Vegard, could you make it work?

I faced the same issue, and now it's working.
These are what I did:

1. Create public folder in where *.gwt.xml file of your project
resides.
Let's say it's GwtTreeTest\src\com\gwt\experiment\public
2. Create .css file with background style rule in that public folder
So, create GwtTreeTest\src\com\gwt\experiment\public
\GwtTreeTestCss.css, and put the following settings in it:
.gwt-Tree .gwt-TreeItem-selected {
background:#DD;
}
3. Add the style element (which points the .css file your created at
the above step with src attribute) into the .gwt.xml file
In GwtTreeTest\src\com\gwt\experiment\GwtTreeTest.gwt.xml
stylesheet src=GoogleNewsExperiment1CSS.css /
4. Close and restart host mode.

Hope those steps help.

On Aug 6, 3:29 am, Vegard vegard.gilles...@gmail.com wrote:
 I have a GWT tree on my page. When a treeitem is clicked  (selected),
 its background-color gets light blue (I think the color code is
 #C3D9FF). This color is the default color on a selected item.

 I would like to change the background-color on a selected treeitem.

 In my css I have the following:

 .gwt-Tree .gwt-TreeItem-selected {
         background-color: #BB !important;
         text-decoration: underline;

 }

 But it does not seem to work. The selected treeitem gets underlined,
 but the background-color does not change. It is still the default
 color. Is this some kind of bug?

 -Vegard
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



GWT SuggestBox or MUltipleWordBox style changes!

2009-08-13 Thread ART

Hi All,
How can I change the font size or font-family inside a GWT
SuggestBox , I tried
MultiWordSuggestOracle multi  = null;
SuggestBoxtxtS   = null;

 multi = new MultiWordSuggestOracle();
txtS = new SuggestBox(multi);
txtS.setAnimationEnabled(true);
 txtS.setPopupStyleName(menubar);

where my  css class menubar has the attributes below:
.menubar
{
 background-color: #eff6ff;
   font-family: verdana, arial, Helvetica, sans-serif;
   color: #336699;
 font-size:6px;
   border: #8b9399 1px solid;
   padding-left: 8px;
   padding-right: 8px;
   padding-top: 5px;
   padding-bottom: 5px;

}

This does not decrease the fontsize.
Any help is appreciated.
thanks ,
ART


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR

2009-08-07 Thread Art

Eric, thank you for your reply.

The thing is that I encounter this issue by trying to work around the
Xerces class issue.
I had encountered the Xerces class issue with Google GWT Gadget
library file described at
http://groups.google.com/group/google-appengine-java/browse_frm/thread/145d950d2606bef7/d5c00a71468a08fb?hl=enq=Gears,+Gadget+API+libraries+giving+error+with+GWT#d5c00a71468a08fb.
Thereby, as I wrote, I picked up the gwt-gadgets-noredist.jar from
http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz,
which does not contain Xerces classes (And I confirmed that gwt-
gadgets-noredist.jar does not contain Xerces classes.)
So, I had good expectation of that it would compile without a problem.
But.. I got this issue.

Regards



On Aug 6, 7:51 pm, Eric Ayers zun...@google.com wrote:
 This error I've seen caused by a conflict in Xerces distributed with
 gwt-gadget.jar.  Try using the gwt-gadget-noredist.jar file.  It
 doesn't bundle the Xerces library.



 On Thu, Aug 6, 2009 at 10:36 PM, Artart...@gmail.com wrote:

  Hello,

  I'm blocked from trying to have fun with Google gadget and GWT. ;-)
  I got the exception like below in trying to compile a simple Google
  gadget on Eclipse (Galileo).
  I highly appreciate if someone can give me the crew of this cause.
  Regards.

  Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2
    Computing all possible rebind results for
  'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
       Rebinding
  com.inetools.igadgetexperiment2.client.IGadgetExperiment2
          Invoking generate-with
  class='com.google.gwt.gadgets.rebind.GadgetGenerator'/
             [ERROR] Generator
  'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an
  exception while rebinding
  'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
  org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
  or change an object in a way which is incorrect with regard to
  namespaces.
         at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName
  (ElementNSImpl.java:105)
         at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.init
  (ElementNSImpl.java:80)
         at
  com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS
  (CoreDocumentImpl.java:2084)
         at
  com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument
  (CoreDOMImplementationImpl.java:268)

  Here's the Google gadget class (IGadgetExperiment2.java) I try to
  compile:
  package com.inetools.igadgetexperiment2.client;

  import com.google.gwt.event.dom.client.ClickEvent;
  import com.google.gwt.event.dom.client.ClickHandler;
  import com.google.gwt.gadgets.client.Gadget;
  import com.google.gwt.gadgets.client.UserPreferences;
  import com.google.gwt.gadgets.client.Gadget.ModulePrefs;
  import com.google.gwt.user.client.Window;
  import com.google.gwt.user.client.ui.Button;
  import com.google.gwt.user.client.ui.RootPanel;

  @ModulePrefs( title = iGoogle Gadget Experiement2, author = Art,
  author_email = atozof...@gmail.com)
  public class IGadgetExperiment2 extends GadgetUserPreferences {

        �...@override
         protected void init(UserPreferences preferences) {
             Button simpleButton = new Button(SimpleGadget);
             simpleButton.addClickHandler(
                         new ClickHandler() {
                                        �...@override
                                         public void onClick(ClickEvent 
  event) {
                                         Window.alert(Hello World!);
                                         }
                                 }
                         );
             RootPanel.get().add(simpleButton);
         }
  }

  And here's the IGadgetExperiment2.gwt.xml file:
  ?xml version=1.0 encoding=UTF-8?
  !DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.0//
  EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
  source/core/src/gwt-module.dtd
  module rename-to='igadgetexperiment2'
   !-- Inherit the core Web Toolkit stuff.                        --
   inherits name='com.google.gwt.user.User'/

   !-- Inherit the default GWT style sheet.  You can change       --
   !-- the theme of your GWT application by uncommenting          --
   !-- any one of the following lines.                            --
   inherits name='com.google.gwt.user.theme.standard.Standard'/
   !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
   !-- inherits name='com.google.gwt.user.theme.dark.Dark'/     --

   !-- Other module inherits                                      --
         inherits name=com.google.gwt.gadgets.Gadgets /

   !-- Specify the app entry point class.                         --
   entry-point
  class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/
  /module

  gwt-gadgets-noredist.jar 
  fromhttp://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
  has been added

Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR

2009-08-06 Thread Art

Hello,

I'm blocked from trying to have fun with Google gadget and GWT. ;-)
I got the exception like below in trying to compile a simple Google
gadget on Eclipse (Galileo).
I highly appreciate if someone can give me the crew of this cause.
Regards.

Compiling module com.inetools.igadgetexperiment2.IGadgetExperiment2
   Computing all possible rebind results for
'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
  Rebinding
com.inetools.igadgetexperiment2.client.IGadgetExperiment2
 Invoking generate-with
class='com.google.gwt.gadgets.rebind.GadgetGenerator'/
[ERROR] Generator
'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an
exception while rebinding
'com.inetools.igadgetexperiment2.client.IGadgetExperiment2'
org.w3c.dom.DOMException: NAMESPACE_ERR: An attempt is made to create
or change an object in a way which is incorrect with regard to
namespaces.
at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.setName
(ElementNSImpl.java:105)
at com.sun.org.apache.xerces.internal.dom.ElementNSImpl.init
(ElementNSImpl.java:80)
at
com.sun.org.apache.xerces.internal.dom.CoreDocumentImpl.createElementNS
(CoreDocumentImpl.java:2084)
at
com.sun.org.apache.xerces.internal.dom.CoreDOMImplementationImpl.createDocument
(CoreDOMImplementationImpl.java:268)

Here's the Google gadget class (IGadgetExperiment2.java) I try to
compile:
package com.inetools.igadgetexperiment2.client;

import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.gadgets.client.Gadget;
import com.google.gwt.gadgets.client.UserPreferences;
import com.google.gwt.gadgets.client.Gadget.ModulePrefs;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.RootPanel;

@ModulePrefs( title = iGoogle Gadget Experiement2, author = Art,
author_email = atozof...@gmail.com)
public class IGadgetExperiment2 extends GadgetUserPreferences {

@Override
protected void init(UserPreferences preferences) {
Button simpleButton = new Button(SimpleGadget);
simpleButton.addClickHandler(
new ClickHandler() {
@Override
public void onClick(ClickEvent event) {
Window.alert(Hello World!);
}
}
);
RootPanel.get().add(simpleButton);
}
}

And here's the IGadgetExperiment2.gwt.xml file:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE module PUBLIC -//Google Inc.//DTD Google Web Toolkit 1.7.0//
EN http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
source/core/src/gwt-module.dtd
module rename-to='igadgetexperiment2'
  !-- Inherit the core Web Toolkit stuff.--
  inherits name='com.google.gwt.user.User'/

  !-- Inherit the default GWT style sheet.  You can change   --
  !-- the theme of your GWT application by uncommenting  --
  !-- any one of the following lines.--
  inherits name='com.google.gwt.user.theme.standard.Standard'/
  !-- inherits name='com.google.gwt.user.theme.chrome.Chrome'/ --
  !-- inherits name='com.google.gwt.user.theme.dark.Dark'/ --

  !-- Other module inherits  --
inherits name=com.google.gwt.gadgets.Gadgets /

  !-- Specify the app entry point class. --
  entry-point
class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/
/module

gwt-gadgets-noredist.jar from 
http://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
has been added as the library as well as GWT 1.7 SDK (and AppEngine
1.2.2 SDK).

Here's the web.xml:
?xml version=1.0 encoding=UTF-8?
!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;

web-app

  !-- Servlets --

  !-- Default page to serve --
  welcome-file-list
welcome-fileIGadgetExperiment2.html/welcome-file
  /welcome-file-list

/web-app


Environment:
XP SP3
Google Plugin for Eclipse 3.5 1.1.0.v200907291526
eclipse.buildId=I20090611-1540
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com

Re: gwtSetup is not executed

2009-08-04 Thread Art

Thanks Daniel for pointing out.
It was stupid careless simple mistake. Feel shame to bother everyone.
Sorry.

On Aug 4, 5:16 am, Daniel Wellman etl...@gmail.com wrote:
 It looks like your method's capitalization is wrong - you want your
 method to be called gwtSetUp (with a capital 'u').  If you are using
 Java 5 or 6 then using an @Override annotation would have given you a
 compiler error, since your gwtSetup method did not override getSetUp.

 Dan

 On Aug 3, 9:08 pm, Art art...@gmail.com wrote:

  By overriding the gwtSetup method (http://google-web-
  toolkit.googlecode.com/svn/javadoc/1.6/index.html?overview-
  summary.html), I tried to do prep before each test execution. However,
  gwtSetup has never been executed before test execution.
  I feel strange that I could not to find any discussion about such
  simple issue anywhere. Is this happening only me?

  Here's the simple test case as an example:
  package com.appspot.inetools.newsfetcher.client;

  import com.google.gwt.junit.client.GWTTestCase;

  /**
   * GWT JUnit tests must extend GWTTestCase.
   */
  public class ValidaterExecuterTest extends GWTTestCase {

    /**
     * Must refer to a valid module that sources this class.
     */
    public String getModuleName() {
      return com.appspot.inetools.newsfetcher.NewsFetcher;
    }

    protected boolean gwtSetupFlag = false;
    protected void gwtSetup() throws Exception {
            super.gwtSetUp();
            gwtSetupFlag = true;
            //fail( gwtSetup has been called);
    }

    /**
     * Add as many tests as you like.
     */
    public void testSimple() {
      assertTrue( gwtSetupFlag);
    }

  }

  I launch that test by ValidaterExecuterTest-hosted.launch file on
  Eclipse (Galileo or Ganymede).
  Expected it to pass, but it fails.

  Environment info:
  x86 XP SP 3
  eclipse.buildId=I20090611-1540
  (Repro on Ganymede too)
  java.version=1.6.0_13
  java.vendor=Sun Microsystems Inc.
  BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
  Framework arguments:  -product org.eclipse.epp.package.jee.product
  Command-line arguments:  -os win32 -ws win32 -arch x86 -product
  org.eclipse.epp.package.jee.product
  GWT 1.7.0
  JUnit3: plugins\org.junit_3.8.2.v20090203-1005\junit.jar

  I have been currently working around by putting initialization method
  at the beginning of each tests. It's tedious. I like to avoid it. If
  someone can provide any info about this issue, I highly appreciate it.

  Regards
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



gwtSetup is not executed

2009-08-03 Thread Art

By overriding the gwtSetup method (http://google-web-
toolkit.googlecode.com/svn/javadoc/1.6/index.html?overview-
summary.html), I tried to do prep before each test execution. However,
gwtSetup has never been executed before test execution.
I feel strange that I could not to find any discussion about such
simple issue anywhere. Is this happening only me?

Here's the simple test case as an example:
package com.appspot.inetools.newsfetcher.client;

import com.google.gwt.junit.client.GWTTestCase;

/**
 * GWT JUnit tests must extend GWTTestCase.
 */
public class ValidaterExecuterTest extends GWTTestCase {

  /**
   * Must refer to a valid module that sources this class.
   */
  public String getModuleName() {
return com.appspot.inetools.newsfetcher.NewsFetcher;
  }

  protected boolean gwtSetupFlag = false;
  protected void gwtSetup() throws Exception {
  super.gwtSetUp();
  gwtSetupFlag = true;
  //fail( gwtSetup has been called);
  }

  /**
   * Add as many tests as you like.
   */
  public void testSimple() {
assertTrue( gwtSetupFlag);
  }

}

I launch that test by ValidaterExecuterTest-hosted.launch file on
Eclipse (Galileo or Ganymede).
Expected it to pass, but it fails.

Environment info:
x86 XP SP 3
eclipse.buildId=I20090611-1540
(Repro on Ganymede too)
java.version=1.6.0_13
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product
GWT 1.7.0
JUnit3: plugins\org.junit_3.8.2.v20090203-1005\junit.jar

I have been currently working around by putting initialization method
at the beginning of each tests. It's tedious. I like to avoid it. If
someone can provide any info about this issue, I highly appreciate it.

Regards

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-24 Thread ART

thanks Mike.it woked.
Ann.

On Nov 21, 10:17 am, ART [EMAIL PROTECTED] wrote:
 Hi,
 How can I add tooltips to images in an ImageBundle using only GWT.Some
 code snippets please.
 thanks,
 Anitha.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-24 Thread ART

thanks Mike.It worked.
Ann.

On Nov 22, 2:27 pm, Thomas Broyer [EMAIL PROTECTED] wrote:
 On 22 nov, 13:57, ART [EMAIL PROTECTED] wrote:

  The below code only can set one tooltip t o th imagae ,i have to set
  for each case one tooltip.i hope it is clear.Any way to do this?

 How about the following?

  AbstractPrototpeImage img;

 String title;

  int num=Integer.parseInt(name);

  if (cloType.endsWith(h){
  switch(num)
  {
  case0:
  img =images.h_0();

 title = h_0;

  break;
  case1:
  img =images.h_1();

 title = h_1;

  break;
  case2:
  img =images.h_2();

 title = h_2;

  break;

  case3:
  img =images.h_3();

 title = h_3;

  break;

  case4:
  img =images.h_4();

 title = h_4;

  break;

  default:
  img=images.e_1();

 title = e_1;

  }

  final Image imgh=img.createImage();

 imgh.setTitle(title);



  return imgh;

  }- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Add tooltips to images in an ImageBundle!

2008-11-22 Thread ART

Thanks Mike. My situation I have abstractPrototypeImage img and it has
5 prototype depeding on different conditions and I ave to add tooltip
to each and i am creating the image after all conditions.

The below code only can set one tooltip t o th imagae ,i have to set
for each case one tooltip.i hope it is clear.Any way to do this?

For example
AbstractPrototpeImage img;
int num=Integer.parseInt(name);

if (cloType.endsWith(h){
switch(num)
{
case0:
img =images.h_0();
break;
case1:
img =images.h_1();
break;
case2:
img =images.h_2();
break;

case3:
img =images.h_3();
break;

case4:
img =images.h_4();
break;

default:
img=images.e_1();



}
final Image imgh=img.createImage();
imgh.setTitle();
return imgh;
}

Thanks,
Ann.

On Nov 21, 12:40 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
 private XYZImageBundle Images = (XYZImageBundle)GWT.create
 (XYZImageBundle.class);
 private Image logo= Images.XYZLogo().createImage();
 logo.setTitle(Click here to return to main screen);

 Straight out of my code in production, XYZ substituted for the real
 three letter acronym.  Also straight out of the book

 On Nov 21, 8:17 am, ART [EMAIL PROTECTED] wrote:



  Hi,
  How can I add tooltips to images in an ImageBundle using only GWT.Some
  code snippets please.
  thanks,
  Anitha.- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SmartGWT 1.0 Released

2008-11-22 Thread ART

This looks cool.
Ann.

On Nov 18, 9:50 am, Sanjiv Jivan [EMAIL PROTECTED] wrote:
 Hi all,I have just released SmartGWT 1.0.

 Here is the release announcement 
 :http://www.jroller.com/sjivan/entry/smartgwt_1_0_released

 Google Code Project Page :http://code.google.com/p/smartgwt/

 Showcase Demo :http://www.smartclient.com/smartgwt/showcase/

 Javadocs :http://www.smartclient.com/smartgwt/javadoc/

 SmartGWT uses the new GWT 1.6 event API's which is really neat and works
 great.

 Seehttp://code.google.com/p/google-web-toolkit-incubator/wiki/ProposedEv...

 Thanks,
 Sanjiv
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Add tooltips to images in an ImageBundle!

2008-11-21 Thread ART

Hi,
How can I add tooltips to images in an ImageBundle using only GWT.Some
code snippets please.
thanks,
Anitha.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---