GWT performance

2009-09-01 Thread kristian

Hello All, i am a newbie that want to try to build a web application
using GWT, but i heard from some of my colleague that GWT has some
issue with its performance (reliability, load slowly). So, is there
anyone can enlighten me? Thanks.

--~--~-~--~~~---~--~~
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: New Windows Update Causing Hosted Mode Failure - GWT 1.5

2009-09-01 Thread DuoCentillion

Nevermind.  After a proper reset, it works fine again.  Half installed
Windows Updates can be fatal to GWT I guess.

On Aug 31, 10:18 pm, Joseph M  wrote:
> Has anyone experienced a strange Windows or IE security error when
> trying to start their GWT hosted mode (I am still using GWT 1.5).
> Instead of hosted mode starting normally I get a Windows Blue Shield
> Security Question whether to Open or Save the html.  Save tries to
> open the same URL in Firefox which fails because the Hosted Mode
> Server is now not starting properly.  "Save" option is equally
> unhelpful.  Has anyone else experienced this?  I am running Win 2003
> Server Datacenter edition.  Any advice?
--~--~-~--~~~---~--~~
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: Accessing CouchDB from GWT using JCouchDB library

2009-09-01 Thread Arthur Kalmenson

Why don't you do the processing on the server side? Just make an RPC
to the server and let it do the heavy lifting in communicating with
CouchDB.

--
Arthur Kalmenson



On Mon, Aug 24, 2009 at 7:54 AM, Andrius Juozapaitis wrote:
>
>  Hey,
>
> I've been toying around with the idea of using CouchDB [1] as a back-
> end store for my GWT applications, as it seems like a very good match
> - you get a flexible document structure, and easy mapping of CouchDB
> documents to Java domain objects using simple annotations [2]. I also
> use Spring framework in my application layer.
> The problem I have is that a number of JCouchDB [3] library's helper
> classes, i.e., the ones that are used to return collections of
> documents with paging properties aren't serializable from GWT point of
> view, as they contain Object references. If I understand correctly, I
> can substitute the implementation of these classes by using a module
> descriptors, but I'm kinda lost here, because my new implementation
> doesn't seem to be picked up by the GWT compiler. I guess I could just
> rewrite the library, as the license permits it, but it's kinda work in
> progress, so I'd hate to have to maintain a separate branch by myself.
> I have the following module descriptor:
>
> 
> jcouchdb.gwt.xml
>        "http://google-web-toolkit.googlecode.com/svn/releases/1.7/
> distro-source/core/src/gwt-module.dtd">
> 
>  
>    casesensitive="false"/>
>
>   
>       
>        ... skipped ...
>       
>       
>
>       
>       
>
>   
>   
>       
>       
>       
>       
>   
>
> 
>
> and my application module is as follows:
> 
> 
>
>   
>   
>
>   
>  ... skipped ...
> 
>
> 
>
>
> Any ideas what I am doing wrong? Any sample code to refer to? I did
> read the module development guide [4], but so far, no luck. I could
> also upload my project somewhere, it uses maven and is pretty much
> self contained, let me know if it's a good idea.
>
> Thanks in advance,
> Andrius
>
> [1] http://couchdb.apache.org/
> [2] http://code.google.com/p/jcouchdb/wiki/Tutorial
> [3] http://code.google.com/p/jcouchdb/
> [4] 
> http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html#DevGuideModules
>
> >
>

--~--~-~--~~~---~--~~
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: Catching Hyperlinks before they are executed.

2009-09-01 Thread Chris Bailey

OK here is the soluction I came up with:

Event.addNativePreviewHandler(new Event.NativePreviewHandler() {
@Override
public void onPreviewNativeEvent(NativePreviewEvent 
event) {
if (event.getTypeInt() == Event.ONCLICK) {


// do something with the keycode
// 
doSomething(event.getNativeEvent().getKeyCode());


if(com.google.gwt.dom.client.Element.is(event.getNativeEvent
().getEventTarget())){
Element targetElement = 
(Element) Element.as(event.getNativeEvent
().getEventTarget());

if("a".equalsIgnoreCase(getTagName(targetElement))) {
//String hostURL = 
GWT.getHostPageBaseURL();

String href = 
DOM.getElementAttribute
((com.google.gwt.user.client.Element) targetElement, "href");

//
check href against hostURL to see if the link is realitive or absolute
then do whatever you want.
//event.cancel();
}
}
}
}
});

__

native String getTagName(Element element)
/*-{
return element.tagName;
}-*/;



On Aug 31, 3:36 pm, Chris Bailey  wrote:
> I'm working on a social type site which I will make different versions
> depending on the device (mobile, desktop, etc...) and I want all the
> links to be just standard href hyperlinks. I know it's possible but
> how would you in GWT check a hyperlink before it is executed??
>
> My Goal is to check to see if the link is realitive then if it is I
> can just run my own function that will not change the location of the
> user's page but instead get the data the link is pointing to and parse
> it. If it's not a realitive link I will assume the person is trying to
> get off the page and either (based on user settings) change the whole
> page to that link or open a new window of that link.
--~--~-~--~~~---~--~~
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: linux & servers

2009-09-01 Thread Jeff Chimene

On 09/01/2009 03:37 PM, bcw wrote:
> 
> 
> 
> On Sep 2, 4:08 am, Jeff Chimene  wrote:
>> On 08/31/2009 11:36 PM, bcw wrote:
> 
>>> I'm designing an app that will use a browser (FireFox or Chrome when
>>> it's available) to provide the UI, and GWT for the development, but it
>>> won't be connecting to a remote server - it will serve personal data
>>> off the user's own system.
>>
>> Well, none of these questions are really GWT-related. Any further
>> discussion of this topic should be done off-list.
> 
> Ah...  For all I know, GWT has some facility to support this.  It was
> worth asking to find out.  As well, there might be some other approach
> or work-around to support this, and I'd want to know about the
> interactions between that approach and GWT.  It wasn't obvious from
> what I've read so far, but then I'm just getting into it.
> 
> 
>> You can call shared libraries from Firefox JavaScript.
> 
> I haven't read everything yet, but I haven't seen anything to suggest
> this.  Instead, I've read the suggestion to use RPC, thus leading to
> the 'server collision' questions.

https://developer.mozilla.org/en/XPCOM


Seriously, the rest of this discussion should be off list.

--~--~-~--~~~---~--~~
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: linux & servers

2009-09-01 Thread bcw

To answer your last question first, I want to learn.

I write Java at work.  I've done SOA and Swing.  The world is moving
to Web 2 (or already has) and I want to as well.

So, I want a project that gets me into that heavily.  With Google OS
coming, I see the browser reinforced as the place to be.  It already
can host all the multimedia capability I could want, and I don't have
to assemble it on top of my own custom framework - I just have to
learn to use it.  Why reinvent the wheel another time?

I have a system library that does a simple computation.  I send it a
string, and it returns a computed string.  That provide a good basis
for figuring out how to deal with the issue of getting local
facilities (such as Octave, Macsyma, or legacy AutoCAD running in
WINE) into the browser space.

Some local programs provide server solutions, and some don't.  I'm
looking at a simple example that doesn't, to learn how to deal with
that.

On Sep 2, 9:12 am, David Given  wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> bcw wrote:
>
> [...]
>
> > Those browsers run javascript without help, but I also want to be able
> > to access some shared system library functions on my linux box for
> > computations.
>
> > Is there a way to do that from a browser without an intervening
> > server?

[...]

> The longer answer is probably not. Most web browsers provide some
> feature where Javascript can call out to host services; for very good
> security reasons this is disabled most of the time.

I have the thought that a FireFox plug-in might allow access.  I'll
want to learn about the security issues along the way.

The other approach I've seen is RPC, which means a local server, which
leads to the 'server collision' question.  One well-meaning response
I've received suggested forcing a Tomcat install and assigning a
'random port'.  That doesn't mean there won't be a collision -
everyone is going to be doing this in the near future.  I was hoping a
more definitive approach had been worked out by now...


> Most of Firefox, for
> example, is written in Javascript using these services. How precisely to
> get at these functions varies from browser to browser.
>
> The even longer answer is maybe, provided you're willing to use some
> third-party technology to provide the interface between Javascript and
> the system functions. For example, a Java applet, Flash plugin, Firefox
> extension, ActiveX control... of course, doing it this way rather
> negates any advantage to using GWT.

I don't agree.  GWT still allows me to write OO architecture, gives me
easy access to layout facilities, etc.  The browser itself gives me
substantial support for multimedia and plugins for different data
formats.

Unless I don't understand something...?


Ultimately, I'm writing a PIM (Personal Information Manager) that
leverages all the online applications, since we're living our lives on-
line.  But I also want to be able to access selected local computing
resources that a user may have invested in.  Some people want to drag-
and-drop statistical analysis streams their colleagues have published
into their own PIM - and have them passed through their locally-
assembled analysis tools for processing.

Yes, it can be done unsafely.  Can it be done safely?  How do I do
that?

This first very simple example will get me started on learning and
building.

Thanks for the information.  I would welcome any more pointers,
thoughts, search phrases I haven't thought of yet, etc.

Cheers,
bcw

--~--~-~--~~~---~--~~
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: mocking HasWidgets interface

2009-09-01 Thread Davis Ford

> Hi Thomas -- my test is a pure JUnit test -- now a GwtUnitTest.

s/now/not/

--~--~-~--~~~---~--~~
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: mocking HasWidgets interface

2009-09-01 Thread Davis Ford

Hi Thomas -- my test is a pure JUnit test -- now a GwtUnitTest.

HasWidgets is an interface -- so the piece I am missing is how/why
EasyMock.createMock(HasWidgets.class) can somehow be instantiating
GWT.create() ?  I checked and double-checked the package namespace,
and it is definitely referencing an interface.

I never call GWT.create( ) in any of the code I am testing or the test
code itself.

To work around this, I just did this:

public MockHasWidgets implements HasWidgets {

   etc...
}

and use new MockHasWidgets() in my test cases.

On Tue, Sep 1, 2009 at 6:09 PM, Thomas Broyer wrote:
>
>
>
> On 1 sep, 19:48, davis  wrote:
>> As far as I can tell, this should work:
>>
>> HasWidgets mockHasWidgets = org.easymock.EasyMock.createMock
>> (HasWidgets.class);
>>
>> since HasWidgets is an 
>> interface:http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html
>>
>> ...but if you execute this, it promptly throws:
>>
>> java.lang.UnsupportedOperationException: ERROR: GWT.create() is only
>> usable in client code!  It cannot be called, for example, from server
>> code.  If you are running a unit test, check that your test case
>> extends GWTTestCase and that GWT.create() is not called from within an
>> initializer or constructor.
>>
>> This usually happens when you execute any code in standard JUnit tests
>> that end up calling GWT.create( ) -- but this is an interface...what
>> am I missing here?
>
> EasyMock is only usable in pure Java, i.e. (to make it short) not in a
> GWTTestCase. If your code ultimately depends on GWT.create() (which
> EasyMock does not!), you can use GWTMockUtilities to make GWT.create()
> work (and simply return null).
>
> In a word, your GWT.create() issue is unrelated to the EasyMock line
> you quoted.
> >

--~--~-~--~~~---~--~~
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: GWTTestCase not running?

2009-09-01 Thread charlie
None of the test methods get called, I'm sysout'ing everywhere and stepping
it through a debugger, it isn't being run at all.  And I notice the output
never says it gets run, only compiled.

Can you give me an example of one of your GWTTestCase's ?

On Tue, Sep 1, 2009 at 1:48 AM, Mat Gessel  wrote:

