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.setTitle"help";
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
-~--~~~~--~~--~--~---



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  wrote:
> On 2 oct, 13:07, Art  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:
> >      > border='0'>
>
> > 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
-~--~~~~--~~--~--~---



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:


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: Cannot compile gadget: GadgetGenerator threw org.w3c.dom.DOMException: NAMESPACE_ERR

2009-08-27 Thread Art

Thank you for your reply again, Eric.

I looked at the generateGadgetManifest method (line 261 in
http://www.google.com/codesearch/p?hl=en&sa=N&cd=1&ct=rc#ow6Lmd7dcZY/trunk/gadgets/gadgets/src/com/google/gwt/gadgets/rebind/GadgetGenerator.java&q=generateGadgetManifest%20package:http://gwt-google-apis\.googlecode\.com),
and I could repro this with really simple regular Java project (not
GWT project) like below copied code. So, no GWT library (and, of
cause, no AppEngine library) in class path.

public static void main(String[] args) {
try {
org.w3c.dom.bootstrap.DOMImplementationRegistry 
registry =
org.w3c.dom.bootstrap.DOMImplementationRegistry.newInstance();
org.w3c.dom.DOMImplementation impl = 
registry.getDOMImplementation
("Core 3.0");
org.w3c.dom.Document d = impl.createDocument(null, 
null, null);
}
catch( Exception exception) {
exception.printStackTrace();
}
}

When I run it, I got the same exception like below at the statement,
"org.w3c.dom.Document d = impl.createDocument(null, null, null);":
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.
(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)
at
com.myexperiment.domimplementationregistrytrace.DOMImplementationRegistryTrace.main
(DOMImplementationRegistryTrace.java:113)

As I wrote at the beginning of this thread, my environment is (x86)
Sun JDK 1.6.0_13.
The rt.jar in the JRE lib folder of that JDK contains
com.sun.org.apache.xerces.internal.dom package. Mater of the fact, JDK
1.5's rt.jar also contains com.sun.org.apache.xerces.internal.dom
package.
I don't know how you guys have being doing not to hit this. Do you set
something to class loader?

Regards

On Aug 7, 5:59 pm, Eric Ayers  wrote:
> I'm not sure why this would fix the problem you're seeing, but have
> you tried rebuilding the gadgets distribution from SVN trunk?  I think
> if you get past this problem, you're doing to find another one since
> you are using GWT 1.6:
>
> See issue 275:
>
> http://code.google.com/p/gwt-google-apis/issues/detail?id=275
>
>
>
> On Fri, Aug 7, 2009 at 8:31 PM, Art wrote:
>
> > 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/threa
> > 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  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, Art 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  >> > class='com.google.gwt.gadgets.rebind.GadgetGenerator'/>
> >> >            [ERROR] Generator
> >> > 'com.google.gwt.gadgets.rebind.GadgetGenerator' threw threw an
> >> > exception

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

4. Close and restart host mode.

Hope those steps help.

On Aug 6, 3:29 am, Vegard  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=en&q=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  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, Art 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  > 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.
> > (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 Gadget {
>
> >       �...@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:
> > 
> >  > EN" "http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
> > source/core/src/gwt-module.dtd">
> > 
> >  
> >  
>
> >  
> >  
> >  
> >  
> >  
> >  
>
> >  
> >        
>
> >  
> >   > class='com.inetools.igadgetexperiment2.client.IGadgetExperiment2'/>
> > 
>
> > gwt-gadgets-noredist.jar 
> > fromhttp://gwt-google-apis.googlecode.com/files/gwt-gadgets-1.0.3.tar.gz
> > has be

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 
[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.
(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 Gadget {

@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:

http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-
source/core/src/gwt-module.dtd">

  
  

  
  
  
  
  
  

  


  
  


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:

http://java.sun.com/dtd/web-app_2_3.dtd";>



  

  
  
IGadgetExperiment2.html
  




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/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



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  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  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 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-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: 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
-~--~~~~--~~--~--~---



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
-~--~~~~--~~--~--~---



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
-~--~~~~--~~--~--~---