>
> Which method never gets called?
>
> I would put breakpoints/asserts/System.out() in the following
> locations to see how far it proceeds:
> 1. start of test
> 2. start of timer run() method
> 3. SiteService.getPagedSongModelDataByUserId()
>
> Also, while you can use delayTestFinish() to test client/service
> interaction, I find it much easier to debug--and faster to run--if I
> test them separately. The async service is an interface which you can
> easily mock. The following approach allows you to run the client code
> synchronously.
>
> // testing client code
> SiteService service = new MockServiceImpl();
> service.getPagedSongModelDataByUserId(...); // typically you would
> call a client method which then calls the service...
> service.getLastRequest(); // assert something w /this
> service.respond(...);
>
> To test the service you just use a regular TestCase and call the RPC
> method directly.
>
> -= Mat
>
> On Mon, Aug 31, 2009 at 7:08 PM, charlie wrote:
> > Hi all, I have a unit test shown here http://pastebin.com/m4e4596b1 .
> >
> > When using eclipse and Run as GWT Unit Test ( hosted mode ), the only
> output
> > I get is
> >
> > Starting HTTP on port 0
> >HTTP listening on port 58504
> > Compiling module com.charlie.MP3Player.JUnit
> >Compiling 1 permutations
> >   Permutation compile succeeded
> >Linking into www-test
> >   Link succeeded
> >Compilation succeeded -- 10.163s
> >
> > I have a very obvious assertFalse(true); for every condition but it looks
> > like it's never getting run ?  Debugging it shows that my method never
> gets
> > called either.
>
> >
>

--~--~-~--~~~---~--~~
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: linux & servers

2009-09-01 Thread bcw



On Sep 2, 4:08 am, Jeff Chimene  wrote:
> On 08/31/2009 11:36 PM, bcw wrote:

> > I'm designing an app that will use a browser (FireFox or Chrome when
> > it's available) to provide the UI, and GWT for the development, but it
> > won't be connecting to a remote server - it will serve personal data
> > off the user's own system.
>
> Well, none of these questions are really GWT-related. Any further
> discussion of this topic should be done off-list.

Ah...  For all I know, GWT has some facility to support this.  It was
worth asking to find out.  As well, there might be some other approach
or work-around to support this, and I'd want to know about the
interactions between that approach and GWT.  It wasn't obvious from
what I've read so far, but then I'm just getting into it.


> You can call shared libraries from Firefox JavaScript.

I haven't read everything yet, but I haven't seen anything to suggest
this.  Instead, I've read the suggestion to use RPC, thus leading to
the 'server collision' questions.

Can you point me at a resource that talks about calling shared local
system libraries (libCompute.so) from FireFox JavaScript?


> > Is there a way to do that from a browser without an intervening
> > server?
>
> Firefox will load an html file from a local source (via the file://
> protocol); which file can reference and execute local scripts.

If this is what you are referring to, I can read about that.  I
haven't seen anything addressing that a local script could call a
local system library so much, but I am just starting to think about
how to do this.

If you can point to a resource that speaks to having local javascript
access local system-level shared libraries, that would save me some
time.  Google hasn't come up with anything yet, but perhaps I don't
know the correct terms to use.

Thanks,
bcw

--~--~-~--~~~---~--~~
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: DOM.getElementById() vs $doc.getElementById()

2009-09-01 Thread Thomas Broyer



On 2 sep, 00:16, Thad  wrote:
> Using Document.get().getElementById() returns an element, but it has
> no value:
>
>         Element el = Document.get().getElementById("username");
>         if (el != null)
>                 GWT.log("element: "+el.getNodeValue(), null);
>
> prints only "element: " in the console.

Try el.cast().getValue() instead; getNodeValue() is a
"generic" DOM method that cannot be aware of the ".value" property
specific to InputElement's.

> Right now I'm having bigger problems trying to do things 
> byhttp://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...
> --
> When the logon is successful, I hide the logon RootPanel , show
> the application RootPanel , and add my widget to the application
> .  This works fine in Firefox and Safari, but in IE7, I get a
> blank browser.  The application  never shows.

Any JS error? does it work in hosted mode?

> Whoever wrote the LoginSecurityFAQ, it's time "TODO: Expand on this
> section" on the auto-complete section.  :)

>From the comments on that page: 
>http://groups.google.fr/group/Google-Web-Toolkit/t/2b2ce0b6aaa82461


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



Problem with FlexTable

2009-09-01 Thread Senshi

Hi, I have a FlexTable with much rows,  but I don't know add attribute
"id" and value to the "td" ...somebody can help me?

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



Is it possible to programmatically open a submenu?

2009-09-01 Thread Michael Sullivan

So I posted earlier about events to detect when a submenu opens or
closes - I as able to override onLoad and onDetach to do that.

I'm using GWT dnd to drag stuff onto a menu Item. I'd like to have
submenus open automatically when I mouse over them, but the existing
event seems to get consumed by my drag/drop handlers.

Is there any way I can just call an 'open' type method on my menu item
to open its submenu? I've looked through the source code and the only
way to trigger this seems to be through onBrowserEvent, and I'm not
entirely sure how to fudge that.

Am I the only one who'd like a little more accessibility to classes
like MenuBar?  It seems package private and private were used far too
much in its methods.
--~--~-~--~~~---~--~~
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: DOM.getElementById() vs $doc.getElementById()

2009-09-01 Thread Thad

Using Document.get().getElementById() returns an element, but it has
no value:

Element el = Document.get().getElementById("username");
if (el != null)
GWT.log("element: "+el.getNodeValue(), null);

prints only "element: " in the console.

Right now I'm having bigger problems trying to do things by
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ
--
When the logon is successful, I hide the logon RootPanel , show
the application RootPanel , and add my widget to the application
.  This works fine in Firefox and Safari, but in IE7, I get a
blank browser.  The application  never shows.

Whoever wrote the LoginSecurityFAQ, it's time "TODO: Expand on this
section" on the auto-complete section.  :)

On Sep 1, 5:06 pm, Jason Essington  wrote:
> how about Document.get().getElementById()?
>
> the DOM one is deprecated
>
> -jason
> On Sep 1, 2009, at 2:12 PM, Thad wrote:
>
>
>
> > Why does DOM.getElementById() return null while $doc.getElementById()
> > in a JNSI method return a value?
>
> > I'm trying to add a logon form to my welcom-file HTML (as mentioned in
> >http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecur...)
> > .
> > The username looks like
> > , and is
> > A.  The invoking button is written in GWT so that it may call my
> > logon RPC.  My application is loaded in B.
>
> > In the button's ClickHandler, if I request
> > String name = DOM.getElementById("username").getNodeValue(), the
> > element is null, not found.  However if I request tring name =
> > getUsername(); where getUsername() is
> >    private native String getUsername()  /*-{
> >             return $doc.getElementById('username').value;
> >    }-*/;
> > the value of the username field is returned.
>
> > Why is the document different from one to the other?  Can I get the
> > username without JNSI?
--~--~-~--~~~---~--~~
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: Repeating http requests

2009-09-01 Thread Thomas Broyer



On 1 sep, 18:06, Adligo  wrote:
> Hi All,
>
>    This is my quick hack that fixes that issue;
> http://yourserver/yourPath?yourCgiParams=yourValues&request=1
> http://yourserver/yourPath?yourCgiParams=yourValues&request=2
> http://yourserver/yourPath?yourCgiParams=yourValues&request=3
> exc
>
> Also note this can be applied to html and property files (or any
> files)http://yourserver/funky.html&request=1http://yourserver/drummer.properties&request=2
>
> I have been using a static int counter to accomplish this trick.
> I think GWT should add some caching options to its http api, because
> this is quite hoaky.

Something like the following? ;-)

RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,
"yourPath?yourCgiParams=yourValues");
builder.setHeader("Cache-Control", "no-cache");
...

--~--~-~--~~~---~--~~
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: date incompatibility between GWT java.util.Date class and the javascript Date

2009-09-01 Thread costa

Nobody there? Should I fill in a bug report? As it is right now I
don't think using java.util.Date to pass dates to a remote service is
reliable in the web mode and there can be very subtle bugs that are
hard to track.
--~--~-~--~~~---~--~~
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: mocking HasWidgets interface

2009-09-01 Thread Thomas Broyer



On 1 sep, 19:48, davis  wrote:
> As far as I can tell, this should work:
>
> HasWidgets mockHasWidgets = org.easymock.EasyMock.createMock
> (HasWidgets.class);
>
> since HasWidgets is an 
> interface:http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html
>
> ...but if you execute this, it promptly throws:
>
> java.lang.UnsupportedOperationException: ERROR: GWT.create() is only
> usable in client code!  It cannot be called, for example, from server
> code.  If you are running a unit test, check that your test case
> extends GWTTestCase and that GWT.create() is not called from within an
> initializer or constructor.
>
> This usually happens when you execute any code in standard JUnit tests
> that end up calling GWT.create( ) -- but this is an interface...what
> am I missing here?

EasyMock is only usable in pure Java, i.e. (to make it short) not in a
GWTTestCase. If your code ultimately depends on GWT.create() (which
EasyMock does not!), you can use GWTMockUtilities to make GWT.create()
work (and simply return null).

In a word, your GWT.create() issue is unrelated to the EasyMock line
you quoted.
--~--~-~--~~~---~--~~
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: WYSIWYG version of Google Plugin for Eclipse coming soon?

2009-09-01 Thread Andrew B

Hi Keith,

We don't have any immediate plans to release WYSIWYG tools for GWT or
in the Google Plugin for Eclipse. We have ideas about helpful tools,
but right now those are just that - ideas. I've heard good things
about GWT Designer, though I've never used it extensively myself.

- Andrew


On Aug 28, 3:11 pm, Thomas Broyer  wrote:
> On 28 août, 20:43, Keith Bennett  wrote:
>
> > Hi, we're trying to decide whether to spend the money on GWT Designer
> > from Instantiations.  Does anyone in the community know (or can anyone
> > from Google tell us) whether Google will be releasing aWYSIWYG
> > designer for GWT in any upcoming releases of  Google Plugin for
> > Eclipse?
>
> http://groups.google.com/group/google-web-toolkit-contributors/msg/62...
>
> though this might not reflect the Plugin team's view, maybe only the
> GWT's team view (about not providing a tool in GWT, independent of the
> GPE, to do this).
>
> > Also, is there anyone out there with experience using the
> > GWT Designer from Instantiations?  Is it worth the money?
>
> Don't use it, can't answer...
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



troubles with setAccessKey in Firefox

2009-09-01 Thread Marcão

Hi

I'm trying to set an access key to a button widget like this:

Button b = new Button("Insert");
b.setAccessKey('I');

b.addClicklistener(new ClickListener(){
public void onClick(Widget sender){
 Window.alert("bla");
}

});

So, when i press Alt+I (In Firefox 3.5.2) , nothing happens.

Anyone can help.
Thanks.



--~--~-~--~~~---~--~~
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: DOM.getElementById() vs $doc.getElementById()

2009-09-01 Thread Jason Essington

how about Document.get().getElementById()?

the DOM one is deprecated

-jason
On Sep 1, 2009, at 2:12 PM, Thad wrote:

>
> Why does DOM.getElementById() return null while $doc.getElementById()
> in a JNSI method return a value?
>
> I'm trying to add a logon form to my welcom-file HTML (as mentioned in
> http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ) 
> .
> The username looks like
> , and is
> A.  The invoking button is written in GWT so that it may call my
> logon RPC.  My application is loaded in B.
>
> In the button's ClickHandler, if I request
> String name = DOM.getElementById("username").getNodeValue(), the
> element is null, not found.  However if I request tring name =
> getUsername(); where getUsername() is
>   private native String getUsername()  /*-{
>return $doc.getElementById('username').value;
>   }-*/;
> the value of the username field is returned.
>
> Why is the document different from one to the other?  Can I get the
> username without JNSI?
> >


--~--~-~--~~~---~--~~
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: Catching Hyperlinks before they are executed

2009-09-01 Thread ThomasWrobel

I'm not sure thats possible at all. You might have to make gwt link
objects that look like normal hrefs and replace all of the ones in the
page with these.
I had to do this myself for my project. (but for a different reason, I
needed bookmark links to work in frames...IE had some bugs that meant
I needed to use gwt links instead).


On Sep 1, 12:44 am, Chris Bailey  wrote:
> I'm working on a social type site which I will make different versions
> depending on the device (mobile, desktop, etc...) and I want all the
> links to be just standard href hyperlinks. I know it's possible but
> how would you in GWT check a hyperlink before it is executed??
>
> My Goal is to check to see if the link is realitive then if it is I
> can just run my own function that will not change the location of the
> user's page but instead get the data the link is pointing to and parse
> it. If it's not a realitive link I will assume the person is trying to
> get off the page and either (based on user settings) change the whole
> page to that link or open a new window of that link.
--~--~-~--~~~---~--~~
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: FileUpload

2009-09-01 Thread huy

I got it to work using multiple FileUploads and ServletFileUpload on
the back-end.  ServletFileUpload has parseRequest which return a list
of FileItem.  It worked like Jason suggested but gwtupload also looks
interesting.
--~--~-~--~~~---~--~~
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-incubator] GWTCanvas and IE...

2009-09-01 Thread Xlorep DarkHelm

Ok I'm hitting a roadblock here, and I'm hoping that it is just
something obvious that I'm unable to see.

My situation is this -- I'm working on a simple web app, using GWT and
the GWTCanvas widget from gwt-incubator.

With the canvas, I am trying to draw little black squares, which
represent values at a specific position in an array.

To me, it is pretty straight-forward, I have a method:

-

public void draw(int row, int col, int color) {
canvas.setFillStyle(Settings.colors[color]);
canvas.fillRect(col * Settings.PIXEL_SIZE, row *
Settings.PIXEL_SIZE, Settings.PIXEL_SIZE, Settings.PIXEL_SIZE);
}

-

in my class that wraps the canvas. On every major browser other than
IE (and I can only test with IE8... which might make a difference, I
dunno...), this works exactly as I'd expect.

In IE... it never draws anything. Like... at all. I see that my code
is running (I have some text which gets updated outside the canvas),
but IE isn't drawing, well... anything. This somewhat leaves my little
app as pretty useless for people who visit using IE.

Like I said... I'm hoping that it is something I'm just plain missing
here. The address to my app is:

http://showsort.appspot.com

I'm not really trying anything elaborate with the canvas in this...
just drawing some squares on it.

Any help would be most appreciated.

I can provide other code if it helps...
--~--~-~--~~~---~--~~
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: Frame Events

2009-09-01 Thread Scottish

So it looks like one solution for this is to write a native function
that fires a gwt event onload and onreadystatechange (for ie).
--~--~-~--~~~---~--~~
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 serialisation too slow

2009-09-01 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I've got an app intended to run on a fairly low-end server, so I've been
optimising it as hard as possible.

Right now I've got it to the stage where the biggest bottleneck is the
GWT server-side serialisation, as it's squirting a large database sync
over to the client. My app is taking about 300ms to run the business
logic, 2000ms to construct the delta... and a staggering 20 *seconds* to
serialise it before sending it to the client. (Numbers approximate as I
can't insert any instrumentation into the GWT backend.)

The packet's not very big; 20kB compressed on the wire, as far as I can
tell, and about 500-600 objects.

Does anyone have any suggestions as to how I can speed this up? Right
now the time it takes is unacceptable. Can any alternative serialisation
system be plugged in, for example?

- --
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "People who think they know everything really annoy those of us who
│ know we don't." --- Bjarne Stroustrup
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKnY/pf9E0noFvlzgRAgZhAKCzYv2e7uWBtkzhB++walOQMK1xSACgnSIN
uKhpOfVQ+1k6XfSDFnogeSc=
=f4nY
-END PGP SIGNATURE-

--~--~-~--~~~---~--~~
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: linux & servers

2009-09-01 Thread David Given

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

bcw wrote:
[...]
> Those browsers run javascript without help, but I also want to be able
> to access some shared system library functions on my linux box for
> computations.
> 
> Is there a way to do that from a browser without an intervening
> server?

The short answer is no.

The longer answer is probably not. Most web browsers provide some
feature where Javascript can call out to host services; for very good
security reasons this is disabled most of the time. Most of Firefox, for
example, is written in Javascript using these services. How precisely to
get at these functions varies from browser to browser.

The even longer answer is maybe, provided you're willing to use some
third-party technology to provide the interface between Javascript and
the system functions. For example, a Java applet, Flash plugin, Firefox
extension, ActiveX control... of course, doing it this way rather
negates any advantage to using GWT.

[...]
> Is there a "server registry" to deal with such contention?

The short answer is no. (Don't hit me.)

The longer answer is sometimes. Debian and Ubuntu Linux, for example,
provide infrastructure so you can just install a server --- any server
- --- and drop a CGI script into /usr/lib/cgi-bin and it'll just work. Red
Hat is probably different. Windows doesn't have anything like this. OSX?
No idea.

Sorry I couldn't be more helpful. What precisely are you trying to do?
What host functionality do you need?

- --
┌─── dg@cowlark.com ─ http://www.cowlark.com ─
│
│ "People who think they know everything really annoy those of us who
│ know we don't." --- Bjarne Stroustrup
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFKnY5Rf9E0noFvlzgRAjJtAJwIo/dX9uHEDl0UJZMLcOswT8jKywCfSiDt
pemk6LlIZJKoCqVxboQd3p0=
=g/0P
-END PGP SIGNATURE-

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



DOM.getElementById() vs $doc.getElementById()

2009-09-01 Thread Thad

Why does DOM.getElementById() return null while $doc.getElementById()
in a JNSI method return a value?

I'm trying to add a logon form to my welcom-file HTML (as mentioned in
http://code.google.com/p/google-web-toolkit-incubator/wiki/LoginSecurityFAQ).
The username looks like
, and is
A.  The invoking button is written in GWT so that it may call my
logon RPC.  My application is loaded in B.

In the button's ClickHandler, if I request
String name = DOM.getElementById("username").getNodeValue(), the
element is null, not found.  However if I request tring name =
getUsername(); where getUsername() is
private native String getUsername()  /*-{
 return $doc.getElementById('username').value;
}-*/;
the value of the username field is returned.

Why is the document different from one to the other?  Can I get the
username without JNSI?
--~--~-~--~~~---~--~~
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 application does not run ie7

2009-09-01 Thread aftershock

It is Internet explorer 7.00.6000.16386 .
I could not see any error. Internet explorer printed a message done in
statusbar.
I could not see any triangle.
I could see the html part of page but not gwt application embedded.
The code is not so small. It would not fit here.
I can send you zipped.
Basically, it uses one or two native javascripts functions, the rest
generates the interface: checkboxes,textboxes, one abspanel, one
notebook.
I could link the application , it is online.

--~--~-~--~~~---~--~~
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: Problem on loading several times the same image

2009-09-01 Thread guymage

Sure :


public static void placerImage(final String urlImage, final
ClickablePanel cPanel) {

final Image img = new Image(urlImage.toString());
cPanel.add(img, 0, 0);
// Resizing after load
img.addLoadHandler(new LoadHandler() {
@Override
public void onLoad(final LoadEvent event) {
// Remove image
cPanel.remove(img);

// Smaller image
final float rapport = 2;
final int x = (int) (img.getWidth() / rapport);
final int y = (int) (img.getHeight() / rapport);

if (x > 0 && y > 0) {
img.setPixelSize(x, y);
}

// Center image on the panel
int left;
int top;
int tmp = 
ConstController.getConstants().casePxSize() -
img.getWidth();
if (tmp > 1) {
left = tmp / 2;
} else {
left = 0;
}
tmp = 
ConstController.getConstants().casePxSize() - img.getHeight
();
if (tmp > 1) {
top = tmp / 2;
} else {
top = 0;
}

// add image resized
cPanel.add(img, left, top);
}
});
}


ClickablePanel is an AbsolutePanel with a mouseDownHandler.



On 1 sep, 21:20, monk3y  wrote:
> Could you post some code?
>
> On Aug 31, 1:53 pm, guymage  wrote:
>
> > Hi,
>
> > Here is my problem:
>
> > My program load an image, I modify the size of this image when it's
> > loaded (LoadHandler). The first time I load the image, everything
> > works fine.
> > After an action, I have to refresh the panel and the image is reloaded
> > (needed) but the LoadEvent is not fired.
>
> > Is it because the web browser get the image in its cache ?
> > Is there any solution ?
>
> > I tried to save the image on a hashmap and use it when the same image
> > is reloaded, it works but but my program can have several times the
> > same image on the same panel, so the image appeared only once.
>
> > 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
-~--~~~~--~~--~--~---



Project don' t load

2009-09-01 Thread Eduardo Henrique
Hi Folks...
Today I Migrate a GWT 1.5 project to GWT 1.7. On Windows it runs fines...
the hosted mode and compile/browser. But in Linux, it doesnt work on hosted
mode, only in compile/browser mode. It stay loading... but nothing happens.
Anyone has a clue about this problem?

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

2009-09-01 Thread Norman Maurer

Hi all,

can highly recommend gwtupload [1] for uploading files. It works like charm...

Bye,
Norman

[1] http://code.google.com/p/gwtupload/



2009/9/1 Thad :
>
> My application uploads a file at a time, but I make it work sort of
> like a multiple upload.
>
> My upload widget is inside a composite.  Once a file uploads, the
> FileUpload is hidden, replaced by a checkbox with the name of the file
> uploaded, and a new FileUpload widget is added to the UI.  The use can
> upload more files, one at a time.  If a file name is unchecked, the
> user is saying, "ignore this".
>
> On the server side, I track the name of the files and the location of
> the temporary files.  When the user finishes with the form, I send the
> checked file names to the server with other data as a JSON string.
> The list of checked files is compared with the temporary files, and
> those listed are check into my system.  Other files are deleted.
>
> On Aug 27, 3:19 pm, huy  wrote:
>> Is it possible to upload multiple files at one time?  FileUpload will
>> only allow selection of one file so I'm not sure how to do this.  Any
>> suggestions would be helpful.
> >
>

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

2009-09-01 Thread Thad

My application uploads a file at a time, but I make it work sort of
like a multiple upload.

My upload widget is inside a composite.  Once a file uploads, the
FileUpload is hidden, replaced by a checkbox with the name of the file
uploaded, and a new FileUpload widget is added to the UI.  The use can
upload more files, one at a time.  If a file name is unchecked, the
user is saying, "ignore this".

On the server side, I track the name of the files and the location of
the temporary files.  When the user finishes with the form, I send the
checked file names to the server with other data as a JSON string.
The list of checked files is compared with the temporary files, and
those listed are check into my system.  Other files are deleted.

On Aug 27, 3:19 pm, huy  wrote:
> Is it possible to upload multiple files at one time?  FileUpload will
> only allow selection of one file so I'm not sure how to do this.  Any
> suggestions would be helpful.
--~--~-~--~~~---~--~~
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: SEO in gwt 2.0 ?

2009-09-01 Thread charlie
Likely you will need other non GWT pages for this.  If it's you're using
tomcat  you can serve up HTML pages just like any app server.

On Tue, Sep 1, 2009 at 11:29 AM, marcelogdiaz wrote:

>
> Great catch, i also wonder how this will be done.
>
> Let me know as soon as u have any news.
>
> On Aug 28, 6:50 am, asianCoolz  wrote:
> > may i know is this issue is under consideration and how to solve
> > problem regarding cannot index javascript page ?
>
> >
>

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

2009-09-01 Thread Thad

Do you have the proper servlet and servlet-mapping tags in your
web.xml?

On Sep 1, 10:31 am, Aximilli302  wrote:
> Me again, I have another quick question for the general comunity.
>
> What goes into the @RemoteServiceRelativePath tag? Is it the name of
> the class it is in? for example,
>
> package com.google.tabs.client;
>
> import com.google.gwt.user.client.rpc.RemoteService;
> import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
> @RemoteServiceRelativePath("MyService")
>
> public interface MyService extends RemoteService{
>
>         public String myMethod(String s, String username);
>
> }
>
> I put that in, and the server call fails. I get a warning:
>
> Sep 1, 2009 9:24:28 AM
> com.google.appengine.tools.development.LocalResourceFileServlet doGet
> WARNING: No file found for: /tabs/MyService
>
> Does anyone know how to make this work?
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



mocking HasWidgets interface

2009-09-01 Thread davis

As far as I can tell, this should work:

HasWidgets mockHasWidgets = org.easymock.EasyMock.createMock
(HasWidgets.class);

since HasWidgets is an interface: 
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/index.html

...but if you execute this, it promptly throws:

java.lang.UnsupportedOperationException: ERROR: GWT.create() is only
usable in client code!  It cannot be called, for example, from server
code.  If you are running a unit test, check that your test case
extends GWTTestCase and that GWT.create() is not called from within an
initializer or constructor.

This usually happens when you execute any code in standard JUnit tests
that end up calling GWT.create( ) -- but this is an interface...what
am I missing here?

Regards,
Davis
--~--~-~--~~~---~--~~
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: SEO in gwt 2.0 ?

2009-09-01 Thread marcelogdiaz

Great catch, i also wonder how this will be done.

Let me know as soon as u have any news.

On Aug 28, 6:50 am, asianCoolz  wrote:
> may i know is this issue is under consideration and how to solve
> problem regarding cannot index javascript page ?

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

2009-09-01 Thread Jason Essington

libraries like commons-upload allow you to iterate each form element  
whether file or input or whatnot, so just iterate until you've got all  
the files.

-jason
On Sep 1, 2009, at 8:59 AM, huy wrote:

>
> how does the back-end differentiate the files?
> >


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



Showcase Sample

2009-09-01 Thread Eric Atkinson

It would be nice if you created a middle-complexity sample app, and
related section in the developer's guide, that's a cross between the
too-simple mail-sample and the too-complex showcase-sample.  Why?
Because the main thing I suspect that developers want to know --
somewhat quickly -- is how to create a "navigable" user interface that
actually does something but isn't overly complex. For example, the
mail app shows a menu tree that doesn't actually do anything while the
showcase app has a menu tree that does plenty but is so complex in its
implementation (generators, constants, etc) that it would take a month
of code review just to figure out exactly how the showcase sample
works before a "new" gwt developer could use it as the basis for doing
something themselves.  I imagine you wish to instill good coding
practices in your external developers which I why I suspect the
showcase sample is so complex, but going from the too-simple mail
sample to the too-complex showcase sample it too much of a jump
conceptually speaking, especially without a complete explanation in
the developer guide similar to the "getting started" tutorial (which
is also too simple and non-navigable).  Don't get me wrong, your
developer's guide, and related sample apps, are excellent and far
above what any typical open source project provides in terms of
documentation and samples, but a better explanation of the showcase
sample, in particular, is needed I think (even though the code
comments are also very good). Consequently, I've come to conclusion
that this additional documentation of the showcase sample, as a
"getting started" guide, is something I could do for you (the google
gwt team) in return for your very fine work to-date; however, if you
happen to have such a "getting started" guide for the showcase sample
app somewhat in the works already, then I would appreciate your giving
me access to it, such as sharing it me in my google docs interface at
username: atki4564 (or just mailing me what you got so far). Many
thanks for your time and consideration.

Eric Atkinson
Chief Marketing Officer
StrategicInternationalSystems.com

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



How to get user current location in google maps

2009-09-01 Thread bala

Hi There,

  Im a beginer with google maps, and im trying to use google maps with
gwt. i have few question which im trying to
  understand here

1. in the examples i observed maps being displayed based on longitude
and latitude but im wondering is there a way
that i can the user location automatically like when every i use
google maps in my mobile i automatically get my
current location. is there any such feature available?

2. is there a way that i can get the location details using when user
clicks on a location in the map and can i store
them in my database so i can use those later when user comes back

3. what is the scalability of using google maps like if i have 1
user online in my website at any given 15 min
interval. would google accept all those requests? or are there any
limitations for such usage


Any help on the above would be appreciated.

Thank you,
bala.

--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock

eclipse 3.5.0 did not work.

--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock

The new install,3.4.0 SDK version that is the new fresh which I tried.
.log file exists but as far as I can there is nothing useful in it.
There is no entry in it for today.
The old install is also 3.4.0 SDK
Eclipse SDK
Version: 3.4.0
Build id: I20080617-2000


eclipse for 3.5.1 works.




--~--~-~--~~~---~--~~
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: linux & servers

2009-09-01 Thread Jeff Chimene

On 08/31/2009 11:36 PM, bcw wrote:
> 
> Hello,
> 
> I'm designing an app that will use a browser (FireFox or Chrome when
> it's available) to provide the UI, and GWT for the development, but it
> won't be connecting to a remote server - it will serve personal data
> off the user's own system.

Well, none of these questions are really GWT-related. Any further
discussion of this topic should be done off-list.

> I'm targeting Linux (which I run) and maybe the Mac.

One's an operating system, the other's an architecture; you might want
to address that dichotomy in your problem statement.

> Those browsers run javascript without help, but I also want to be able
> to access some shared system library functions on my linux box for
> computations.

You can call shared libraries from Firefox JavaScript. I don't know
about Chrome.

> Is there a way to do that from a browser without an intervening
> server?

Firefox will load an html file from a local source (via the file://
protocol); which file can reference and execute local scripts.

> If not (or if I find other reasons I need a server) there is a second
> layer...
> 
> What if the user has already installed an application that has pulled
> in a server?
> 
> I notice there are documentation systems that use one, and they might
> have installed Tomcat, Apache, whatever... how do I tell?  how do I
> integrate the components I use to provide my required services with
> their server - including when they aren't server-aware and don't even
> know they've installed one?
> 
> Is there a "server registry" to deal with such contention?

I can't speak to the Mac OS implementation, but most (if not all) Linux
distros incorporate a package management system; which software allows
the package implementer to declare dependencies on other packages. The
declaration is then processed by the package manager. You can use this
to incorporate your package's dependency on an HTTP daemon.

--~--~-~--~~~---~--~~
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: Repeating http requests

2009-09-01 Thread Adligo

Hi All,

   This is my quick hack that fixes that issue;
http://yourserver/yourPath?yourCgiParams=yourValues&request=1
http://yourserver/yourPath?yourCgiParams=yourValues&request=2
http://yourserver/yourPath?yourCgiParams=yourValues&request=3
exc

Also note this can be applied to html and property files (or any
files)
http://yourserver/funky.html&request=1
http://yourserver/drummer.properties&request=2

I have been using a static int counter to accomplish this trick.
I think GWT should add some caching options to its http api, because
this is quite hoaky.

Cheers,
Scott


On Aug 31, 3:03 pm, Jamie  wrote:
> You might have a bit of debugging in your future...
>
> Is there anything different about the last request?  Check this with
> eg., TamperData, FireBug console, or server logging.
> Is it handled properly?
> Perhaps you have some sort of referencing issue within the handler,
> that is not allowing all the previous callbacks to be freed?
>
> Jamie.
> ---
> Search for analog and digital television broadcast antennas in your
> area:http://www.antennamap.com/
--~--~-~--~~~---~--~~
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: FileUpload

2009-09-01 Thread Alexander Cherednichenko

applets, or flash solutions. Though, applets need signing and java
client-side support, and I don't know much about flash :)

On Sep 1, 11:22 am, charlie  wrote:
> You can find applets that handle this nicely.
>
> On Tue, Sep 1, 2009 at 9:59 AM, huy  wrote:
>
> > how does the back-end differentiate the files?
--~--~-~--~~~---~--~~
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: onMouseOut not always caught

2009-09-01 Thread Alexander Cherednichenko

I had same problems - mouseOut events were missing in IE.
I believe, these are not GWT problems, browser does not simply produce
appropriate event.


I then had to implement EventPreviewer, and listen to all mouseMove
events (well, it was performance-satisfactory). On each get of
mouseMove event i was checking if target element is the one I'm
listening to, and if not, treated this as mouseOut. Several tips:
  * Start eventPreviewer only when you get mouseOver event from your
icon. This would save some ticks.
  * If you're waiting for mouseOut of complex element, beware not to
forget to check the element as DOM.isOrHasChild(el, mouseOutEl)
  * be sure to disable event preview once you got synthetic mouseOut.
This would help save ticks as well.

On Sep 1, 8:51 am, ToddP  wrote:
> I have an app where, when I mouse over an icon I display a popup panel
> containing additional information (similar to gmail's popping up info
> when you hover above the "from" address in you inbox).  The problem I
> have is that when using the onMouseOut, occasionally, the event gets
> "lost" and the popup remains open.  Mousing over another icon results
> in two popups then being open.
>
> My questions are:
>
> 1)  is using onmouseover and onmouseout the best way to accomplish
> this effect
> 2)  if so, how do I avoid leaving popups open due to missed onMouseOut
> events
>
> TIA
--~--~-~--~~~---~--~~
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-connectors - arrowed lines on diagrams

2009-09-01 Thread Robert Waszkowski

Hello,
As far as many people were asking about ending connector lines with
arrows I made a new version of the library that can do that.
Gwt-connectors v. 1.7 now supports GWT 1.7 and gwt-dnd 2.6.5.
Except arrows you can split connector for as many sections as you
want.

Any sugestions about connectors behavior and further development will
be appreciated :)

Regards
Robert

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

2009-09-01 Thread charlie
You can find applets that handle this nicely.

On Tue, Sep 1, 2009 at 9:59 AM, huy  wrote:

>
> how does the back-end differentiate the files?
> >
>

--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread Miguel Méndez
In the .metadata directory there is usually a file whose name is literally
".log".  If that does not exist then there is some other problem with your
install.  Without a log file I can't really determine what is going on with
your install.
So you are using eclipse 3.4.0, but what flavor of eclipse :)   Is it the
Java developer's version, the RPC version, the classic version?  You
normally determine this when selecting which download to use.

It might be a good idea to download a new version of Eclipse 3.5 for Java
Developers and try to do a fresh install of the plugin for Eclipse 3.5 into
it.  You can get Eclipse 3.5 installs from http://www.eclipse.org/downloads/

On Tue, Sep 1, 2009 at 10:50 AM, aftershock  wrote:

>
> And there is no eclipse.log file.
>
> >
>


-- 
Miguel

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

2009-09-01 Thread mars1412

you could assingn names to the upload fields (file1, file2, ..)

On Sep 1, 4:59 pm, huy  wrote:
> how does the back-end differentiate the files?
--~--~-~--~~~---~--~~
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: up gradation of gwt1.6 to 1.7

2009-09-01 Thread Rahul

Hi Chevron,
Could be more specific as in what is failing

On Sep 1, 6:18 am, monk3y  wrote:
> Its like asking "How long is a piece of string?".
>
> On Aug 31, 2:49 pm, Chevron  wrote:
>
> > Hi,
> >     I have upgraded my app from 1.6 to 1.7 but most of the things are
> > not working the way it should be what are the changes I'll have to
> > make.
> > Thanks in advance
> > Chevron
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



linux & servers

2009-09-01 Thread bcw

Hello,

I'm designing an app that will use a browser (FireFox or Chrome when
it's available) to provide the UI, and GWT for the development, but it
won't be connecting to a remote server - it will serve personal data
off the user's own system.

I'm targeting Linux (which I run) and maybe the Mac.

Those browsers run javascript without help, but I also want to be able
to access some shared system library functions on my linux box for
computations.

Is there a way to do that from a browser without an intervening
server?


If not (or if I find other reasons I need a server) there is a second
layer...

What if the user has already installed an application that has pulled
in a server?

I notice there are documentation systems that use one, and they might
have installed Tomcat, Apache, whatever... how do I tell?  how do I
integrate the components I use to provide my required services with
their server - including when they aren't server-aware and don't even
know they've installed one?

Is there a "server registry" to deal with such contention?

thanks in advance,
bcw

--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock

I added issue  4006 today.

--~--~-~--~~~---~--~~
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-connectors - arrowed lines on diagrams

2009-09-01 Thread Robert Waszkowski
Link to the project:http://code.google.com/p/gwt-connectors/

Robert


2009/9/1 Robert Waszkowski 

> Hello,
> As far as many people were asking about ending connector lines with
> arrows I made a new version of the library that can do that.
> Gwt-connectors v. 1.7 now supports GWT 1.7 and gwt-dnd 2.6.5.
> Except arrows you can split connector for as many sections as you
> want.
>
> Any sugestions about connectors behavior and further development will
> be appreciated :)
>
> Regards
> Robert

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



CSS: how get the rule

2009-09-01 Thread sgiudice

I need to set in dynamic mode the font size of my widgets; for gwt
widgets I defined a .css file, how I could read these properties to
modify other external objects (like flash objects)? Is it possible to
read the css property like "font-size" with gwt SDK (in DOM there are
objects like styleSheet and properties like cssRules[])?

thanks

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



RAD 7.5 with GWT 1.7

2009-09-01 Thread Deepa

Hi All,
Currently we are designing a web application using GWT 1.7 with RAD
7.5.

I am very new to GWT

I want to know if you can please help me with following:
 how to deploy the project to WAS server 7.0
how to make webservice call
Intially we were able to deploy the project through tomcat builtin
with GWT. but when tried accessing webservice it was givig a 404
error. Asking to publish the webservice.

Can anybody please help with it.

Thanks in advance.

--~--~-~--~~~---~--~~
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: Quick fix for broken hosted mode with Snow Leopard 10A380 on x86_64

2009-09-01 Thread Bruno


Thanks for the life saver.

Bruno

On 14 août, 18:15, johnw188  wrote:
> I zipped my 1.5 directory. Just expand it to /System/
> Library/Frameworks/JavaVM.framework/Versions/
>
> http://files.me.com/johnwelsh/pn6hua
>
> --John
>

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

2009-09-01 Thread huy

how does the back-end differentiate the files?
--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock

And there is no eclipse.log file.

--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock



On szept. 1, 16:15, Miguel Méndez  wrote:
> It does appear that the plugin did not install correctly.  Are you sure that
> you used the right version of the plugin for your version of eclipse?
> If you are sure, could you add an issue to the GWT issue
> trackerand
> include your eclipse .log file (the .log file should be in your
> WORKSPACE_DIR/.metadata.log)?  Please respond back with the issue number and
> we'll look at it.
>
What log file do you want?
I found the directory .metadata.log but I am not sure what log file
you want.
There is no eclypse.log file

I used the address ...http://dl.google.com/eclipse/plugin/3.4
and sdk Version: 3.4.0

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



@RemoteServiceRelativePath

2009-09-01 Thread Aximilli302

Me again, I have another quick question for the general comunity.

What goes into the @RemoteServiceRelativePath tag? Is it the name of
the class it is in? for example,

package com.google.tabs.client;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
@RemoteServiceRelativePath("MyService")

public interface MyService extends RemoteService{

public String myMethod(String s, String username);
}



I put that in, and the server call fails. I get a warning:

Sep 1, 2009 9:24:28 AM
com.google.appengine.tools.development.LocalResourceFileServlet doGet
WARNING: No file found for: /tabs/MyService



Does anyone know how to make this work?
--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread Miguel Méndez
It does appear that the plugin did not install correctly.  Are you sure that
you used the right version of the plugin for your version of eclipse?
If you are sure, could you add an issue to the GWT issue
trackerand
include your eclipse .log file (the .log file should be in your
WORKSPACE_DIR/.metadata.log)?  Please respond back with the issue number and
we'll look at it.

Having the log file might help us understand what is going on.

On Tue, Sep 1, 2009 at 9:58 AM, aftershock  wrote:

>
>
>
> On szept. 1, 15:42, Miguel Méndez  wrote:
>  create a new web application because there is no such menu.
> >
> > Is there no toolbar an icon for New Web Application Project?  Is there no
> > New Web Application Project item in the File > New menu?
> No.
>
>
> >
> > Could you try Window > Reset Perspective to see if the items above
> appear?
> they do not appear.
>
> > Usually this happens when there is a problem with the project's SDK.
>  What
> > SDK is the project using?  You can check the status of that SDK by
> > navigating to Preferences > Google > Web Toolkit.  See if the referenced
> SDK
> There is no Google in that list.
>
> All I can see in installed software tab, that Google Plugin for
> Eclipse 3.4 is installed.
>
>
> >
>


-- 
Miguel

--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock



On szept. 1, 15:42, Miguel Méndez  wrote:
 create a new web application because there is no such menu.
>
> Is there no toolbar an icon for New Web Application Project?  Is there no
> New Web Application Project item in the File > New menu?
No.


>
> Could you try Window > Reset Perspective to see if the items above appear?
they do not appear.

> Usually this happens when there is a problem with the project's SDK.  What
> SDK is the project using?  You can check the status of that SDK by
> navigating to Preferences > Google > Web Toolkit.  See if the referenced SDK
There is no Google in that list.

All I can see in installed software tab, that Google Plugin for
Eclipse 3.4 is installed.


--~--~-~--~~~---~--~~
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: Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread Miguel Méndez
On Tue, Sep 1, 2009 at 9:27 AM, aftershock  wrote:

>
> I am on Windows 7 and I use 1.7 version.
> I use Eclypse 3.4 and I install Eclypse plugin using software updates.
> It installed ok but I can see it is not installed properly..
>
> I cannot create a new web application because there is no such menu.
>

Is there no toolbar an icon for New Web Application Project?  Is there no
New Web Application Project item in the File > New menu?

Could you try Window > Reset Perspective to see if the items above appear?


> The project I created previously says import
> com.google.gwt.core.client.EntryPoint; cannot be found... for example.
> I cannot see the red gwt icon on which I could click.
> SO all it seems as if nothing were installed.
>
>
Usually this happens when there is a problem with the project's SDK.  What
SDK is the project using?  You can check the status of that SDK by
navigating to Preferences > Google > Web Toolkit.  See if the referenced SDK
appears in the list of SDKs and that there are no red X's associated with
it's icon.  If there are, select the SDK and its problem will be shown in
the message area at the top of the dialog.


> So far I have tried these:
> -tried to update gwt in Eclypse, no change.
> -uninstalled gwt and installed ,no change.
> -installed Eclypse 3.4 in another directory and installed gwt, no
> change.
> -I tried Eclypse 3.5 with new plugin, I could not install that, it
> had
> dependendency problem. It is another problem.
> Note: this setup worked for me a month ago. I do not know what has
> changed.
> It is true I installed different kind of plugins for Eclypse but this
> should not be relevant as I tried gwt with new Eclipse where the
> other
> plugin- I assumed - could not interfere as they did not exist.
>
> Do you have a solution?
>
>
> >
>


-- 
Miguel

--~--~-~--~~~---~--~~
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: Eclipse GWT NoClassDefFoundError

2009-09-01 Thread Jack Terranova
Thanks Jason!  That sounds like a reasonable workaround.

On Mon, Aug 31, 2009 at 10:50 AM, Jason Parekh wrote:

> Hi Jack,
> This is a known issue.
>
> For jars referenced by your dependent projects, the typical workaround is
> what you've described.
>
> For the source in your dependent projects, you could add linked source
> resources in your main project pointing to the dependent projects' source
> directories.
>
> jason
>
>
> On Sun, Aug 30, 2009 at 12:19 AM, jack  wrote:
>
>>
>> I have a simple GWT project in Eclipse that requires another external
>> project.  Everything builds fine.  But when I launch as a Google Web
>> App using the App Engine I get a server-side NoClassDefFound for
>> classes located in the external project.
>>
>> I've played around with the launch config and can't get around this.
>> Under the classpath tab when I select the external project, Eclipse
>> also chooses the project's dependent jars, but when I run the GWT
>> project apparently Eclipse is not making these jars available to the
>> App Engine.
>>
>> I can jar up the external project and cram it into WEB-INF/lib of my
>> GWT project - the error goes away then.  But this requires me to
>> gather up every jar that the external project relies on and place it
>> under WEB-INF/lib.  I imagine Eclipse should be doing this for me
>> through the launch configuration.
>>
>> Thanks in advance
>>
>>
>
> >
>

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



Eclypse plugin not working in Eclipse 3.4

2009-09-01 Thread aftershock

I am on Windows 7 and I use 1.7 version.
I use Eclypse 3.4 and I install Eclypse plugin using software updates.
It installed ok but I can see it is not installed properly..

I cannot create a new web application because there is no such menu.
The project I created previously says import
com.google.gwt.core.client.EntryPoint; cannot be found... for example.
I cannot see the red gwt icon on which I could click.
SO all it seems as if nothing were installed.

So far I have tried these:
-tried to update gwt in Eclypse, no change.
-uninstalled gwt and installed ,no change.
-installed Eclypse 3.4 in another directory and installed gwt, no
change.
-I tried Eclypse 3.5 with new plugin, I could not install that, it
had
dependendency problem. It is another problem.
Note: this setup worked for me a month ago. I do not know what has
changed.
It is true I installed different kind of plugins for Eclypse but this
should not be relevant as I tried gwt with new Eclipse where the
other
plugin- I assumed - could not interfere as they did not exist.

Do you have a solution?


--~--~-~--~~~---~--~~
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 plugin: Problem when project name is changed

2009-09-01 Thread Miguel Méndez
Thanks.

On Mon, Aug 31, 2009 at 9:58 PM, hezjing  wrote:

> Issue 4005 
> is
> created :-)
>
> 2009/8/31 Miguel Méndez 
>
>> On Sun, Aug 30, 2009 at 2:05 PM, hezjing  wrote:
>>
>>> Hi
>>> I have a GWT project named X created by Google plugin.
>>>
>>> Then later I want to change the name to Y, so I right clicked Project X
>>> -> Refactor -> Rename ... -> New name: Y
>>>
>>> When run, it will complaint the working directory does not exist: /X/war
>>> It seems that launch configuration is still referring to the old name.
>>>
>>> Would it be possible for the plugin to rename the launch configuration,
>>> hosted page and etc?
>>>
>>>
>> The rename should update references to the project's name in the launch
>> configuration.  I'm not sure that it should change the name of the launch
>> configuration and hosted page however.  Could you add a feature request
>> here  for this?
>>
>>
>>>
>>> --
>>>
>>> Hez
>>>
>>>
>>>
>>
>>
>> --
>> Miguel
>>
>>
>>
>
>
> --
>
> Hez
>
> >
>


-- 
Miguel

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



onMouseOut not always caught

2009-09-01 Thread ToddP

I have an app where, when I mouse over an icon I display a popup panel
containing additional information (similar to gmail's popping up info
when you hover above the "from" address in you inbox).  The problem I
have is that when using the onMouseOut, occasionally, the event gets
"lost" and the popup remains open.  Mousing over another icon results
in two popups then being open.

My questions are:

1)  is using onmouseover and onmouseout the best way to accomplish
this effect
2)  if so, how do I avoid leaving popups open due to missed onMouseOut
events

TIA
--~--~-~--~~~---~--~~
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: Problem on loading several times the same image

2009-09-01 Thread monk3y

Could you post some code?

On Aug 31, 1:53 pm, guymage  wrote:
> Hi,
>
> Here is my problem:
>
> My program load an image, I modify the size of this image when it's
> loaded (LoadHandler). The first time I load the image, everything
> works fine.
> After an action, I have to refresh the panel and the image is reloaded
> (needed) but the LoadEvent is not fired.
>
> Is it because the web browser get the image in its cache ?
> Is there any solution ?
>
> I tried to save the image on a hashmap and use it when the same image
> is reloaded, it works but but my program can have several times the
> same image on the same panel, so the image appeared only once.
>
> 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: up gradation of gwt1.6 to 1.7

2009-09-01 Thread monk3y

Its like asking "How long is a piece of string?".

On Aug 31, 2:49 pm, Chevron  wrote:
> Hi,
>     I have upgraded my app from 1.6 to 1.7 but most of the things are
> not working the way it should be what are the changes I'll have to
> make.
> Thanks in advance
> Chevron
--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread Norman Maurer

yeah thats prolly the cause. Most companies not allow to connect to
random ports. So maybe test it again when you are at home ..

Bye,
Norman

2009/9/1 smiletolead :
>
> I am behind a proxy actually. Is it because of that?
>
> On Sep 1, 2:24 pm, Norman Maurer  wrote:
>> Ok this sounds like a firewall in front. telnet to port 993 works fine here..
>>
>> Bye,
>> Norman
>>
>> 2009/9/1 smiletolead :
>>
>>
>>
>> > Telnetting is giving me the following result:
>>
>> > C:\>telnet imap.gmail.com 993
>> > Connecting To imap.gmail.com...Could not open connection to the host,
>> > on port 993: Connect failed
>>
>> > Thanks,
>> > Ganesh
>>
>> > On Sep 1, 2:11 pm, Norman Maurer  wrote:
>> >> can you try to connect to it via telnet, just to see if there is a
>> >> firewall in front:
>>
>> >> telnet imap.gmail.com 993
>> >> telnet smtp.gmail.com 465
>>
>> >> Thx,
>> >> Norman
>>
>> >> 2009/9/1 smiletolead :
>>
>> >> > Here is the config.properties:
>>
>> >> > # The IP or domainname of the IMAP server
>> >> > IMAPServerAddress=imap.gmail.com
>> >> > # The port of the IMAP server
>> >> > IMAPServerPort=993
>> >> > # Use SSL/TLS to connect to the IMAP server
>> >> > IMAPS=true
>> >> > # The IP or domainname of the SMTP server
>> >> > SMTPServerAddress=smtp.gmail.com
>> >> > # The port of the SMTP server
>> >> > SMTPServerPort=465
>> >> > # Use AUTH for SMTP
>> >> > SMTPAuth=true
>> >> > # Use SSL/TLS to connect to the SMTP server
>> >> > SMTPS=true
>>
>> >> > It is copied from the reply given by you only
>>
>> >> > Ganesh
>>
>> >> > On Sep 1, 2:01 pm, Norman Maurer  wrote:
>> >> >> Can you post your config.properties file.
>>
>> >> >> Connection timeout sounds like a firewall,wrong ip or wrong port.
>>
>> >> >> Thx,
>> >> >> Norman
>>
>> >> >> 2009/9/1 smiletolead :
>>
>> >> >> > Hi Norman,
>> >> >> >  I downloaded the latest code. When connecting to gmail, I get the
>> >> >> > following error:
>>
>> >> >> > 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
>> >> >> > kumar.gane...@gmail.com
>> >> >> > javax.mail.MessagingException: Connection timed out: connect;
>> >> >> >  nested exception is:
>> >> >> >        java.net.ConnectException: Connection timed out: connect
>> >> >> >        at 
>> >> >> > com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
>> >> >> >        at javax.mail.Service.connect(Service.java:291)
>> >> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
>> >> >> > (InMemoryIMAPStoreCache.java:87)
>> >> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
>> >> >> > (InMemoryIMAPStoreCache.java:69)
>> >> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
>> >> >> > (LoginUserHandler.java:71)
>> >> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
>> >> >> > (LoginUserHandler.java:1)
>> >> >> >        at 
>> >> >> > net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
>> >> >> > (DefaultDispatch.java:78)
>> >> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
>> >> >> > (DefaultDispatch.java:68)
>> >> >> >        at
>> >> >> > net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
>> >> >> > (DispatchServiceServlet.java:24)
>> >> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke
>> >> >> > (NativeMethodAccessorImpl.java:39)
>> >> >> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> >> >> > (DelegatingMethodAccessorImpl.java:25)
>> >> >> >        at java.lang.reflect.Method.invoke(Method.java:597)
>> >> >> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
>> >> >> > (RPC.java:527)
>> >> >> >        at 
>> >> >> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
>> >> >> > (RemoteServiceServlet.java:166)
>> >> >> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
>> >> >> > (RemoteServiceServlet.java:86)
>> >> >> >        at 
>> >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> >> >> >        at 
>> >> >> > javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >> >> >        at com.google.inject.servlet.ServletDefinition.doService
>> >> >> > (ServletDefinition.java:216)
>> >> >> >        at com.google.inject.servlet.ServletDefinition.service
>> >> >> > (ServletDefinition.java:141)
>> >> >> >        at com.google.inject.servlet.ManagedServletPipeline.service
>> >> >> > (ManagedServletPipeline.java:93)
>> >> >> >        at com.google.inject.servlet.FilterChainInvocation.doFilter
>> >> >> > (FilterChainInvocation.java:63)
>> >> >> >        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
>> >> >> > (ManagedFilterPipeline.java:122)
>> >> >> >        at 
>> >> >> > com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
>> >> >> > 110)
>> >> >> >        at 
>> >> >> > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
>> >> >> > (ServletHandler.java:

Re: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread smiletolead

I am behind a proxy actually. Is it because of that?

On Sep 1, 2:24 pm, Norman Maurer  wrote:
> Ok this sounds like a firewall in front. telnet to port 993 works fine here..
>
> Bye,
> Norman
>
> 2009/9/1 smiletolead :
>
>
>
> > Telnetting is giving me the following result:
>
> > C:\>telnet imap.gmail.com 993
> > Connecting To imap.gmail.com...Could not open connection to the host,
> > on port 993: Connect failed
>
> > Thanks,
> > Ganesh
>
> > On Sep 1, 2:11 pm, Norman Maurer  wrote:
> >> can you try to connect to it via telnet, just to see if there is a
> >> firewall in front:
>
> >> telnet imap.gmail.com 993
> >> telnet smtp.gmail.com 465
>
> >> Thx,
> >> Norman
>
> >> 2009/9/1 smiletolead :
>
> >> > Here is the config.properties:
>
> >> > # The IP or domainname of the IMAP server
> >> > IMAPServerAddress=imap.gmail.com
> >> > # The port of the IMAP server
> >> > IMAPServerPort=993
> >> > # Use SSL/TLS to connect to the IMAP server
> >> > IMAPS=true
> >> > # The IP or domainname of the SMTP server
> >> > SMTPServerAddress=smtp.gmail.com
> >> > # The port of the SMTP server
> >> > SMTPServerPort=465
> >> > # Use AUTH for SMTP
> >> > SMTPAuth=true
> >> > # Use SSL/TLS to connect to the SMTP server
> >> > SMTPS=true
>
> >> > It is copied from the reply given by you only
>
> >> > Ganesh
>
> >> > On Sep 1, 2:01 pm, Norman Maurer  wrote:
> >> >> Can you post your config.properties file.
>
> >> >> Connection timeout sounds like a firewall,wrong ip or wrong port.
>
> >> >> Thx,
> >> >> Norman
>
> >> >> 2009/9/1 smiletolead :
>
> >> >> > Hi Norman,
> >> >> >  I downloaded the latest code. When connecting to gmail, I get the
> >> >> > following error:
>
> >> >> > 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
> >> >> > kumar.gane...@gmail.com
> >> >> > javax.mail.MessagingException: Connection timed out: connect;
> >> >> >  nested exception is:
> >> >> >        java.net.ConnectException: Connection timed out: connect
> >> >> >        at 
> >> >> > com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
> >> >> >        at javax.mail.Service.connect(Service.java:291)
> >> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> >> >> > (InMemoryIMAPStoreCache.java:87)
> >> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> >> >> > (InMemoryIMAPStoreCache.java:69)
> >> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
> >> >> > (LoginUserHandler.java:71)
> >> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
> >> >> > (LoginUserHandler.java:1)
> >> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
> >> >> > (DefaultDispatch.java:78)
> >> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
> >> >> > (DefaultDispatch.java:68)
> >> >> >        at
> >> >> > net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
> >> >> > (DispatchServiceServlet.java:24)
> >> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke
> >> >> > (NativeMethodAccessorImpl.java:39)
> >> >> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> >> > (DelegatingMethodAccessorImpl.java:25)
> >> >> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >> >> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> >> >> > (RPC.java:527)
> >> >> >        at 
> >> >> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> >> >> > (RemoteServiceServlet.java:166)
> >> >> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> >> >> > (RemoteServiceServlet.java:86)
> >> >> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >> >> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >> >> >        at com.google.inject.servlet.ServletDefinition.doService
> >> >> > (ServletDefinition.java:216)
> >> >> >        at com.google.inject.servlet.ServletDefinition.service
> >> >> > (ServletDefinition.java:141)
> >> >> >        at com.google.inject.servlet.ManagedServletPipeline.service
> >> >> > (ManagedServletPipeline.java:93)
> >> >> >        at com.google.inject.servlet.FilterChainInvocation.doFilter
> >> >> > (FilterChainInvocation.java:63)
> >> >> >        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> >> >> > (ManagedFilterPipeline.java:122)
> >> >> >        at 
> >> >> > com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> >> >> > 110)
> >> >> >        at 
> >> >> > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> >> >> > (ServletHandler.java:1088)
> >> >> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> >> >> > (ServletHandler.java:360)
> >> >> >        at org.mortbay.jetty.security.SecurityHandler.handle
> >> >> > (SecurityHandler.java:216)
> >> >> >        at org.mortbay.jetty.servlet.SessionHandler.handle
> >> >> > (SessionHandler.java:181)
> >> >>

Re: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread Norman Maurer

Ok this sounds like a firewall in front. telnet to port 993 works fine here..

Bye,
Norman

2009/9/1 smiletolead :
>
> Telnetting is giving me the following result:
>
> C:\>telnet imap.gmail.com 993
> Connecting To imap.gmail.com...Could not open connection to the host,
> on port 993: Connect failed
>
> Thanks,
> Ganesh
>
>
> On Sep 1, 2:11 pm, Norman Maurer  wrote:
>> can you try to connect to it via telnet, just to see if there is a
>> firewall in front:
>>
>> telnet imap.gmail.com 993
>> telnet smtp.gmail.com 465
>>
>> Thx,
>> Norman
>>
>> 2009/9/1 smiletolead :
>>
>>
>>
>> > Here is the config.properties:
>>
>> > # The IP or domainname of the IMAP server
>> > IMAPServerAddress=imap.gmail.com
>> > # The port of the IMAP server
>> > IMAPServerPort=993
>> > # Use SSL/TLS to connect to the IMAP server
>> > IMAPS=true
>> > # The IP or domainname of the SMTP server
>> > SMTPServerAddress=smtp.gmail.com
>> > # The port of the SMTP server
>> > SMTPServerPort=465
>> > # Use AUTH for SMTP
>> > SMTPAuth=true
>> > # Use SSL/TLS to connect to the SMTP server
>> > SMTPS=true
>>
>> > It is copied from the reply given by you only
>>
>> > Ganesh
>>
>> > On Sep 1, 2:01 pm, Norman Maurer  wrote:
>> >> Can you post your config.properties file.
>>
>> >> Connection timeout sounds like a firewall,wrong ip or wrong port.
>>
>> >> Thx,
>> >> Norman
>>
>> >> 2009/9/1 smiletolead :
>>
>> >> > Hi Norman,
>> >> >  I downloaded the latest code. When connecting to gmail, I get the
>> >> > following error:
>>
>> >> > 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
>> >> > kumar.gane...@gmail.com
>> >> > javax.mail.MessagingException: Connection timed out: connect;
>> >> >  nested exception is:
>> >> >        java.net.ConnectException: Connection timed out: connect
>> >> >        at 
>> >> > com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
>> >> >        at javax.mail.Service.connect(Service.java:291)
>> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
>> >> > (InMemoryIMAPStoreCache.java:87)
>> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
>> >> > (InMemoryIMAPStoreCache.java:69)
>> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
>> >> > (LoginUserHandler.java:71)
>> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
>> >> > (LoginUserHandler.java:1)
>> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
>> >> > (DefaultDispatch.java:78)
>> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
>> >> > (DefaultDispatch.java:68)
>> >> >        at
>> >> > net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
>> >> > (DispatchServiceServlet.java:24)
>> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke
>> >> > (NativeMethodAccessorImpl.java:39)
>> >> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> >> > (DelegatingMethodAccessorImpl.java:25)
>> >> >        at java.lang.reflect.Method.invoke(Method.java:597)
>> >> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
>> >> > (RPC.java:527)
>> >> >        at 
>> >> > com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
>> >> > (RemoteServiceServlet.java:166)
>> >> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
>> >> > (RemoteServiceServlet.java:86)
>> >> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> >> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >> >        at com.google.inject.servlet.ServletDefinition.doService
>> >> > (ServletDefinition.java:216)
>> >> >        at com.google.inject.servlet.ServletDefinition.service
>> >> > (ServletDefinition.java:141)
>> >> >        at com.google.inject.servlet.ManagedServletPipeline.service
>> >> > (ManagedServletPipeline.java:93)
>> >> >        at com.google.inject.servlet.FilterChainInvocation.doFilter
>> >> > (FilterChainInvocation.java:63)
>> >> >        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
>> >> > (ManagedFilterPipeline.java:122)
>> >> >        at 
>> >> > com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
>> >> > 110)
>> >> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
>> >> > (ServletHandler.java:1088)
>> >> >        at org.mortbay.jetty.servlet.ServletHandler.handle
>> >> > (ServletHandler.java:360)
>> >> >        at org.mortbay.jetty.security.SecurityHandler.handle
>> >> > (SecurityHandler.java:216)
>> >> >        at org.mortbay.jetty.servlet.SessionHandler.handle
>> >> > (SessionHandler.java:181)
>> >> >        at org.mortbay.jetty.handler.ContextHandler.handle
>> >> > (ContextHandler.java:729)
>> >> >        at 
>> >> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
>> >> > 405)
>> >> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
>> >> > (HandlerWrapper.java:152

Re: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread smiletolead

Telnetting is giving me the following result:

C:\>telnet imap.gmail.com 993
Connecting To imap.gmail.com...Could not open connection to the host,
on port 993: Connect failed

Thanks,
Ganesh


On Sep 1, 2:11 pm, Norman Maurer  wrote:
> can you try to connect to it via telnet, just to see if there is a
> firewall in front:
>
> telnet imap.gmail.com 993
> telnet smtp.gmail.com 465
>
> Thx,
> Norman
>
> 2009/9/1 smiletolead :
>
>
>
> > Here is the config.properties:
>
> > # The IP or domainname of the IMAP server
> > IMAPServerAddress=imap.gmail.com
> > # The port of the IMAP server
> > IMAPServerPort=993
> > # Use SSL/TLS to connect to the IMAP server
> > IMAPS=true
> > # The IP or domainname of the SMTP server
> > SMTPServerAddress=smtp.gmail.com
> > # The port of the SMTP server
> > SMTPServerPort=465
> > # Use AUTH for SMTP
> > SMTPAuth=true
> > # Use SSL/TLS to connect to the SMTP server
> > SMTPS=true
>
> > It is copied from the reply given by you only
>
> > Ganesh
>
> > On Sep 1, 2:01 pm, Norman Maurer  wrote:
> >> Can you post your config.properties file.
>
> >> Connection timeout sounds like a firewall,wrong ip or wrong port.
>
> >> Thx,
> >> Norman
>
> >> 2009/9/1 smiletolead :
>
> >> > Hi Norman,
> >> >  I downloaded the latest code. When connecting to gmail, I get the
> >> > following error:
>
> >> > 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
> >> > kumar.gane...@gmail.com
> >> > javax.mail.MessagingException: Connection timed out: connect;
> >> >  nested exception is:
> >> >        java.net.ConnectException: Connection timed out: connect
> >> >        at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
> >> >        at javax.mail.Service.connect(Service.java:291)
> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> >> > (InMemoryIMAPStoreCache.java:87)
> >> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> >> > (InMemoryIMAPStoreCache.java:69)
> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
> >> > (LoginUserHandler.java:71)
> >> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
> >> > (LoginUserHandler.java:1)
> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
> >> > (DefaultDispatch.java:78)
> >> >        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
> >> > (DefaultDispatch.java:68)
> >> >        at
> >> > net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
> >> > (DispatchServiceServlet.java:24)
> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> >        at sun.reflect.NativeMethodAccessorImpl.invoke
> >> > (NativeMethodAccessorImpl.java:39)
> >> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >> > (DelegatingMethodAccessorImpl.java:25)
> >> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> >> > (RPC.java:527)
> >> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> >> > (RemoteServiceServlet.java:166)
> >> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> >> > (RemoteServiceServlet.java:86)
> >> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >> >        at com.google.inject.servlet.ServletDefinition.doService
> >> > (ServletDefinition.java:216)
> >> >        at com.google.inject.servlet.ServletDefinition.service
> >> > (ServletDefinition.java:141)
> >> >        at com.google.inject.servlet.ManagedServletPipeline.service
> >> > (ManagedServletPipeline.java:93)
> >> >        at com.google.inject.servlet.FilterChainInvocation.doFilter
> >> > (FilterChainInvocation.java:63)
> >> >        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> >> > (ManagedFilterPipeline.java:122)
> >> >        at 
> >> > com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> >> > 110)
> >> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> >> > (ServletHandler.java:1088)
> >> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> >> > (ServletHandler.java:360)
> >> >        at org.mortbay.jetty.security.SecurityHandler.handle
> >> > (SecurityHandler.java:216)
> >> >        at org.mortbay.jetty.servlet.SessionHandler.handle
> >> > (SessionHandler.java:181)
> >> >        at org.mortbay.jetty.handler.ContextHandler.handle
> >> > (ContextHandler.java:729)
> >> >        at 
> >> > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> >> > 405)
> >> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> >> > (HandlerWrapper.java:152)
> >> >        at org.mortbay.jetty.handler.RequestLogHandler.handle
> >> > (RequestLogHandler.java:49)
> >> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> >> > (HandlerWrapper.java:152)
> >> >        at org.mortbay.jetty.Server.handle(Server.java:3

Re: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread Norman Maurer

can you try to connect to it via telnet, just to see if there is a
firewall in front:

telnet imap.gmail.com 993
telnet smtp.gmail.com 465

Thx,
Norman

2009/9/1 smiletolead :
>
> Here is the config.properties:
>
> # The IP or domainname of the IMAP server
> IMAPServerAddress=imap.gmail.com
> # The port of the IMAP server
> IMAPServerPort=993
> # Use SSL/TLS to connect to the IMAP server
> IMAPS=true
> # The IP or domainname of the SMTP server
> SMTPServerAddress=smtp.gmail.com
> # The port of the SMTP server
> SMTPServerPort=465
> # Use AUTH for SMTP
> SMTPAuth=true
> # Use SSL/TLS to connect to the SMTP server
> SMTPS=true
>
> It is copied from the reply given by you only
>
> Ganesh
>
> On Sep 1, 2:01 pm, Norman Maurer  wrote:
>> Can you post your config.properties file.
>>
>> Connection timeout sounds like a firewall,wrong ip or wrong port.
>>
>> Thx,
>> Norman
>>
>> 2009/9/1 smiletolead :
>>
>>
>>
>> > Hi Norman,
>> >  I downloaded the latest code. When connecting to gmail, I get the
>> > following error:
>>
>> > 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
>> > kumar.gane...@gmail.com
>> > javax.mail.MessagingException: Connection timed out: connect;
>> >  nested exception is:
>> >        java.net.ConnectException: Connection timed out: connect
>> >        at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
>> >        at javax.mail.Service.connect(Service.java:291)
>> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
>> > (InMemoryIMAPStoreCache.java:87)
>> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
>> > (InMemoryIMAPStoreCache.java:69)
>> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
>> > (LoginUserHandler.java:71)
>> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
>> > (LoginUserHandler.java:1)
>> >        at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
>> > (DefaultDispatch.java:78)
>> >        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
>> > (DefaultDispatch.java:68)
>> >        at
>> > net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
>> > (DispatchServiceServlet.java:24)
>> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >        at sun.reflect.NativeMethodAccessorImpl.invoke
>> > (NativeMethodAccessorImpl.java:39)
>> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
>> > (DelegatingMethodAccessorImpl.java:25)
>> >        at java.lang.reflect.Method.invoke(Method.java:597)
>> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
>> > (RPC.java:527)
>> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
>> > (RemoteServiceServlet.java:166)
>> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
>> > (RemoteServiceServlet.java:86)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>> >        at com.google.inject.servlet.ServletDefinition.doService
>> > (ServletDefinition.java:216)
>> >        at com.google.inject.servlet.ServletDefinition.service
>> > (ServletDefinition.java:141)
>> >        at com.google.inject.servlet.ManagedServletPipeline.service
>> > (ManagedServletPipeline.java:93)
>> >        at com.google.inject.servlet.FilterChainInvocation.doFilter
>> > (FilterChainInvocation.java:63)
>> >        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
>> > (ManagedFilterPipeline.java:122)
>> >        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
>> > 110)
>> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
>> > (ServletHandler.java:1088)
>> >        at org.mortbay.jetty.servlet.ServletHandler.handle
>> > (ServletHandler.java:360)
>> >        at org.mortbay.jetty.security.SecurityHandler.handle
>> > (SecurityHandler.java:216)
>> >        at org.mortbay.jetty.servlet.SessionHandler.handle
>> > (SessionHandler.java:181)
>> >        at org.mortbay.jetty.handler.ContextHandler.handle
>> > (ContextHandler.java:729)
>> >        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
>> > 405)
>> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
>> > (HandlerWrapper.java:152)
>> >        at org.mortbay.jetty.handler.RequestLogHandler.handle
>> > (RequestLogHandler.java:49)
>> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
>> > (HandlerWrapper.java:152)
>> >        at org.mortbay.jetty.Server.handle(Server.java:324)
>> >        at 
>> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
>> > 505)
>> >        at org.mortbay.jetty.HttpConnection$RequestHandler.content
>> > (HttpConnection.java:843)
>> >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
>> >        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>> >        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>> >  

Re: Does GWT work in Snow Leopard?

2009-09-01 Thread NIgel Leck

Ok, now... I've got to ask why Eclipse... the whole SWT thing seems to
be a bad idea from the outset.
--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread smiletolead

Here is the config.properties:

# The IP or domainname of the IMAP server
IMAPServerAddress=imap.gmail.com
# The port of the IMAP server
IMAPServerPort=993
# Use SSL/TLS to connect to the IMAP server
IMAPS=true
# The IP or domainname of the SMTP server
SMTPServerAddress=smtp.gmail.com
# The port of the SMTP server
SMTPServerPort=465
# Use AUTH for SMTP
SMTPAuth=true
# Use SSL/TLS to connect to the SMTP server
SMTPS=true

It is copied from the reply given by you only

Ganesh

On Sep 1, 2:01 pm, Norman Maurer  wrote:
> Can you post your config.properties file.
>
> Connection timeout sounds like a firewall,wrong ip or wrong port.
>
> Thx,
> Norman
>
> 2009/9/1 smiletolead :
>
>
>
> > Hi Norman,
> >  I downloaded the latest code. When connecting to gmail, I get the
> > following error:
>
> > 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
> > kumar.gane...@gmail.com
> > javax.mail.MessagingException: Connection timed out: connect;
> >  nested exception is:
> >        java.net.ConnectException: Connection timed out: connect
> >        at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
> >        at javax.mail.Service.connect(Service.java:291)
> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> > (InMemoryIMAPStoreCache.java:87)
> >        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> > (InMemoryIMAPStoreCache.java:69)
> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
> > (LoginUserHandler.java:71)
> >        at org.apache.hupa.server.handler.LoginUserHandler.execute
> > (LoginUserHandler.java:1)
> >        at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
> > (DefaultDispatch.java:78)
> >        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
> > (DefaultDispatch.java:68)
> >        at
> > net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
> > (DispatchServiceServlet.java:24)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >        at sun.reflect.NativeMethodAccessorImpl.invoke
> > (NativeMethodAccessorImpl.java:39)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> > (RPC.java:527)
> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> > (RemoteServiceServlet.java:166)
> >        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> > (RemoteServiceServlet.java:86)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
> >        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> >        at com.google.inject.servlet.ServletDefinition.doService
> > (ServletDefinition.java:216)
> >        at com.google.inject.servlet.ServletDefinition.service
> > (ServletDefinition.java:141)
> >        at com.google.inject.servlet.ManagedServletPipeline.service
> > (ManagedServletPipeline.java:93)
> >        at com.google.inject.servlet.FilterChainInvocation.doFilter
> > (FilterChainInvocation.java:63)
> >        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> > (ManagedFilterPipeline.java:122)
> >        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> > 110)
> >        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> > (ServletHandler.java:1088)
> >        at org.mortbay.jetty.servlet.ServletHandler.handle
> > (ServletHandler.java:360)
> >        at org.mortbay.jetty.security.SecurityHandler.handle
> > (SecurityHandler.java:216)
> >        at org.mortbay.jetty.servlet.SessionHandler.handle
> > (SessionHandler.java:181)
> >        at org.mortbay.jetty.handler.ContextHandler.handle
> > (ContextHandler.java:729)
> >        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> > 405)
> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > (HandlerWrapper.java:152)
> >        at org.mortbay.jetty.handler.RequestLogHandler.handle
> > (RequestLogHandler.java:49)
> >        at org.mortbay.jetty.handler.HandlerWrapper.handle
> > (HandlerWrapper.java:152)
> >        at org.mortbay.jetty.Server.handle(Server.java:324)
> >        at 
> > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> > 505)
> >        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> > (HttpConnection.java:843)
> >        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
> >        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
> >        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
> >        at org.mortbay.io.nio.SelectChannelEndPoint.run
> > (SelectChannelEndPoint.java:395)
> >        at org.mortbay.thread.QueuedThreadPool$PoolThread.run
> > (QueuedThreadPool.java:488)
> > Caused by: java.net.ConnectException: Connection timed out: connect
> >        at java.net.PlainSocketImpl.socketConn

Re: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread Norman Maurer

Can you post your config.properties file.

Connection timeout sounds like a firewall,wrong ip or wrong port.

Thx,
Norman

2009/9/1 smiletolead :
>
> Hi Norman,
>  I downloaded the latest code. When connecting to gmail, I get the
> following error:
>
> 268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
> kumar.gane...@gmail.com
> javax.mail.MessagingException: Connection timed out: connect;
>  nested exception is:
>        java.net.ConnectException: Connection timed out: connect
>        at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
>        at javax.mail.Service.connect(Service.java:291)
>        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> (InMemoryIMAPStoreCache.java:87)
>        at org.apache.hupa.server.InMemoryIMAPStoreCache.get
> (InMemoryIMAPStoreCache.java:69)
>        at org.apache.hupa.server.handler.LoginUserHandler.execute
> (LoginUserHandler.java:71)
>        at org.apache.hupa.server.handler.LoginUserHandler.execute
> (LoginUserHandler.java:1)
>        at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
> (DefaultDispatch.java:78)
>        at net.customware.gwt.dispatch.server.DefaultDispatch.execute
> (DefaultDispatch.java:68)
>        at
> net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
> (DispatchServiceServlet.java:24)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
>        at java.lang.reflect.Method.invoke(Method.java:597)
>        at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
> (RPC.java:527)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
> (RemoteServiceServlet.java:166)
>        at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
> (RemoteServiceServlet.java:86)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>        at com.google.inject.servlet.ServletDefinition.doService
> (ServletDefinition.java:216)
>        at com.google.inject.servlet.ServletDefinition.service
> (ServletDefinition.java:141)
>        at com.google.inject.servlet.ManagedServletPipeline.service
> (ManagedServletPipeline.java:93)
>        at com.google.inject.servlet.FilterChainInvocation.doFilter
> (FilterChainInvocation.java:63)
>        at com.google.inject.servlet.ManagedFilterPipeline.dispatch
> (ManagedFilterPipeline.java:122)
>        at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
> 110)
>        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
> (ServletHandler.java:1088)
>        at org.mortbay.jetty.servlet.ServletHandler.handle
> (ServletHandler.java:360)
>        at org.mortbay.jetty.security.SecurityHandler.handle
> (SecurityHandler.java:216)
>        at org.mortbay.jetty.servlet.SessionHandler.handle
> (SessionHandler.java:181)
>        at org.mortbay.jetty.handler.ContextHandler.handle
> (ContextHandler.java:729)
>        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
> 405)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:152)
>        at org.mortbay.jetty.handler.RequestLogHandler.handle
> (RequestLogHandler.java:49)
>        at org.mortbay.jetty.handler.HandlerWrapper.handle
> (HandlerWrapper.java:152)
>        at org.mortbay.jetty.Server.handle(Server.java:324)
>        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
> 505)
>        at org.mortbay.jetty.HttpConnection$RequestHandler.content
> (HttpConnection.java:843)
>        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
>        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
>        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
>        at org.mortbay.io.nio.SelectChannelEndPoint.run
> (SelectChannelEndPoint.java:395)
>        at org.mortbay.thread.QueuedThreadPool$PoolThread.run
> (QueuedThreadPool.java:488)
> Caused by: java.net.ConnectException: Connection timed out: connect
>        at java.net.PlainSocketImpl.socketConnect(Native Method)
>        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
>        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
> 195)
>        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
>        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
>        at java.net.Socket.connect(Socket.java:519)
>        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect
> (SSLSocketImpl.java:550)
>        at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect
> (BaseSSLSocketImpl.java:141)
>        at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:
> 267)
>        at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher

Re: JUnit configuration for Google Plugin

2009-09-01 Thread Thomas Broyer



On 31 août, 23:48, Gary S  wrote:
> The Plugin's unit testing doc only shows a run 
> configurationhttp://code.google.com/eclipse/docs/gwt_junit.html
>
> It links to a page showing 
> junitCreatorhttp://code.google.com/webtoolkit/doc/1.6/DevGuideTesting.html
>
> I'm missing the part showing to make it work where the test classes
> are under /test instead of /source.
> It isn't clear if it's better to have a separate project for tests or
> a test module within the project.
> If it's a test module within the project what should the setup look
> like
> should source paths be /src and /test ?
> where should junit.jar go ?
> what should the *Test.gwt.xml file look like ?

What I'm doing is:
 1. I'm not using any command line tool (including junitCreator)
 2. I have a "test" source folder in addition to my "src"
 3. I simply put my test classes in the same package as the classes
under test, just within "test" rather than "src"
 4. I do not have *Test.gwt.xml module; my GWTTestCase classes return
the name of the module being tested
 5. as for the JUnit dependency, I've just added the JUnit library
(project's Build Path -> Add library... -> JUnit)

You only need a *Test.gwt.xml module if you have to add some
configurations ( and the like) to your module under
test, or if you need some servlet (unit tests still use the deprecated
GWTShell, so they don't use your "war" folder and its web.xml, this
means you have to declare your servlets the "old way" using 
elements in your module's gwt.xml). Your *Test.gwt.xml in this case
would only  the module being tested and add the appropriate
 or other needed "configuration tweaks".

--~--~-~--~~~---~--~~
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: Running Apache Hupa sample of GWT MVP

2009-09-01 Thread smiletolead

Hi Norman,
 I downloaded the latest code. When connecting to gmail, I get the
following error:

268627 [btpool0-2] ERROR HupaLogger  - Unable to authenticate user
kumar.gane...@gmail.com
javax.mail.MessagingException: Connection timed out: connect;
  nested exception is:
java.net.ConnectException: Connection timed out: connect
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:611)
at javax.mail.Service.connect(Service.java:291)
at org.apache.hupa.server.InMemoryIMAPStoreCache.get
(InMemoryIMAPStoreCache.java:87)
at org.apache.hupa.server.InMemoryIMAPStoreCache.get
(InMemoryIMAPStoreCache.java:69)
at org.apache.hupa.server.handler.LoginUserHandler.execute
(LoginUserHandler.java:71)
at org.apache.hupa.server.handler.LoginUserHandler.execute
(LoginUserHandler.java:1)
at net.customware.gwt.dispatch.server.DefaultDispatch.doExecute
(DefaultDispatch.java:78)
at net.customware.gwt.dispatch.server.DefaultDispatch.execute
(DefaultDispatch.java:68)
at
net.customware.gwt.dispatch.server.service.DispatchServiceServlet.execute
(DispatchServiceServlet.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse
(RPC.java:527)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:166)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at com.google.inject.servlet.ServletDefinition.doService
(ServletDefinition.java:216)
at com.google.inject.servlet.ServletDefinition.service
(ServletDefinition.java:141)
at com.google.inject.servlet.ManagedServletPipeline.service
(ManagedServletPipeline.java:93)
at com.google.inject.servlet.FilterChainInvocation.doFilter
(FilterChainInvocation.java:63)
at com.google.inject.servlet.ManagedFilterPipeline.dispatch
(ManagedFilterPipeline.java:122)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:
110)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1088)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:729)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
at org.mortbay.jetty.handler.RequestLogHandler.handle
(RequestLogHandler.java:49)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:324)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
505)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:843)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)
Caused by: java.net.ConnectException: Connection timed out: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:
195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect
(SSLSocketImpl.java:550)
at com.sun.net.ssl.internal.ssl.BaseSSLSocketImpl.connect
(BaseSSLSocketImpl.java:141)
at com.sun.mail.util.SocketFetcher.createSocket(SocketFetcher.java:
267)
at com.sun.mail.util.SocketFetcher.getSocket(SocketFetcher.java:227)
at com.sun.mail.iap.Protocol.(Protocol.java:107)
at com.sun.mail.imap.protocol.IMAPProtocol.(IMAPProtocol.java:
103)
at com.sun.mail.imap.IMAPStore.protocolConnect(IMAPStore.java:578)
... 40 more


On Sep 1, 11:44 am, Norman Maurer  wrote:
> Hi 

Re: onKeyDownPreview to onPreviewNativeEvent

2009-09-01 Thread monkeyboy

Thanks for the tip Matt. Though I feel the old (deprecated) way of
doing things was much clearer and easier to understand and code. I'm
not really sure why they changed it.

On Sep 1, 9:03 am, Mat Gessel  wrote:
> What, you want to read properties from the Event? Absurd!
>
> // (disclaimer: hand written in Gmail)
> HanderRegistration reg = Event.addNativePreviewHandler(new
> NativePreviewHandler()
> {
>   public void onPreviewNativeEvent(NativePreviewEvent event)
>   {
>     Event event0 = Event.as(event.getNativeEvent());
>     if (event0.getTypeInt() == Event.ONKEYDOWN)
>     {
>       int keyCode = event0.getKeyCode();
>       if (condition) // optional
>       {
>         event.cancel();
>       }
>     }
>   }
>
> });
>
> --
> Mat Gesselhttp://www.asquare.net
>
>
>
> On Mon, Aug 31, 2009 at 6:29 AM, monkeyboy wrote:
>
> > In my code I am using onKeyDownPreview to hide a popup when the escape
> > key is hit.
> >    public boolean onKeyDownPreview(char key, int modifiers) {
> >        switch (key) {
> >            case KeyCodes.KEY_ESCAPE:
> >                hide();
> >                break;
> >        return true;
> >    }
> > But the onKeyDownPreview is deprecated and I was wandering how would a
> > version with onPreviewNativeEvent (the new way of handling events)
> > would look like? Any suggestions? Am I the only one to think that the
> > Google documentation about this is too terse?
--~--~-~--~~~---~--~~
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: onKeyDownPreview to onPreviewNativeEvent

2009-09-01 Thread Mat Gessel

What, you want to read properties from the Event? Absurd!

// (disclaimer: hand written in Gmail)
HanderRegistration reg = Event.addNativePreviewHandler(new
NativePreviewHandler()
{
  public void onPreviewNativeEvent(NativePreviewEvent event)
  {
Event event0 = Event.as(event.getNativeEvent());
if (event0.getTypeInt() == Event.ONKEYDOWN)
{
  int keyCode = event0.getKeyCode();
  if (condition) // optional
  {
event.cancel();
  }
}
  }
});

-- 
Mat Gessel
http://www.asquare.net

On Mon, Aug 31, 2009 at 6:29 AM, monkeyboy wrote:
>
> In my code I am using onKeyDownPreview to hide a popup when the escape
> key is hit.
>    public boolean onKeyDownPreview(char key, int modifiers) {
>        switch (key) {
>            case KeyCodes.KEY_ESCAPE:
>                hide();
>                break;
>        return true;
>    }
> But the onKeyDownPreview is deprecated and I was wandering how would a
> version with onPreviewNativeEvent (the new way of handling events)
> would look like? Any suggestions? Am I the only one to think that the
> Google documentation about this is too terse?

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