Re: can not set breakpoint

2010-02-09 Thread go canal
it is http://127.0.0.1:/
 rgds,
canal 





From: Jason Parekh 
To: google-web-toolkit@googlegroups.com
Sent: Tue, February 9, 2010 11:38:47 PM
Subject: Re: can not set breakpoint

Hi Canal, 

Which URL is your browser pointing at?

jason


On Mon, Feb 8, 2010 at 8:51 PM, go canal  wrote:

I have upgraded JDK to 1.6u18. tried the default project greetService, still 
the same.
> rgds,
>canal 
>
>
>
>
>

From: Jason Parekh 
>To: google-web-toolkit@googlegroups.com
>Sent: Mon, February 8, 2010 11:34:43 PM
>Subject: Re: can not set breakpoint
>
>
>Hi Canal, 
>
>
>What version of Java are you running?
>Could you try on a simple project (perhaps the default app created by the 
>wizard)?
>I'm assuming the breakpoints do not show the checkmark on top of them (when 
>the debugger is connected)?
>
>
>jason
>
>
>On Sun, Feb 7, 2010 at 8:05 PM, canal  wrote:
>
>hi,
>>searched the group but still can not make it work - can not set
>>breakpoint in the client code
>>
>>i am using Eclipse 3.5, GWT 2.0.1, with plugin. Chrome;
>>
>>I can not set any breakpoint in the client code - not in the callback,
>>not in the OnModuleLoad.
>>
>>Server code is ok.
>>
>>thanks
>>canal
>>
>>
>>--
>>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-tool...@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.
>>
>>
>-- 
>
>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-tool...@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..
>
>-- 
>
>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-tool...@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.
>
-- 
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-tool...@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.



  

-- 
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-tool...@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: RootPanel.get().clear() does not clear the page

2010-02-09 Thread go canal
Hi,
Thanks for your reply. 
I have not tested but I think getElement().setInnerHTML will work.

First, I thought that I can juse use RootPanel.get().clear() to remove 
everything on the current page; then I hope I can use something like 
RootPanel.get("id").clear() if I have sometign like this in my html file:
 
But it does not work..

So looks like I need to use setInnerHTML. 
 rgds,
canal 





From: Ashar Lohmar 
To: Google Web Toolkit 
Sent: Tue, February 9, 2010 10:35:06 PM
Subject: Re: RootPanel.get()..clear() does not clear the page

Hi
the clear() method on the HasWidgets objects only removes the child
widgets that had been added to it by using the add method
in you case the logic is kind of ok, the
RootPanel..get("nameofcontainer") is a child of RootPanel.get() in the
DOM point of view, but
but not for the HasWidgets object represented by the RootPanel..get()

an work around would be to do something like
RootPanel.get().getElement().setInnerHTML(""); but the when you'll try
an RootPanel.get("nameofcontainer") you'll get nothing because there
will no more be an object with the id=nameofcontainer

also it's possible to end up with "artifacts" object that you may have
in memory but don't exist in the page/document (i don't know if this
is true for sure).
hope I managed to explain it so that you could understand my point
good luck in finding a solution, or if you'll come back with more
details of what you want to achieve maybe I/we would be able to help
more.

On Feb 8, 4:46 am, go canal  wrote:
> Hi,
> I try to add RootPanel.get().clear() in the callback but it does not clear 
> anything. If I use RootPanel.get("nameofcontainer").clear(), then it works - 
> that widget is removed.
>
> I am using the default greet example. GWT 2.0.1, Chrome browser. This is how 
> I create the widgets: 
> RootPanel.get(
> RootPanel.get(
> RootPanel.get(
> RootPanel.get("nameFieldContainer").add(nameField);"passwordFieldContainer").add(passwordField);"sendButtonContainer").add(sendButton);"errorLabelContainer").add(errorLabel);
>
> Did I understand RootPanel.get().clear() correctly - I thought it will 
> clear everything on the page
> rgds,
> canal

-- 
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-tool...@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.


  

-- 
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-tool...@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: Uploading image via RPC to use in TreeItem

2010-02-09 Thread rjcarr
You'll want the middle-tier to acquire the image bytes and store them
on the web server.  Then you'll want to return these image URLs to the
GUI in some way, say, using RPC.  Or, you put the images on your
middle-tier and the have a servlet that fields parameterized image
requests and returns the corresponding image.

Basically, you don't want to try and send image bytes through RPC ...
avoid that and you should be fine.

On Feb 8, 12:55 am, tdk  wrote:
> Folks'es,
>
> I have the following situation with images (and none of the
> discussions I found seemed appropriate):
>
> + I have a GUI that shows a tree with tree items
> + each tree item has an associated image, depending on its type
> + the tree data incl images is loaded via RPC
> + the servlet runs on a middle-tier and gets its data from a back-end
> server via a defined API
> + all data, incl images, comes from the back-end server and is to be
> sent to the GUI
>
> what is the best way to do this and
> what do I need to pass the image to the TreeItem
>
> Thomas
>
> PS: I'm an absolute newbie to GWT and RPC, fairly new to web apps, but
> I know my Swing inside-out...

-- 
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-tool...@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: Using RequestBuilder to request from local file system

2010-02-09 Thread rjcarr
Hi David-

This is an interesting problem.  I can see how browsers would have
different policies about how they access files on the local
filesystem.  I would guess that what you're trying to do most browsers
wouldn't allow and/or support.

I think you're going to need to rethink how your help documents are
organized.  I don't think you should rely on RequestBuilder to access
a local filesystem (i.e., without a remote server).  The
RequestBuilder is to make a GET or POST request to a web server, not
read a file from the filesystem.

Do you really need your entire help system to use GWT?

On Feb 8, 11:02 am, vanfleet  wrote:
> Hi, I'm trying to use RequestBuilder to pull html files off my local
> system and I'm getting the "...file.html is invalid or violates the
> same-origin security restriction" error in IE 7, but in Firefox 3.5.7
> it works fine. When I setup the call I'm using:
>
>   String url=GWT.getHostPageBaseURL() + "file.html";
>   RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,url);
>
> Since I'm not working off a server the url looks something like:
>
>   file:///D:/some/dir/MyGWTApp/file.html
>
> Since the file I'm trying to get is in the same space as the GWT
> application I don't understand why it would be violating the same-
> origin security restriction. I know that Ajax can do this, I've done
> it before using Dojo.
>
> My problem here is that I have a requirement that documentation be
> shipped to customers on a CD rather than being accessed on the web.
> What can I do to fix this, any help would be greatly appreciated.
>
> Thanks,
> David

-- 
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-tool...@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: java.io.Serializable not accepted for serialization

2010-02-09 Thread rjcarr
Are you sure that the class that you want to serialize (implements
Serializable) is within your gwt module package?

On Feb 9, 2:25 am, Andrea Polci  wrote:
> Whenever I try to use in my services a class that implements
> java.io.Serializable and not IsSerializable I get the following
> runtime error:
>
> com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
> Type 'com.extjs.gxt.ui.client.data.BaseModel' was not assignable to
> 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
> custom field serializer. For security purposes, this type will not be
> deserialized.
>
> I'm using GWT 2.0.1 so Serializable should be supported.
>
> I get no compile-time error.
>
> The serialization policy file seems to be deployed correctly and
> contains the class that cannot be deserialized (in the example above
> com.extjs.gxt.ui.client.data.BaseModel).
>
> I checked that I have the right version of gwt-servlet.jar.
>
> I don't know what else to try, can someone help 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-tool...@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: App works in ff and chrome but not in ie8

2010-02-09 Thread rjcarr
I'm not sure how to address this in GWT 2.0, but prior to 2.0 if I had
problems in IE I would run the hosted mode environment in Windows and
it would expose the problem.  Since the Windows version of hosted mode
uses IE it will show you the problem that it is having (almost
certainly something isn't getting initialized properly).

In GWT 2.0 I think you can get a plug-in for IE that will effectively
do the same thing, but I haven't been able to test it.

-- 
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-tool...@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: Read XML file on server using ServletContext.getResource() never works for me

2010-02-09 Thread Joe Cole
>From memory we had heaps of trouble using getResource, and ended up
using getResourceAsStream. Give that a go?

InputStream stream =
configuration.getServletContext().getResourceAsStream(location);

On Feb 10, 6:09 pm, Lucas86  wrote:
> I've been trying to read an XML in my RPC servlet and I'm having
> trouble reading the file in development mode using
> ServletContext.getResource(). This is my first try, and I think I must
> be missing something simple but I haven't been able to find what the
> missing piece is. Every path I've passed to getResource has returned
> null, but when I call getResourcePaths() on the same context I get a
> full list of expected paths. When I any of these paths to getResource,
> it still returns null.
>
> ==Not complete code, but just copied from my running project==
> ServletContext context = getServletContext();
> String paths = context.getResourcePaths("/
> myapp/").toString();         //Returns a list, including "/myapp/
> hosted.html"
> java.net.URL testUrl = context.getResource("/myapp/hosted.html");   //
> Returns null (Not really what I'm looking for, but I need to get it
> finding something first)
> 
>
> I realize this isn't strictly a GWT question, but that's where I'm
> working and I've heard so many unhelpful not-quite-related solutions
> (that usually just say "use getResource") that I really wanted to ask
> here in case there are any special cases when working with the
> imbedded jetty server in GWT 2.0. Does anyone know why
> getResourcePaths sees what I'm looking for but the same paths fail
> when passed to getResource?
>
> Thanks for any help.

-- 
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-tool...@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.



Read XML file on server using ServletContext.getResource() never works for me

2010-02-09 Thread Lucas86
I've been trying to read an XML in my RPC servlet and I'm having
trouble reading the file in development mode using
ServletContext.getResource(). This is my first try, and I think I must
be missing something simple but I haven't been able to find what the
missing piece is. Every path I've passed to getResource has returned
null, but when I call getResourcePaths() on the same context I get a
full list of expected paths. When I any of these paths to getResource,
it still returns null.

==Not complete code, but just copied from my running project==
ServletContext context = getServletContext();
String paths = context.getResourcePaths("/
myapp/").toString(); //Returns a list, including "/myapp/
hosted.html"
java.net.URL testUrl = context.getResource("/myapp/hosted.html");   //
Returns null (Not really what I'm looking for, but I need to get it
finding something first)


I realize this isn't strictly a GWT question, but that's where I'm
working and I've heard so many unhelpful not-quite-related solutions
(that usually just say "use getResource") that I really wanted to ask
here in case there are any special cases when working with the
imbedded jetty server in GWT 2.0. Does anyone know why
getResourcePaths sees what I'm looking for but the same paths fail
when passed to getResource?

Thanks for any help.

-- 
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-tool...@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: Authenticate before loading the application

2010-02-09 Thread dougx
Absolutely, store the files in the data store or something but serve
them as though they were normal pages; simply serving a static
resource via servlet won't achieve anything.

Also; don't use code splitting as a security measure; it's a client
side thing, which means it can be avoided. (Yes, I know, it's a server
side thing, but _triggering_ it is a client side thing, and you can do
that even if the application doesn't want you to).

~
Doug.

On Feb 10, 5:20 am, Simon  wrote:
> @dougx
> Thanks for your post, I didn't knew that app engine did not support
> 304.
>
> One difference: I want the files to be accessed *only* by servlet, ie
> the servlet should serve the files, not redirect to them.
>
> On 9 fév, 09:44, dougx  wrote:
>
>
>
> > Serve content via servlet, it's fair easy. For an example look 
> > here:http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine...
>
> > You can then check in the servlet for authentication via cookie / id
> > and refuse to serve unauthenticated users.
>
> > ~
> > Doug.
>
> > On Feb 9, 6:26 am, Simon  wrote:
>
> > > Yes that is the basics of app engine security. I use it to get the
> > > Google account of the user.
>
> > > This is the first step of the login: Google authentication.
> > > Second step I want to validate the Google account against my own set
> > > of users,
> > > Last step I want to send to the user the whole javascript app.
>
> > > On 8 fév, 23:04, Youngster  wrote:
>
> > > > Did you have a look at this 
> > > > page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
> > > > ?

-- 
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-tool...@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: Authenticate before loading the application

2010-02-09 Thread Martin D'Aloia
it's not enough for you doing something like this?


 SecurityFilter
 com.domain.app.filter.SecurityFilter
 

 SecurityFilter
 oneServletURL


 SecurityFilter
 anotherServletURL


 SecurityFilter
 *.js


 SecurityFilter
 *.css


... and more filter-mapping for your other resources files.


On Tue, Feb 9, 2010 at 6:20 PM, Simon  wrote:

> @dougx
> Thanks for your post, I didn't knew that app engine did not support
> 304.
>
> One difference: I want the files to be accessed *only* by servlet, ie
> the servlet should serve the files, not redirect to them.
>
> On 9 fév, 09:44, dougx  wrote:
> > Serve content via servlet, it's fair easy. For an example look here:
> http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine...
> >
> > You can then check in the servlet for authentication via cookie / id
> > and refuse to serve unauthenticated users.
> >
> > ~
> > Doug.
> >
> > On Feb 9, 6:26 am, Simon  wrote:
> >
> >
> >
> > > Yes that is the basics of app engine security. I use it to get the
> > > Google account of the user.
> >
> > > This is the first step of the login: Google authentication.
> > > Second step I want to validate the Google account against my own set
> > > of users,
> > > Last step I want to send to the user the whole javascript app.
> >
> > > On 8 fév, 23:04, Youngster  wrote:
> >
> > > > Did you have a look at this page:
> http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
> > > > ?
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Client Bundle and Image Internationalization

2010-02-09 Thread Christian Goudreau
It seem that only the default value is used.

I have three files : image.png, image_en_CA.png and image_fr_CA.png.

Everything is working fin in dev mode, but when it come to publish, only
image.png is taken into account.

Maybe it's because I have PHP server side ?

Can anyone help me ?

Christian

On Tue, Feb 9, 2010 at 8:02 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> It doesn't work after build ! My images are a mess and I can't even change
> de locale, what am I missing ?
>
> Christian
>
>
> On Mon, Feb 8, 2010 at 4:24 PM, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> Ok... it's working in dev mode, I don't know why it didnt when going live,
>> I'll do some more test and come back later
>>
>> On Mon, Feb 8, 2010 at 12:02 PM, Christian Goudreau <
>> goudreau.christ...@gmail.com> wrote:
>>
>>> There's an example of what I have :
>>>
>>> Inside the client bundle :
>>>
>>> ImageResource example();
>>>
>>> and in my directory I have : exemple.png
>>> exemple_fr_CA.png
>>> exemple_en_CA.png
>>>
>>> and when I set the local to fr_CA, I have exemple.png instead...
>>>
>>> On Sun, Feb 7, 2010 at 10:20 PM, Christian Goudreau <
>>> goudreau.christ...@gmail.com> wrote:
>>>
 I know how to implements localizable images with Image bundle, but how
 does it works with Client Bundle ? I found nothing about that in the
 documentation and I was wondering what was the best way to acheive this 
 with
 Gwt 2.0.

 Thx

 Christian

>>>
>>>
>>
>

-- 
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-tool...@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: Client Bundle and Image Internationalization

2010-02-09 Thread Christian Goudreau
It doesn't work after build ! My images are a mess and I can't even change
de locale, what am I missing ?

Christian

On Mon, Feb 8, 2010 at 4:24 PM, Christian Goudreau <
goudreau.christ...@gmail.com> wrote:

> Ok... it's working in dev mode, I don't know why it didnt when going live,
> I'll do some more test and come back later
>
> On Mon, Feb 8, 2010 at 12:02 PM, Christian Goudreau <
> goudreau.christ...@gmail.com> wrote:
>
>> There's an example of what I have :
>>
>> Inside the client bundle :
>>
>> ImageResource example();
>>
>> and in my directory I have : exemple.png
>> exemple_fr_CA.png
>> exemple_en_CA.png
>>
>> and when I set the local to fr_CA, I have exemple.png instead...
>>
>> On Sun, Feb 7, 2010 at 10:20 PM, Christian Goudreau <
>> goudreau.christ...@gmail.com> wrote:
>>
>>> I know how to implements localizable images with Image bundle, but how
>>> does it works with Client Bundle ? I found nothing about that in the
>>> documentation and I was wondering what was the best way to acheive this with
>>> Gwt 2.0.
>>>
>>> Thx
>>>
>>> Christian
>>>
>>
>>
>

-- 
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-tool...@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: Large MVP applications and GWT.runAsync()

2010-02-09 Thread jarrod
Ah, well I'd be interested to see what you come up with as far as
reducing the boilerplate.

I had tried a few different scenarios, but I found that unless the
actual call to GWT.runAsync for each proxied Presenter was in a unique
class then the compiler wouldn't split out the code properly. I'm
guessing the code-splitting mechanism in the compiler pivots at least
in part on the class containing the call.

On Feb 9, 4:14 pm, Joe Cheng  wrote:
> OK, great, I went through a similar approach previously. The new approach
> I'm using is similar but you can remove the boilerplate in the proxy
> implementation, as the deferred binding mechanism will fill it all in. In
> fact since you're using Gin it will literally look like this:
>
> public abstract class MyAsyncShim extends AsyncShim { }
>
> I'll reply to this thread when I have something written up. I would also
> like to adapt your idea of using a command queue, right now I'm doing
> something similar but not guaranteeing the methods will be executed in the
> order they were invoked.
>
>
>
> On Tue, Feb 9, 2010 at 8:42 AM, jarrod  wrote:
> > Joe,
>
> > In fact, no it does not work properly with multiple instances, and
> > this is a problem I discovered shortly after originally posting this.
> > The solution I devised was to make the Proxy abstract and simply
> > create concrete sub-classes for each Presenter I want to proxy
> > (anonymous sub-classes do not work!). This is a little tedious, but
> > the abstraction I wrote makes it pretty simple to implement. Below is
> > the updated code. Note that I also changed the ViewProxy to use a
> > LayoutPanel instead of a SimplePanel so that proxied views that
> > implement RequiresLayout are supported.
>
> > /**
> >  * PresenterProxy wraps a Presenter implementation and acts as a
> > gateway to that
> >  * Presenter. The wrapped Presenter is created on-demand the first
> > time any
> >  * method is called, or optionally it can be created eagerly at the
> > time the
> >  * PresenterProxy is created.
> >  *
> >  * Instantiation of the wrapped Presenter occurs behind a
> > GWT.runAsync() call so
> >  * that complex wrapped Presenters may be split out into code
> > fragments during
> >  * module compilation.
> >  *
> >  * In order to achieve this "delayed" instantiation, the
> > PresenterProxy must be
> >  * given a Provider instance to provide the
> > actual
> >  * implementation at the appropriate time.
> >  *
> >  * Additionally, a ViewProxy is utilized that consists of a
> > LayoutPanel to
> >  * minimize the impact on the UI. The ViewProxy can be inserted into
> > the DOM
> >  * immediately without waiting for the wrapped Presenter to become
> > available.
> >  *
> >  * Any calls made to the wrapped Presenter before the instance becomes
> > available
> >  * are queued in a buffer and later replayed when the instance becomes
> >  * available. Once available, all calls are executed immediately on
> > the wrapped
> >  * instance.
> >  *
> >  * @author jcarlson
> >  *
> >  * @param 
> >  */
> > public abstract class PresenterProxy implements
> >         Presenter {
>
> >    private static class ProxyView implements View {
>
> >         LayoutPanel proxy = new LayoutPanel();
>
> >        ProxyView() {
> >        }
>
> >       �...@override
> >        public Widget asWidget() {
> >            return this.proxy;
> >        }
>
> >        protected void setView(View view) {
> >             this.proxy.clear();
> >            this.proxy.add(view.asWidget());
> >         }
>
> >    }
>
> >    private boolean asyncCalled;
> >    private boolean bound;
>
> >    private HandlerManager bus;
> >    private T impl;
> >     private Queue queue;
> >    private ProxyView view;
>
> >     public PresenterProxy(HandlerManager bus) {
> >        this(bus, false);
> >    }
>
> >    public PresenterProxy(HandlerManager bus, boolean eager) {
> >        this.bus = bus;
> >         this.queue = new LinkedList();
> >        this.view = new ProxyView();
> >        if (eager) {
> >            ensurePresenter();
> >        }
> >    }
>
> >   �...@override
> >     public final void bind() {
> >         this.bound = true;
> >        queue(new Command() {
>
> >           �...@override
> >            public void execute() {
> >                 PresenterProxy.this.impl.bind();
> >            }
>
> >        });
> >    }
>
> >   �...@override
> >    public final View getView() {
> >        return this.view;
> >    }
>
> >   �...@override
> >    public final void handleHistory(final HistoryItem item) {
> >         queue(new Command() {
>
> >           �...@override
> >            public void execute() {
> >                 PresenterProxy.this.impl.handleHistory(item);
> >            }
>
> >        });
> >    }
>
> >   �...@override
> >    public final boolean isBound() {
> >        return this.bound;
> >    }
>
> >   �...@override
> >    public final void release() {
> >         queue(new Command() {
>
> >           �...@override
> >            public void

How to get unpublished events from a SuggestBox?

2010-02-09 Thread phb
SuggestBox is an opaque grouping of several underlying widgets which
*nearly* does exactly what I want.  What it doesn't do is update the
textbox with suggested text as you arrow up or down through the list,
or as you hover over suggestions with the mouse.  For an example of
why this is useful, see for instance the Google home page.  There is
an internal MenuBar event that handles highlighting the appropriate
item, but I can't hear it from my package.

Now I can add a KeyDownHandler and catch the arrow key events, and
that works just fine, but then I can't see the current selected item
because the underlying MenuBar is hidden.  So instead I thought of a
really hacky way to do it, by sending a KEY_TAB event in, letting the
box think it's being selected and fire the selection event normally,
but then handling the event differently on the back end.

Unfortunately, although I do see things in the right order, when I
change the keystroke like this:

   Document doc = com.google.gwt.dom.client.Document.get();
   NativeEvent nativeEvent = doc.createKeyDownEvent(false, false,
false, false, KeyCodes.KEY_TAB,KeyCodes.KEY_TAB);
   event.setNativeEvent(nativeEvent);

the SuggestBox still sees a KEY_DOWN.  Also, when I just create a new
event and fire it to either the SuggestBox or its TextBox, it doesn't
seem to respond, and my SelectionHandler isn't called, even though my
KeyDownHandler does see it.

So (1) anyone have a better approach, or failing that (2) anyone know
how to get this one to work?

Cheers,
Geoff

-- 
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-tool...@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: Code Splitting: lots of overhead. Too much?

2010-02-09 Thread Jeff Schnitzer
I have an application whose 600k+ size dropped to about 100k for the
initial download using code splitting.  Not every app will benefit
from code splitting, it really depends on how modular your app is -
are there big pieces of functionality that stand alone, or is
everything woven together?

I did need to look at the metrics.  My initial attempt at code
splitting showed no improvement, but after looking through the metrics
I discovered that my onFailure() was calling some of my framework
code...which then pulled in a ton of other framework code.  Beware of
displaying pretty dialogs in onFailure(), just use Window.alert()!

Jeff

On Tue, Feb 9, 2010 at 2:55 PM, Sky  wrote:
> Bump
>
> I'm really curious if anyone can help me understand how code splitting
> can be useful given the experience I have had with it. It really makes
> little sense why the overhead is so huge.
>
> On Feb 5, 4:16 pm, Sky  wrote:
>> Sorry, I have to retract that last post entirely! I made a mistake in
>> testing it when I removed that one line of code. I forgot that I was
>> no longer actually calling GWT.runAsync() and thus it had gone back to
>> it's original Initial download size. Even removing the "retry" code,
>> but properly using GWT.runAsync() I encounter the original nightmare
>> of overhead.
>>
>> Sorry about the confusion.
>>
>> On Feb 5, 4:10 pm, Sky  wrote:
>>
>>
>>
>> > It appears I am wrong.
>>
>> > If you notice this, don't bother reading my entire blurb above,
>> > instead learn from what I will explain here that was my mistake.
>>
>> > I put inside my onFailure() method a call to the method that calls
>> > GWT.runAsync() and creates the async "handler", effectively making it
>> > retry to download the code (limiting the number of retries of course
>> > before handling the error). Seemed like a good idea to retry because
>> > connection errors can happen and simply retrying may be successful.
>>
>> > However, doing this clearly was my downfall and resulted in the
>> > terrible overhead and getting no reduction in the initial download
>> > size. By removing that one line of code the scenario completely
>> > reversed; the initial download size reduced appropriately and the Full
>> > code size increased only by 5kb.
>>
>> > So, unless someone proposes a better way to "retry" without creating
>> > the above nightmare, I am not going to bother retrying.
>>
>> > cheers
>>
>> > On Feb 5, 3:57 pm, Sky  wrote:
>>
>> > > I successfully used code splitting on a few classes in my project. By
>> > > looking at the compilation report it appears to me that code splitting
>> > > has an incredibly large amount of overhead.
>>
>> > > I've gone through the report carefully and the code that I'm splitting
>> > > is indeed being split and not included in the Initial download.
>>
>> > > For the IE8 permutation, while splitting one 100 line class my Initial
>> > > download size jumped from 115kb to 141kb. That's 26kb and 22% increase
>> > > in my project size. Yeah the Full code size is indeed almost a 3kb
>> > > larger than the 141kb, though 10% of that is some code splitter code
>> > > that ends up being split along with class I split (and the widgets it
>> > > uses).
>>
>> > > Now, if I split another six 60 line classes you would think the
>> > > overhead wouldn't change much at all but it does. The initial download
>> > > size increases from the above 141kb to 145kb and the Full code size
>> > > increases from 144kb to 152kb.
>>
>> > > So ok, I would have expected that even if you split a gazillion small
>> > > pieces of code you would only pay for a fixed overhead on the async
>> > > code, but since I don't know how it works internally I can admit that
>> > > this may very well not be a good way to do code splitting. Similarly,
>> > > spinning off multiple threads/processes has a fixed amount of overhead
>> > > per thread/process in terms of memory used.
>>
>> > > However, I must complain that the overhead is just way too large. It
>> > > is 25% of my current project size. I estimate that maybe only around
>> > > 20-30% of my app will be able to be code split when I am done, but
>> > > because of this overhead that makes it completely pointless for me. It
>> > > appears that it would only be useful if your app becomes significantly
>> > > larger than 200kb. Maybe code splitting the odd 10kb of code here and
>> > > there with a total of 60kb isn't exactly saving a whole lot of space
>> > > off a 200kb app, but it would help the app to start up just that much
>> > > quicker. Besides, what about an app that will end up having hundreds
>> > > of those little 5-10kb "pages" that really only need to be lazy
>> > > loaded?
>>
>> > > Does anyone have anything to say or pointers on how to decrease the
>> > > overhead? Maybe I did something wrong, I am a novice at using GWT's
>> > > code splitting after all.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group,

Re: Any Google Wave developers in this group?

2010-02-09 Thread Sky
I also hope to incorporate wave into my current GWT projects ^_^

It mostly depends on how complete it is. Last I checked (a good number
of months ago) the Wave API was very much in it's infancy. I'm going
to revisit it soon!

On Feb 9, 8:58 am, Christian Goudreau 
wrote:
> Yes I am too !
>
> Christian
>
>
>
> On Tue, Feb 9, 2010 at 9:57 AM, Duong BaTien  wrote:
> > Yes. We use GWT, GAE, and Wave
>
> > Duong BaTien
> > DBGROUPS and BudhNet
>
> > On Tue, 2010-02-09 at 00:32 -0800, dougx wrote:
> > > Yes. I use GWT for all my wave code; please post if you create a
> > > specific group for wave related GWT stuff...
>
> > > ~
> > > Doug.
>
> > > On Feb 9, 1:57 pm, Jonas Huckestein  wrote:
> > > > Hi guys,
>
> > > > I was wondering if there were enough wave developers around here that
> > > > use gwt so that we could start our own group. I feel that in both the
> > > > Wave API group and in this one messages on that subject tend to go
> > > > unnoticed.
>
> > > > Anybody interested?
>
> > > > I am about to publish my own mock implementation of the Wave API for
> > > > GWT that I made to locally test my gadgets, but I guess I might not be
> > > > the only one.
>
> > > > Cheers,
> > > > Jonas
> > > > --
> > > > Jonas Huckestein
>
> > > >http://thezukunft.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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: Code Splitting: lots of overhead. Too much?

2010-02-09 Thread Sky
Bump

I'm really curious if anyone can help me understand how code splitting
can be useful given the experience I have had with it. It really makes
little sense why the overhead is so huge.

On Feb 5, 4:16 pm, Sky  wrote:
> Sorry, I have to retract that last post entirely! I made a mistake in
> testing it when I removed that one line of code. I forgot that I was
> no longer actually calling GWT.runAsync() and thus it had gone back to
> it's original Initial download size. Even removing the "retry" code,
> but properly using GWT.runAsync() I encounter the original nightmare
> of overhead.
>
> Sorry about the confusion.
>
> On Feb 5, 4:10 pm, Sky  wrote:
>
>
>
> > It appears I am wrong.
>
> > If you notice this, don't bother reading my entire blurb above,
> > instead learn from what I will explain here that was my mistake.
>
> > I put inside my onFailure() method a call to the method that calls
> > GWT.runAsync() and creates the async "handler", effectively making it
> > retry to download the code (limiting the number of retries of course
> > before handling the error). Seemed like a good idea to retry because
> > connection errors can happen and simply retrying may be successful.
>
> > However, doing this clearly was my downfall and resulted in the
> > terrible overhead and getting no reduction in the initial download
> > size. By removing that one line of code the scenario completely
> > reversed; the initial download size reduced appropriately and the Full
> > code size increased only by 5kb.
>
> > So, unless someone proposes a better way to "retry" without creating
> > the above nightmare, I am not going to bother retrying.
>
> > cheers
>
> > On Feb 5, 3:57 pm, Sky  wrote:
>
> > > I successfully used code splitting on a few classes in my project. By
> > > looking at the compilation report it appears to me that code splitting
> > > has an incredibly large amount of overhead.
>
> > > I've gone through the report carefully and the code that I'm splitting
> > > is indeed being split and not included in the Initial download.
>
> > > For the IE8 permutation, while splitting one 100 line class my Initial
> > > download size jumped from 115kb to 141kb. That's 26kb and 22% increase
> > > in my project size. Yeah the Full code size is indeed almost a 3kb
> > > larger than the 141kb, though 10% of that is some code splitter code
> > > that ends up being split along with class I split (and the widgets it
> > > uses).
>
> > > Now, if I split another six 60 line classes you would think the
> > > overhead wouldn't change much at all but it does. The initial download
> > > size increases from the above 141kb to 145kb and the Full code size
> > > increases from 144kb to 152kb.
>
> > > So ok, I would have expected that even if you split a gazillion small
> > > pieces of code you would only pay for a fixed overhead on the async
> > > code, but since I don't know how it works internally I can admit that
> > > this may very well not be a good way to do code splitting. Similarly,
> > > spinning off multiple threads/processes has a fixed amount of overhead
> > > per thread/process in terms of memory used.
>
> > > However, I must complain that the overhead is just way too large. It
> > > is 25% of my current project size. I estimate that maybe only around
> > > 20-30% of my app will be able to be code split when I am done, but
> > > because of this overhead that makes it completely pointless for me. It
> > > appears that it would only be useful if your app becomes significantly
> > > larger than 200kb. Maybe code splitting the odd 10kb of code here and
> > > there with a total of 60kb isn't exactly saving a whole lot of space
> > > off a 200kb app, but it would help the app to start up just that much
> > > quicker. Besides, what about an app that will end up having hundreds
> > > of those little 5-10kb "pages" that really only need to be lazy
> > > loaded?
>
> > > Does anyone have anything to say or pointers on how to decrease the
> > > overhead? Maybe I did something wrong, I am a novice at using GWT's
> > > code splitting after all.

-- 
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-tool...@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 with Thread in GWT2.0

2010-02-09 Thread Joe Cheng
I just meant something like this.

void *pollForEvents() *{
  server.getEvents(new AsyncCallback() {
public void onSuccess(Event[] result) {
  handleEvents(result);
  *pollForEvents();*
}
public void onFailure(Throwable caught) {
  // do something with the error...
  if (shouldRetry(caught))
*pollForEvents();*
}
  });
}

On Mon, Feb 8, 2010 at 4:22 AM, SergeZ  wrote:

> Can you give a simple example of how to make this "looped"
> asynccallback call ?
>
> On 8 фев, 11:39, Joe Cheng  wrote:
> > If you use a timer, your data will be delayed by up to the period of the
> > timer (e.g. if your timer fires every 5 seconds then there will be a
> delay
> > of up to 5 seconds to display your data).
> >
> > Rather than an infinite while or for loop, you can "loop" by having the
> RPC
> > call's AsyncCallback onSuccess and onFailure methods make the RPC call
> > again. On the server side, you can make the RPC call block until some
> data
> > is ready. (You don't want to block for too long, otherwise the RPC call
> will
> > time out--but not too short either, otherwise you will be creating
> > unnecessary network traffic).
> >
> >
> >
> > On Sun, Feb 7, 2010 at 12:46 PM, SergeZ  wrote:
> > > Thanks to your all for answers on my question! I'll try to call the
> > > run() method ( how can I\ forgot to call it))  ). But I thinking that
> > > it will not helps me...
> >
> > > Actually, I have the one concrete task - create some similarity to
> > > monitoring system. My software must receive data from DataBase and
> > > represent it without any delays. Server's part of App based on summary
> > > of Sockets, Rmi technologies. And Client part of app - of course GWT
> > > GUI. Both of them connects through RPC AsyncCall. (it's just a
> > > standart GWT's scheme applications )  So, the real question is about
> > > possibility to create these app.. As I rightly understood, the only
> > > way I can use to get data from Server Side - is to use RPC call to
> > > server's method  and I can NOT do this in an infinite loop because It
> > > will interrupt my app's logic. And also I can NOT use for this
> > > purposes threads - due to signle-threadness of JavaSript. Am I right
> > > about that I can just simulate a real-time data receiving through
> > > using GWT's timer and each time when a timer will expired I'll have to
> > > make a RPC call to Server Side to getting the data ?
> >
> > > --
> > > 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-tool...@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.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Servlet URL not found when deploying

2010-02-09 Thread Davidj2k
I did try checking, and it is calling the correct path, but the path
does not exist and this is my exact servlet mapping in the web.xml
file
  
servletUpload
com.myapp.server.FileUploadServlet
  

  
servletUpload
/myapp/servletUpload
  

On Feb 9, 4:12 pm, obesga  wrote:
> Maybe it's calling to /MyApp/servletUpload
>
> Just try with firebug or httpfox on Firefox to know  where is normal
> calling going, to compare with failure one.
> Or make
>
>     
>         servletUpload
>         /MyApp/myapp/servletUpload
>     
>     
>         servletUpload
>         /MyApp/servletUpload
>     
>
> Hope that helps
>
> On 9 feb, 22:00, Davidj2k  wrote:
>
>
>
> > When I try to deploy my application to a Linux server I get this error
>
> > "Not Found   The requested URL /MyApp/myapp/servletUpload was not
> > found on this server."
>
> > However, when I am developing it in Eclipse it works fine, what do I
> > need to do to get it to work on the Linux server?

-- 
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-tool...@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: Authenticate before loading the application

2010-02-09 Thread Simon
@dougx
Thanks for your post, I didn't knew that app engine did not support
304.

One difference: I want the files to be accessed *only* by servlet, ie
the servlet should serve the files, not redirect to them.

On 9 fév, 09:44, dougx  wrote:
> Serve content via servlet, it's fair easy. For an example look 
> here:http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine...
>
> You can then check in the servlet for authentication via cookie / id
> and refuse to serve unauthenticated users.
>
> ~
> Doug.
>
> On Feb 9, 6:26 am, Simon  wrote:
>
>
>
> > Yes that is the basics of app engine security. I use it to get the
> > Google account of the user.
>
> > This is the first step of the login: Google authentication.
> > Second step I want to validate the Google account against my own set
> > of users,
> > Last step I want to send to the user the whole javascript app.
>
> > On 8 fév, 23:04, Youngster  wrote:
>
> > > Did you have a look at this 
> > > page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
> > > ?

-- 
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-tool...@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: SOP in GWT 2.0

2010-02-09 Thread obesga
Making ../myfile.xml
you're telling the browser to access file into another server.
¿ Cant you use "myfile.xml" on the base url of server ?

Hope that helps

On 8 feb, 23:25, Lothrien  wrote:
> In development mode I can access the xml file I want to read within
> the GWT application - everything ok so far.
> When I compile the app and call it from the file system, this was
> working in v1.7.1, but now I get an SOP error(!)
> How can I get around this?
>
> public String xmlfile= "../xml_with_content.xml";
>
> String xml = GWT.getModuleBaseURL() + xmlfile;
> RequestBuilder requestBuilder = new
> RequestBuilder(RequestBuilder.GET,xml);
>    try {
>       requestBuilder.sendRequest(null, new RequestCallback() {
>         public void onError(Request request, Throwable exception) {
>           requestFailed(exception);
>         }
>         public void onResponseReceived(Request request, Response
> response) {
>            loadXML(response.getText());
>         }
>     });
>     } catch (RequestException ex) {
>         requestFailed(ex);
>     }

-- 
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-tool...@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: Large MVP applications and GWT.runAsync()

2010-02-09 Thread Joe Cheng
OK, great, I went through a similar approach previously. The new approach
I'm using is similar but you can remove the boilerplate in the proxy
implementation, as the deferred binding mechanism will fill it all in. In
fact since you're using Gin it will literally look like this:

public abstract class MyAsyncShim extends AsyncShim { }

I'll reply to this thread when I have something written up. I would also
like to adapt your idea of using a command queue, right now I'm doing
something similar but not guaranteeing the methods will be executed in the
order they were invoked.

On Tue, Feb 9, 2010 at 8:42 AM, jarrod  wrote:

> Joe,
>
> In fact, no it does not work properly with multiple instances, and
> this is a problem I discovered shortly after originally posting this.
> The solution I devised was to make the Proxy abstract and simply
> create concrete sub-classes for each Presenter I want to proxy
> (anonymous sub-classes do not work!). This is a little tedious, but
> the abstraction I wrote makes it pretty simple to implement. Below is
> the updated code. Note that I also changed the ViewProxy to use a
> LayoutPanel instead of a SimplePanel so that proxied views that
> implement RequiresLayout are supported.
>
> /**
>  * PresenterProxy wraps a Presenter implementation and acts as a
> gateway to that
>  * Presenter. The wrapped Presenter is created on-demand the first
> time any
>  * method is called, or optionally it can be created eagerly at the
> time the
>  * PresenterProxy is created.
>  *
>  * Instantiation of the wrapped Presenter occurs behind a
> GWT.runAsync() call so
>  * that complex wrapped Presenters may be split out into code
> fragments during
>  * module compilation.
>  *
>  * In order to achieve this "delayed" instantiation, the
> PresenterProxy must be
>  * given a Provider instance to provide the
> actual
>  * implementation at the appropriate time.
>  *
>  * Additionally, a ViewProxy is utilized that consists of a
> LayoutPanel to
>  * minimize the impact on the UI. The ViewProxy can be inserted into
> the DOM
>  * immediately without waiting for the wrapped Presenter to become
> available.
>  *
>  * Any calls made to the wrapped Presenter before the instance becomes
> available
>  * are queued in a buffer and later replayed when the instance becomes
>  * available. Once available, all calls are executed immediately on
> the wrapped
>  * instance.
>  *
>  * @author jcarlson
>  *
>  * @param 
>  */
> public abstract class PresenterProxy implements
> Presenter {
>
>private static class ProxyView implements View {
>
> LayoutPanel proxy = new LayoutPanel();
>
>ProxyView() {
>}
>
>@Override
>public Widget asWidget() {
>return this.proxy;
>}
>
>protected void setView(View view) {
> this.proxy.clear();
>this.proxy.add(view.asWidget());
> }
>
>}
>
>private boolean asyncCalled;
>private boolean bound;
>
>private HandlerManager bus;
>private T impl;
> private Queue queue;
>private ProxyView view;
>
> public PresenterProxy(HandlerManager bus) {
>this(bus, false);
>}
>
>public PresenterProxy(HandlerManager bus, boolean eager) {
>this.bus = bus;
> this.queue = new LinkedList();
>this.view = new ProxyView();
>if (eager) {
>ensurePresenter();
>}
>}
>
>@Override
> public final void bind() {
> this.bound = true;
>queue(new Command() {
>
>@Override
>public void execute() {
> PresenterProxy.this.impl.bind();
>}
>
>});
>}
>
>@Override
>public final View getView() {
>return this.view;
>}
>
>@Override
>public final void handleHistory(final HistoryItem item) {
> queue(new Command() {
>
>@Override
>public void execute() {
> PresenterProxy.this.impl.handleHistory(item);
>}
>
>});
>}
>
>@Override
>public final boolean isBound() {
>return this.bound;
>}
>
>@Override
>public final void release() {
> queue(new Command() {
>
>@Override
>public void execute() {
> PresenterProxy.this.impl.release();
>}
>});
>this.bound = false;
>}
>
>protected final void onAsyncFailure(Throwable reason) {
>PresenterProxy.this.bus
>.fireEvent(new ApplicationExceptionEvent(reason));
>}
>
>protected final void onAsyncSuccess(T impl) {
>// set impl instance
>this.impl = impl;
>
>// fill-in proxy view
>this.view.setView(PresenterProxy.this.impl.getView());
>
>// execute any queued commands
>while (ResizingPresenterProxy.this.queue.peek() != null) {
>Command cmd = PresenterProxy.this.queue.poll();
>cmd.execute();
>}
>
>

Re: Servlet URL not found when deploying

2010-02-09 Thread obesga
Maybe it's calling to /MyApp/servletUpload


Just try with firebug or httpfox on Firefox to know  where is normal
calling going, to compare with failure one.
Or make


servletUpload
/MyApp/myapp/servletUpload


servletUpload
/MyApp/servletUpload


Hope that helps

On 9 feb, 22:00, Davidj2k  wrote:
> When I try to deploy my application to a Linux server I get this error
>
> "Not Found   The requested URL /MyApp/myapp/servletUpload was not
> found on this server."
>
> However, when I am developing it in Eclipse it works fine, what do I
> need to do to get it to work on the Linux server?

-- 
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-tool...@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.



Servlet URL not found when deploying

2010-02-09 Thread Davidj2k
When I try to deploy my application to a Linux server I get this error

"Not Found   The requested URL /MyApp/myapp/servletUpload was not
found on this server."

However, when I am developing it in Eclipse it works fine, what do I
need to do to get it to work on the Linux server?

-- 
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-tool...@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 2.0 internet explorer 7 devmode issue?

2010-02-09 Thread fark
I tried your suggestion and it still does not work in ie dev mode. It
works fine in chrome and ff dev mode (and ie compiled). Ie looks like
it is still reposting the url and reloading the application.

Let me elaborate more on the issue I have 2 cases which are failing in
ie dev mode. One is the link above, and the other is a smart gwt combo
box.
The combo box dropdown arrow is a image link and when I click on it,
the application reloads with the same behavior as above. note: the
combo box works fine in chrome and ff.

thanks


On Feb 4, 5:21 am, Thomas Broyer  wrote:
> On Feb 2, 10:09 pm, fark  wrote:
>
> > I'm having difficulties with ie7 devmode on windows xp and gwt 2.0.
> > Basically if I click a link in ie while running the app, the url is
> > replaced and the application reloads if there are history tokens.
>
> > A simple test showing the url modification (note this does not reload
> > the app as there are no tokens, but does show the url modification I
> > am seeing) . Create a generic test application using eclipse gwt
> > plugin and add this code to onModuleLoad()
>
> >                 StringBuilder htmlString = new StringBuilder(
> >                                 ""
> >                                                 + " > onclick='javascript:navigateTo(\"HOME
> > \");return false;'>"
>
> onclick='navigateTo(\"HOME\");return false;'>
>
> Not sure if it'll fix your issue, but using "javascript:" within
> "event attributes" isn't even supposed to 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-tool...@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: Authenticate before loading the application

2010-02-09 Thread Simon
Thanks for the answers.

About filters : yes I use one for authentication. With that filter all
the servlets are secured. My question was about all the non-servlet
ressources: the html pages, the javascript files, css, images.

So I need to server all those files through servlets (what I suggested
in my first post)(also suggested by thomas).

I am going to move all the files into the WEB-INF directory of the
project, so they will not be public anymore. After that I will define
a servlet to serve them.

code-splitting is also a solution.

On 9 fév, 09:44, dougx  wrote:
> Serve content via servlet, it's fair easy. For an example look 
> here:http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine...
>
> You can then check in the servlet for authentication via cookie / id
> and refuse to serve unauthenticated users.
>
> ~
> Doug.
>
> On Feb 9, 6:26 am, Simon  wrote:
>
>
>
> > Yes that is the basics of app engine security. I use it to get the
> > Google account of the user.
>
> > This is the first step of the login: Google authentication.
> > Second step I want to validate the Google account against my own set
> > of users,
> > Last step I want to send to the user the whole javascript app.
>
> > On 8 fév, 23:04, Youngster  wrote:
>
> > > Did you have a look at this 
> > > page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
> > > ?

-- 
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-tool...@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.



Fwd: GWT 2.0 internet explorer 7 devmode issue?

2010-02-09 Thread Jeff Farkas
Hello moderator,

I submitted this post the other day as I am a new user this never did make
it the forum. Not sure if it was overlooked.

Thanks

-- Forwarded message --
From: fark 
Date: Tue, Feb 2, 2010 at 4:09 PM
Subject: GWT 2.0 internet explorer 7 devmode issue?
To: Google Web Toolkit 


I'm having difficulties with ie7 devmode on windows xp and gwt 2.0.
Basically if I click a link in ie while running the app, the url is
replaced and the application reloads if there are history tokens.

A simple test showing the url modification (note this does not reload
the app as there are no tokens, but does show the url modification I
am seeing) . Create a generic test application using eclipse gwt
plugin and add this code to onModuleLoad()

   StringBuilder htmlString = new StringBuilder(
   ""
   + ""
   + "HOME"
   + "");

   RootPanel.get().add(new HTML(htmlString.toString()));
   initJs(this);

add these two functions:

   private native void initJs(Object obj) /*-{
   $wnd.navigateTo = function (param) {
   o...@com.snapon.client.test2::navigateTo(Ljava/lang/
String;)(param);
};
   }-*/;

   public void navigateTo(String levelId) {
   GWT.log("javascript returned level: " + levelId,null);
   }



Start devmode, in my case the original url is "http://localhost:/
Test2.html?gwt.codesvr=192.168.254.110:9997"
Now if I click on the link which should only execute the javascript
the new link is "http://localhost:/Test2.html?
gwt.codesvr=192.168.254.110:9997#" with a pound at the end.

Note: this behavior does not happen in devmode with chrome or firefox
and also does not occur in internet explorer if I compile the code

 Has anyone else seen this issue and found a workaround? Or is this
possibly an internet explorer devmode bug?

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-tool...@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: Free memory allocated to GWT widgets

2010-02-09 Thread phb
As I posted a while back, I was having severe memory leak issues.  In
order:

- Look at your own code.  If you're still holding references to
widgets, GC doesn't think it's supposed to free them (of course).  In
particular, watch out for static references, which don't get cleared
even when objects are cleaned up.
- You can add onUnload() methods to try to explicitly null out
whatever you can.  And if these aren't getting called, that's a big
clue.
- If you use ImageBundle, consider turning off support for IE6
transparency.  That was killing me, because...
- As far as I can tell, some GWT widgets just plain leak.  PopupPanel
is the only one I'm pretty sure leaks, but the GWT issues list shows
other suspects. IE7 seems to be worst.

To your original question, no, I think there's really no way to force
GC to free something it thinks you have a reference to.

Hope this helps,
Geoff

On Feb 8, 10:21 pm, SmartKiller  wrote:
> Guys  !! No reply ... :(
> Please put your thoughts.
>
> On Feb 2, 6:39 pm, SmartKiller  wrote:
>
> > I am facing this problem in myGWTapplication.Memoryis kept getting
> > allocated but is neverfreeupmemory. Now following question arieses:
>
> > 1. Does is good idea to rely on browser's garbage collection.
> > 2. Is it possible to force apply GC? if yes how.
> > 3. I am using tab panel in my application. If that any way i 
> > canfreememoryupon tab switching?
>
> > Thanks in advance for all your suggestions.

-- 
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-tool...@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 Release Announcements

2010-02-09 Thread Erik Uzureau
That seems like a good solution to me.
Thanks!
Erik

On Feb 9, 9:11 am, Chris Ramsdale  wrote:
> Given the traffic on the GWT group, I completely agree that you would have
> to do a fair amount of filtering in order to the catch the release
> announcements. Typically we "pin" the announcements to the top of the
> discussion list, but this is only useful if you use Group's web interface
> (which I suspect very few use). Along with the announcements, the product
> itself will periodically check for updates and prompt you when one is
> found. You won't have seen this notification yet because we're waiting to
> push 2.0.2 out the door before we update the source file that triggers the
> notification.
>
> All that said, how about using the GWT Blog to post new release
> announcements? Subscriptions to the rss feed would then trigger
> notifications that a new release has been pushed. We're already posting
> major releases (e.g. 1.7, 2.0), and quite frankly it makes since to do the
> same for point releases.
>
> -- Chris
>
> On Mon, Feb 8, 2010 at 7:43 PM, Erik Uzureau  wrote:
> > I did a bit of searching and can't seem to find if there is an email
> > list or google-group somewhere that posts only release announcements
> > and/or other pertinent information for users[1].
>
> > It seems to me (though maybe I'm wrong) that this list hosts the
> > information I'm looking for but also user questions, problems, etc.
> > With an average of 88 mails/day (according to google-groups) it seems
> > like maybe a list with just release announcements might be helpful?
>
> > Erik
>
> > ps. Obviously, feel free to just tell me "just subscribe to the email
> > list and deal with it".
>
> > [1] people using gwt as a tool (vs those working on its development)
>
> > --
> > 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-tool...@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.

-- 
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-tool...@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: How to use UIBinder definition from Java

2010-02-09 Thread Thomas Broyer

On Feb 9, 12:00 pm, Ovidiu Gheorghies  wrote:
> Hello,
>
> The DialogBox API (http://google-web-toolkit.googlecode.com/svn/
> javadoc/2.0/com/google/gwt/user/client/ui/DialogBox.html) notes that a
> DialogBox can be defined as a UIBinder template as follows:
>
>  
>    Caption text
>    
>      Body text
>      Cancel
>      Okay
>    
>  
>
> What is the proper way of using this definition from Java code?
> Supposing that the above definition is contained in
> NotificationWindow.ui.xml, the following naive approach to
> NotificationWindow.java does not work:
>
> public class NotificationWindow extends Composite {
>         private static NotificationWindowUiBinder uiBinder =
> GWT.create(NotificationWindowUiBinder.class);
>         interface NotificationWindowUiBinder extends UiBinder NotificationWindow> {}
>
>         @UiField DialogBox dialogBox;
>
>         public NotificationWindow() {
>                 initWidget(uiBinder.createAndBindUi(this));
>         }
>
>         public void show() {
>             dialogBox.show();
>     }
>
> }
>
> If the EntryPoint-derived class calls:
>
> (new NotificationWindow()).show();
>
> then the following exception is logged:
>
> java.lang.IllegalStateException: This widget's parent does not
> implement HasWidgets
>
> How is the  definition from the DialogBox API used
> correctly from Java code?

There are two possibilities: inheriting DialogBox or having a
DialogBox field (but then not inheriting a Widget).

Solution #1: inheriting a DialogBox

class NotificationWindow extends DialogBox {
   ...

   public NotificationWindow() {
 // we don't care about the returned value, it'll be 'this'
 uiBinder.createAndBindUi(this);
   }

   @UiFactory
   DialogBox thatsJustMe() {
  // UiBinder will call this to get a DialogBox instance
  // and this is the DialogBox instance we want to use
  return this;
   }

   ...
}


Solution #2: not inheriting DialogBox

// Note: do NOT inherit Composite, Widget or UIObject!
class NotificationWindow {
   ...

   private DialogBox dialogBox;

   public NotificationWindow() {
  dialogBox = uiBinder.createAndBind(this);
   }

   public void show() {
  dialogBox.show();
   }

   ...
}

-- 
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-tool...@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: Large MVP applications and GWT.runAsync()

2010-02-09 Thread jarrod
Joe,

In fact, no it does not work properly with multiple instances, and
this is a problem I discovered shortly after originally posting this.
The solution I devised was to make the Proxy abstract and simply
create concrete sub-classes for each Presenter I want to proxy
(anonymous sub-classes do not work!). This is a little tedious, but
the abstraction I wrote makes it pretty simple to implement. Below is
the updated code. Note that I also changed the ViewProxy to use a
LayoutPanel instead of a SimplePanel so that proxied views that
implement RequiresLayout are supported.

/**
 * PresenterProxy wraps a Presenter implementation and acts as a
gateway to that
 * Presenter. The wrapped Presenter is created on-demand the first
time any
 * method is called, or optionally it can be created eagerly at the
time the
 * PresenterProxy is created.
 *
 * Instantiation of the wrapped Presenter occurs behind a
GWT.runAsync() call so
 * that complex wrapped Presenters may be split out into code
fragments during
 * module compilation.
 *
 * In order to achieve this "delayed" instantiation, the
PresenterProxy must be
 * given a Provider instance to provide the
actual
 * implementation at the appropriate time.
 *
 * Additionally, a ViewProxy is utilized that consists of a
LayoutPanel to
 * minimize the impact on the UI. The ViewProxy can be inserted into
the DOM
 * immediately without waiting for the wrapped Presenter to become
available.
 *
 * Any calls made to the wrapped Presenter before the instance becomes
available
 * are queued in a buffer and later replayed when the instance becomes
 * available. Once available, all calls are executed immediately on
the wrapped
 * instance.
 *
 * @author jcarlson
 *
 * @param 
 */
public abstract class PresenterProxy implements
Presenter {

private static class ProxyView implements View {

LayoutPanel proxy = new LayoutPanel();

ProxyView() {
}

@Override
public Widget asWidget() {
return this.proxy;
}

protected void setView(View view) {
this.proxy.clear();
this.proxy.add(view.asWidget());
}

}

private boolean asyncCalled;
private boolean bound;

private HandlerManager bus;
private T impl;
private Queue queue;
private ProxyView view;

public PresenterProxy(HandlerManager bus) {
this(bus, false);
}

public PresenterProxy(HandlerManager bus, boolean eager) {
this.bus = bus;
this.queue = new LinkedList();
this.view = new ProxyView();
if (eager) {
ensurePresenter();
}
}

@Override
public final void bind() {
this.bound = true;
queue(new Command() {

@Override
public void execute() {
PresenterProxy.this.impl.bind();
}

});
}

@Override
public final View getView() {
return this.view;
}

@Override
public final void handleHistory(final HistoryItem item) {
queue(new Command() {

@Override
public void execute() {
PresenterProxy.this.impl.handleHistory(item);
}

});
}

@Override
public final boolean isBound() {
return this.bound;
}

@Override
public final void release() {
queue(new Command() {

@Override
public void execute() {
PresenterProxy.this.impl.release();
}
});
this.bound = false;
}

protected final void onAsyncFailure(Throwable reason) {
PresenterProxy.this.bus
.fireEvent(new ApplicationExceptionEvent(reason));
}

protected final void onAsyncSuccess(T impl) {
// set impl instance
this.impl = impl;

// fill-in proxy view
this.view.setView(PresenterProxy.this.impl.getView());

// execute any queued commands
while (ResizingPresenterProxy.this.queue.peek() != null) {
Command cmd = PresenterProxy.this.queue.poll();
cmd.execute();
}

}

/**
 * The key method that subclasses must override.
 * This allows each GWT.runAsync() call to be in its own
 * concrete class, thus allowing the compiler to produce
 * multiple exclusive fragments.
 */
protected abstract void runAsync();

void ensurePresenter() {
if (!this.asyncCalled) {
this.asyncCalled = true;
runAsync();
}
}

void queue(Command command) {
ensurePresenter();
if (this.impl != null) {
command.execute();
} else {
this.queue.offer(command);
}
}

}



And an implementation of the proxy:



public class MyPresenterProxy extends
PresenterProxy {

private Provider provider;

@Inject
public MyPresenterProxy(HandlerManager bus,
Provider provider) {
su

App works in ff and chrome but not in ie8

2010-02-09 Thread crojay78
Hi,

my app is running in chrome and ff as expected but in ie8 nothing will
be shown, my two div's will not be filled.
I am using a flextable to show user lists and also I use a few times
the setstylename method on the widgets. I read that a few people has
also problems with flextable in ie8 but I could not find a solition
for that.

Does anybody knows how to solve this issue?

-- 
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-tool...@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: create or edit a file using Gwt

2010-02-09 Thread mikedshaf...@gmail.com
The short answer:  you can't.  GWT runs in a browser.  The browser is
prevented intentionally from writing to the local filesystem.
Remember, at the end of it all, GWT creates HTML/CSS/Javascript that
runs in a browser.  Anything you can or can't do in that environment
is the same for GWT.

On Feb 9, 6:48 am, sudhir reddy  wrote:
> Hi,
>
> I want to create or read or edit a file on client machine using Gwt.
> Is this possible.
> Please give me the details.
>
> Thanks and regards
>
> Sudheer Reddy N
> M.Tech
> India

-- 
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-tool...@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 2.0.1 out but Eclipse says "There is nothing to update"

2010-02-09 Thread Chris Lercher
Ok, I understand. But if this is only about making it possible to keep
multiple SDKs at the same time, then I would use

"com.google.gwt.eclipse.sdkbundle.e35.feature.2.0" instead of
"com.google.gwt.eclipse.sdkbundle.e35.feature.2.0.0"

Or do people actually want to keep both "2.0.0" and "2.0.1" around?


On Feb 9, 5:00 pm, Rajeev Dayal  wrote:
> The problem has to do with the P2 system used in Eclipse 3.4+. This is the
> provisioning system, which is responsible for plugin installation and
> management.
>
> Every so often, P2 performs a "garbage collection" of plugins that are no
> longer used by Eclipse. If you deliver SDKs by using plugins as the delivery
> mechanism, P2 deletes the older ones, because Eclipse only runs the latest
> version of a given plugin.
>
> By modifying the plugin ID every time we deliver a new SDK, we prevent P2
> from garbage-collecting older SDKs.
>
> While this is not an ideal solution, it's a decent compromise until we can
> come up with another way to deliver SDKs during the Eclipse installation
> process.
>
> On Mon, Feb 8, 2010 at 1:22 PM, Chris Lercher wrote:
>
>
>
> > On Feb 5, 4:41 pm, Rajeev Dayal  wrote:
> > > Actually, the problem is that when we release a new SDK, the feature id
> > > changes,
>
> > I'm curious: Why do you change it? If I understand it correctly,
> > Eclipse features shouldn't contain the version number as a part of
> > their feature id. The feature.xml offers a separate 'version'
> > attribute.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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 2.0.1 out but Eclipse says "There is nothing to update"

2010-02-09 Thread Rajeev Dayal
The problem has to do with the P2 system used in Eclipse 3.4+. This is the
provisioning system, which is responsible for plugin installation and
management.

Every so often, P2 performs a "garbage collection" of plugins that are no
longer used by Eclipse. If you deliver SDKs by using plugins as the delivery
mechanism, P2 deletes the older ones, because Eclipse only runs the latest
version of a given plugin.

By modifying the plugin ID every time we deliver a new SDK, we prevent P2
from garbage-collecting older SDKs.

While this is not an ideal solution, it's a decent compromise until we can
come up with another way to deliver SDKs during the Eclipse installation
process.

On Mon, Feb 8, 2010 at 1:22 PM, Chris Lercher wrote:

> On Feb 5, 4:41 pm, Rajeev Dayal  wrote:
> > Actually, the problem is that when we release a new SDK, the feature id
> > changes,
>
> I'm curious: Why do you change it? If I understand it correctly,
> Eclipse features shouldn't contain the version number as a part of
> their feature id. The feature.xml offers a separate 'version'
> attribute.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: upgrade gwt 1.5 to 1.6 help!!

2010-02-09 Thread Rajeev Dayal
If you're using the plugin, you don't need to switch to DevMode on your own
- the plugin will automatically do this for you, if it recognizes that your
project is in a 1.6-compatible form.

See the "Working with GWT 1.5 and Earlier Projects" section of:

http://code.google.com/eclipse/docs/existingprojects.html


On Mon, Feb 8, 2010 at 7:00 AM, asle  wrote:

> I tried with the plugin and without the plugin.
>
> When i create a new project, i am not problem. My problem is when i
> upgrade my project, because i have a project with gwt 1.5 and i
> upgrade to 1.6 and i folowing the steps but i not understand
> how switch shell for hosted mode.
>
> Sorry for the writing,  but i am not speak english
> Thanks
>
> best regards
>
>
> On 5 feb, 13:42, Rajeev Dayal  wrote:
> > Are you using the Google Plugin for Eclipse?
> >
> >
> >
> > On Fri, Feb 5, 2010 at 1:26 AM, Gal Dolber  wrote:
> > > I recommend you to go straight to GWT 2.0. Just update the SDK and find
> the
> > > deprecated's in your code.
> > > The biggest problem you can have is with the ImageBundle, now you have
> to
> > > use ClientBundle.
> > > Also I don't remember if the Listeners -> Handlers transition was
> before of
> > > after 1.6 ...
> > > Anyway... you won't regret it
> > > Best
> >
> > > 2010/2/4 asle 
> >
> > > Hello:
> >
> > >> We have a problem to upgrade gwt , and folowing the steps in
> >
> > >>http://code.google.com/intl/es/webtoolkit/doc/1.6/ReleaseNotes_1_6.ht.
> ..
> > >> .
> > >> The first step is ok, but de second step:
> > >> Switch from GWTShell to HostedMode i am not understand how i do,
> > >> because i do not know where  directory is the main class for swich.
> > >> I need you help for indications to change the main class because i
> > >> need folowing the steps for upgrating my project:
> > >> "In order to eliminate this warning, change your main class from
> > >> com.google.gwt.dev.GWTShell to com.google.gwt.dev.HostedMode"
> >
> > >> When i run the project, indicate this warning:
> >
> > >> WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> > >> removed in a future release.
> > >> Use 'com.google.gwt.dev.HostedMode' instead.
> >
> > >> Sorry for the writing,  but i am not speak english
> > >> 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-tool...@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.
> >
> > >  --
> > > 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-tool...@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.- Ocultar texto
> de la cita -
> >
> > - Mostrar texto de la cita -
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Can't debug client code from Eclipse

2010-02-09 Thread Rajeev Dayal
Actually, setting a breakpoint in async callback code should definitely
work. In the sample, I set a breakpoint in the "onSuccess" method of the RPC
callback, and it breaks there.

Try upgrading your JDK and see if you still experience the problem.



On Sat, Feb 6, 2010 at 7:28 AM, urbanus  wrote:

> > What happens if you set the breakpoint in the onModuleLoad() method
> within
> > your entry point?
>
> Thanks for your advice.  I found that breakpoints work in the
> onModuleLoad() method, but not in any asynchronous callback code.
>
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: can not set breakpoint

2010-02-09 Thread Jason Parekh
Hi Canal,

Which URL is your browser pointing at?

jason

On Mon, Feb 8, 2010 at 8:51 PM, go canal  wrote:

> I have upgraded JDK to 1.6u18. tried the default project greetService,
> still the same.
>
> rgds,
> canal
>
>
> --
> *From:* Jason Parekh 
> *To:* google-web-toolkit@googlegroups.com
> *Sent:* Mon, February 8, 2010 11:34:43 PM
> *Subject:* Re: can not set breakpoint
>
> Hi Canal,
>
> What version of Java are you running?
> Could you try on a simple project (perhaps the default app created by the
> wizard)?
> I'm assuming the breakpoints do not show the checkmark on top of them (when
> the debugger is connected)?
>
> jason
>
> On Sun, Feb 7, 2010 at 8:05 PM, canal  wrote:
>
>> hi,
>> searched the group but still can not make it work - can not set
>> breakpoint in the client code
>>
>> i am using Eclipse 3.5, GWT 2.0.1, with plugin. Chrome;
>>
>> I can not set any breakpoint in the client code - not in the callback,
>> not in the OnModuleLoad.
>>
>> Server code is ok.
>>
>> thanks
>> canal
>>
>> --
>> 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-tool...@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.
>>
>>
>  --
> 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-tool...@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.
>
>  --
> 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-tool...@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.
>

-- 
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-tool...@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: Crowdsourcing a problem

2010-02-09 Thread Grant
Sorry

need to type in a character name.

Try this http://gwtcraft.appspot.com/#q=Pete

But I do get timeouts from the warcraft armory api from time to time
that I have not properly handled yet.

Grant

On Feb 9, 2:45 pm, mariyan nenchev  wrote:
> It gives me this:
> An error has occurred:
> "The call failed on the server; see server log for details"
> Please try search again.
>
> Could you please tell me what and where to search?
>
>
>
> On Tue, Feb 9, 2010 at 4:33 PM, Grant  wrote:
> > Hi
>
> > I have been busily hacking away at my first GWT 2 application (my
> > first real GWT application actually)
>
> > You can see it over herehttp://gwtcraft.appspot.comand the source
> > code is herehttp://github.com/gklopper/GWTcraft(MIT license)
>
> > Be warned it is about World of Warcraft, but then it is only a
> > learning project and I am hacking it together in my spare time.
>
> > The screen layout is designed for use on mobile phones and I have been
> > testing it on the iPhone.
>
> > My problem is this. The app works perfectly when I am connected to
> > WIFI on my iPhone, however when I am connected via 3G or Edge it very
> > often just shows me a blank page. Please take a poke at it and let me
> > know if the same happens to you. I am particularly interested in
> > figuring out if my carrier has something to do with it. I am on O2 in
> > the UK, please let me know if this happens to you on another network
> > or not.
>
> > I have previously asked this in the group, but was unable to give an
> > example URL or the source code at the time.
>
> > Thanks
>
> > Grant
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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 Release Announcements

2010-02-09 Thread Chris Ramsdale
Given the traffic on the GWT group, I completely agree that you would have
to do a fair amount of filtering in order to the catch the release
announcements. Typically we "pin" the announcements to the top of the
discussion list, but this is only useful if you use Group's web interface
(which I suspect very few use). Along with the announcements, the product
itself will periodically check for updates and prompt you when one is
found. You won't have seen this notification yet because we're waiting to
push 2.0.2 out the door before we update the source file that triggers the
notification.

All that said, how about using the GWT Blog to post new release
announcements? Subscriptions to the rss feed would then trigger
notifications that a new release has been pushed. We're already posting
major releases (e.g. 1.7, 2.0), and quite frankly it makes since to do the
same for point releases.

-- Chris

On Mon, Feb 8, 2010 at 7:43 PM, Erik Uzureau  wrote:

> I did a bit of searching and can't seem to find if there is an email
> list or google-group somewhere that posts only release announcements
> and/or other pertinent information for users[1].
>
> It seems to me (though maybe I'm wrong) that this list hosts the
> information I'm looking for but also user questions, problems, etc.
> With an average of 88 mails/day (according to google-groups) it seems
> like maybe a list with just release announcements might be helpful?
>
> Erik
>
> ps. Obviously, feel free to just tell me "just subscribe to the email
> list and deal with it".
>
> [1] people using gwt as a tool (vs those working on its development)
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: editor for utf-8 properties files

2010-02-09 Thread Christian Goudreau
Would be great if that was pre-installed within google eclipse plugin.

You should write an issue for that.

On Tue, Feb 9, 2010 at 9:59 AM, Martin Trummer wrote:

> I'm using: http://sourceforge.net/projects/eclipse-rbe/
> and like it
>
>
> On 8 Feb., 21:34, "]matmat["  wrote:
> > Hello,
> >
> > I am looking for a properties file editor for my GWT i18n-ed
> > resources. As the application I am working on supports several
> > languages (en, fr, ja), it would be very handy to be able to edit the
> > different languages on the same window.
> >
> > I found this tool:http://zaval.org/products/jrc-editor/index.html. I
> > like it because:
> > - I can see all the languages on the same window and it will dispatch
> > the data in the different properties files
> > - the resources are organized in a tree
> > - it is standalone so the tranlator won't have to install a complex
> > editor
> > Its looks great but the non-ASCII characters are not displayed
> > properly.
> >
> > I also tried "Eclipse I18N Properties File Editor"
> http://sourceforge.net/projects/epfe/
> > but it nicely fail with a NullPointerException when I open a UTF-8
> > properties file.
> >
> > As explained in this pagehttp://
> code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStart...,
> > "unlike standard Java .properties files, GWT .properties files may
> > contain Unicode characters directly and should therefore be encoded as
> > UTF-8".
> > Since GWT does not follow the Java standard, I understand why most
> > editors I tried fail.
> >
> > Is there any editor that fill my requirements? If not, I plan to edit
> > my texts in a XLS file and write a tool to convert it into properties
> > files.
> >
> > Thanks,
> > Matthias
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: editor for utf-8 properties files

2010-02-09 Thread Martin Trummer
I'm using: http://sourceforge.net/projects/eclipse-rbe/
and like it


On 8 Feb., 21:34, "]matmat["  wrote:
> Hello,
>
> I am looking for a properties file editor for my GWT i18n-ed
> resources. As the application I am working on supports several
> languages (en, fr, ja), it would be very handy to be able to edit the
> different languages on the same window.
>
> I found this tool:http://zaval.org/products/jrc-editor/index.html. I
> like it because:
> - I can see all the languages on the same window and it will dispatch
> the data in the different properties files
> - the resources are organized in a tree
> - it is standalone so the tranlator won't have to install a complex
> editor
> Its looks great but the non-ASCII characters are not displayed
> properly.
>
> I also tried "Eclipse I18N Properties File 
> Editor"http://sourceforge.net/projects/epfe/
> but it nicely fail with a NullPointerException when I open a UTF-8
> properties file.
>
> As explained in this 
> pagehttp://code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStart...,
> "unlike standard Java .properties files, GWT .properties files may
> contain Unicode characters directly and should therefore be encoded as
> UTF-8".
> Since GWT does not follow the Java standard, I understand why most
> editors I tried fail.
>
> Is there any editor that fill my requirements? If not, I plan to edit
> my texts in a XLS file and write a tool to convert it into properties
> files.
>
> Thanks,
> Matthias

-- 
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-tool...@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: Any Google Wave developers in this group?

2010-02-09 Thread Christian Goudreau
Yes I am too !

Christian

On Tue, Feb 9, 2010 at 9:57 AM, Duong BaTien  wrote:

> Yes. We use GWT, GAE, and Wave
>
> Duong BaTien
> DBGROUPS and BudhNet
>
> On Tue, 2010-02-09 at 00:32 -0800, dougx wrote:
> > Yes. I use GWT for all my wave code; please post if you create a
> > specific group for wave related GWT stuff...
> >
> > ~
> > Doug.
> >
> > On Feb 9, 1:57 pm, Jonas Huckestein  wrote:
> > > Hi guys,
> > >
> > > I was wondering if there were enough wave developers around here that
> > > use gwt so that we could start our own group. I feel that in both the
> > > Wave API group and in this one messages on that subject tend to go
> > > unnoticed.
> > >
> > > Anybody interested?
> > >
> > > I am about to publish my own mock implementation of the Wave API for
> > > GWT that I made to locally test my gadgets, but I guess I might not be
> > > the only one.
> > >
> > > Cheers,
> > > Jonas
> > > --
> > > Jonas Huckestein
> > >
> > > http://thezukunft.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-tool...@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.
>
>

-- 
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-tool...@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: Any Google Wave developers in this group?

2010-02-09 Thread Duong BaTien
Yes. We use GWT, GAE, and Wave

Duong BaTien
DBGROUPS and BudhNet

On Tue, 2010-02-09 at 00:32 -0800, dougx wrote:
> Yes. I use GWT for all my wave code; please post if you create a
> specific group for wave related GWT stuff...
> 
> ~
> Doug.
> 
> On Feb 9, 1:57 pm, Jonas Huckestein  wrote:
> > Hi guys,
> >
> > I was wondering if there were enough wave developers around here that
> > use gwt so that we could start our own group. I feel that in both the
> > Wave API group and in this one messages on that subject tend to go
> > unnoticed.
> >
> > Anybody interested?
> >
> > I am about to publish my own mock implementation of the Wave API for
> > GWT that I made to locally test my gadgets, but I guess I might not be
> > the only one.
> >
> > Cheers,
> > Jonas
> > --
> > Jonas Huckestein
> >
> > http://thezukunft.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-tool...@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: ClientBundle compilation error

2010-02-09 Thread RickD
I too am experiencing this exact problem.  I have successfully used
ImageResources for nearly all of my images, but when I added "just one
more" image it breaks!?  The problem seems to be related to the number
of images and not the content of the image.

I am anxiously awaiting a fix, and in the meantime a work-around.

Ciao,

Rick


On Jan 17, 10:11 am, Arunava  wrote:
> I am getting an error while using ClientBundle in my project. I have
> used Eclipse to generate the ClientBundle. Also added the following
> line in Resource interface -
>
> 1. public static final Resources INSTANCE =  GWT.create
> (Resources.class);
>
> The code that uses ClientBundle -
>
> 2. this.add(new Image(Resources.INSTANCE.header_bg_right()));
>
> 3. The exception is -
>
> Compiling module org.eagle.insight.EGLInsight
>    [ERROR] Errors in 'file:/C:/MyProject/EGLInsight/src/org/eagle/
> insight/client/Resources.java'
>       [ERROR]  Internal compiler error
> java.lang.NullPointerException
>         at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:
> 83)
>         at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
> (JdtCompiler.java:203)
>         at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1198)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:687)
>         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
> (JdtCompiler.java:157)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> 466)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.compile(CompilationStateBuilder.java:141)
>         at
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildGeneratedTypes
> (CompilationStateBuilder.java:325)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.addGeneratedTypes(CompilationStateBuilder.java:126)
>         at
> com.google.gwt.dev.javac.CompilationState.addGeneratedCompilationUnits
> (CompilationState.java:86)
>         at com.google.gwt.dev.javac.StandardGeneratorContext.finish
> (StandardGeneratorContext.java:348)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRe 
> binds
> (WebModeCompilerFrontEnd.java:129)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.process(AbstractCompiler.java:200)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:123)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox
> $CompilerImpl.compile(AbstractCompiler.java:234)
>         at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access
> $200(AbstractCompiler.java:109)
>         at com.google.gwt.dev.jdt.AbstractCompiler.compile
> (AbstractCompiler.java:522)
>         at
> com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations
> (BasicWebModeCompiler.java:112)
>         at
> com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclaratio ns
> (WebModeCompilerFrontEnd.java:47)
>         at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile
> (JavaToJavaScriptCompiler.java:421)
>         at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile
> (JavaScriptCompiler.java:32)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:522)
>         at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
>         at com.google.gwt.dev.Compiler.run(Compiler.java:201)
>         at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
>         at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:
> 87)
>         at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
> (CompileTaskRunner.java:81)
>         at com.google.gwt.dev.Compiler.main(Compiler.java:159)
>
> [ERROR] Unexpected
> java.lang.NullPointerException
>         at com.google.gwt.dev.javac.CompiledClass.(CompiledClass.java:
> 83)
>         at com.google.gwt.dev.javac.JdtCompiler$FindTypesInCud.visit
> (JdtCompiler.java:203)
>         at org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.traverse
> (TypeDeclaration.java:1198)
>         at
> org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.traverse
> (CompilationUnitDeclaration.java:687)
>         at com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process
> (JdtCompiler.java:157)
>         at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:
> 444)
>         at com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:
> 466)
>         at com.google.gwt.dev.javac.CompilationStateBuilder
> $CompileMoreLater.compile(CompilationStateBuilder.java:141)
>         at
> com.google.gwt.dev.javac.CompilationStateBuilder.doBuildGeneratedTypes
> (CompilationStateBuilder.java

Re: Crowdsourcing a problem

2010-02-09 Thread mariyan nenchev
It gives me this:
An error has occurred:
"The call failed on the server; see server log for details"
Please try search again.

Could you please tell me what and where to search?

On Tue, Feb 9, 2010 at 4:33 PM, Grant  wrote:

> Hi
>
> I have been busily hacking away at my first GWT 2 application (my
> first real GWT application actually)
>
> You can see it over here http://gwtcraft.appspot.com and the source
> code is here http://github.com/gklopper/GWTcraft (MIT license)
>
> Be warned it is about World of Warcraft, but then it is only a
> learning project and I am hacking it together in my spare time.
>
> The screen layout is designed for use on mobile phones and I have been
> testing it on the iPhone.
>
> My problem is this. The app works perfectly when I am connected to
> WIFI on my iPhone, however when I am connected via 3G or Edge it very
> often just shows me a blank page. Please take a poke at it and let me
> know if the same happens to you. I am particularly interested in
> figuring out if my carrier has something to do with it. I am on O2 in
> the UK, please let me know if this happens to you on another network
> or not.
>
> I have previously asked this in the group, but was unable to give an
> example URL or the source code at the time.
>
> Thanks
>
> Grant
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: jQuery

2010-02-09 Thread dougx
My bad; Jan is of course correct... :)

On Feb 9, 8:50 am, Jan Ehrhardt  wrote:
> The $ method is in the global namespace, which cannot be accessed from GWT
> native JS code directly. You'll have to use the $wnd variable instead, which
> brings the global namespace to GWT. So the first method of the simple
> example has to look like this:
>
> public static native Object query(String selector) /*-{
>    return($wnd.$(selector));
>
> }-*/;
>
> Regards
> Jan Ehrhardt
>
> On Tue, Feb 9, 2010 at 9:30 AM, dougx  wrote:
> > There's no magic to this; just add jquery to the page as a javascript
> > include and then use JSNI to invoke various calls.
>
> > Here is a trivial example:
>
> > public static native Object query(String selector) /*-{
> >    return($(selector));
> > }-*/;
>
> > public static native void hide(Object target) /*-{
> >   target.hide();
> > }-*/;
>
> > public void javaTest() {
> >    Object objects = query(".mytarget");
> >    hide(objects);
> > }
>
> > If you want to have access to a more 'complete' jquery interface, you
> > can have a look at the GQuery project; you'll have to get the source
> > and rebuild it yourself, however, to use it with 2.0
>
> > ~
> > Doug.
>
> > On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > > Dear all;
>
> > > can u please tell me how to use jQuery in GWT... do i need to add
> > something
> > > to xml files. and how to call the jQuery functions
>
> > > thanks
>
> > > --
> > > ~~~With Regards~~~
> > > Muhannad Dar-Nasser
> > > ~~Computer Systems Engineering~~
>
> > --
> > 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-tool...@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.

-- 
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-tool...@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: RootPanel.get().clear does not clear anything

2010-02-09 Thread Ashar Lohmar
check what I've said here
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/519854e6a7c77d91?pli=1

but whatch out if you'll do an
RootPanel.get().getElement().setInnerHTML(""); i think that will
remove the iframe  that GWT adds it to the document also i don't know
if that wouldn't affect the application, if the gwt will put it back
or you'll end up with some errors

On Feb 9, 3:54 am, go canal  wrote:
> [sorry if this is duplicated]
>
> Trying to use RootPanel.get().clear(); but it does not clear anything from 
> the page. Here is the HTML file:
>
>   
>
>     
>      style="position:absolute;width:0;height:0;border:0">
>
>     
>     
>       
>         Your web browser must have JavaScript enabled
>         in order for this application to display correctly.
>       
>     
>
>     
>
>     
>       
>         
>         
>         Login
>       
>       
>         bring certainty to the 
> uncertainty
>         
>       
>       
>         
>           metaverse© Copyright 2009-2010
>           
>       
>       
>         
>         
>       
>     
>
>   
>
> I am expecting that everything in the  will be removed.
>
> rgds,
> canal

-- 
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-tool...@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.



Blackberry browser

2010-02-09 Thread seema
Does GWT support the default browser in the Blackberry device?

Thanks,
Seema

-- 
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-tool...@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: How to use UIBinder definition from Java

2010-02-09 Thread Christian Goudreau
That's how :

http://pastie.org/816302

Christian

On Tue, Feb 9, 2010 at 6:00 AM, Ovidiu Gheorghies wrote:

> Hello,
>
> The DialogBox API (http://google-web-toolkit.googlecode.com/svn/
> javadoc/2.0/com/google/gwt/user/client/ui/DialogBox.html) notes that a
> DialogBox can be defined as a UIBinder template as follows:
>
>  
>   Caption text
>   
> Body text
> Cancel
> Okay
>   
>  
>
> What is the proper way of using this definition from Java code?
> Supposing that the above definition is contained in
> NotificationWindow.ui.xml, the following naive approach to
> NotificationWindow.java does not work:
>
> public class NotificationWindow extends Composite {
>private static NotificationWindowUiBinder uiBinder =
> GWT.create(NotificationWindowUiBinder.class);
>interface NotificationWindowUiBinder extends UiBinder NotificationWindow> {}
>
>@UiField DialogBox dialogBox;
>
>public NotificationWindow() {
>initWidget(uiBinder.createAndBindUi(this));
>}
>
>public void show() {
>dialogBox.show();
>}
> }
>
> If the EntryPoint-derived class calls:
>
> (new NotificationWindow()).show();
>
> then the following exception is logged:
>
> java.lang.IllegalStateException: This widget's parent does not
> implement HasWidgets
>
> How is the  definition from the DialogBox API used
> correctly from Java code?
>
> Best regards,
> Ovidiu
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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.



com.google.gwt.dev.jjs.InternalCompilerException: Unable to locate index method: Impl.registerEntry

2010-02-09 Thread Xavier Lawrence
Hi,

I keep getting the error below, using maven 2 while trying to compile
a GWT Module. Does anybody have a hint about where I should start
looking ?

I have a second maven project, similar to that one that build
correctly without this error. Any help is welcome, since I am
struggling to find the reason of that error.

Thanks in advance and best regards

Xavier


[INFO][ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unable to
locate index method: Impl.registerEntry
[INFO]  at
com.google.gwt.dev.jjs.ast.JProgram.getIndexedMethod(JProgram.java:
757)
[INFO]  at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.findEntryPoints(JavaToJavaScriptCompiler.java:
769)
[INFO]  at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:
507)
[INFO]  at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:
32)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
522)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:
414)
[INFO]  at com.google.gwt.dev.Compiler.run(Compiler.java:201)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
[INFO]  at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:
81)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:159)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Command [[
C:\dev\jdks\jdk1.6.0_02\jre\bin\java -Xmx512m -classpath "C:\eldorado-
workspace\AdminEldorado\src";"C:\eldorado-workspace\AdminEldorado
\resources";"C:\eldorado-workspace\AdminEldorado\Conf\TEST
";"C:\eldorado-workspace\AdminEldorado\target\classes";"C:\Documents
and Settings\u930dvxb\.m2\repository\com\publigroupe\commonlibs
\CommonLib-JavaBase\1.0.2\CommonLib-JavaBase-1.0.2.jar";"C:\D
ocuments and Settings\u930dvxb\.m2\repository\com\publigroupe
\commonlibs\CommonLib-Translation-Services\1.0.0\CommonLib-Translation-
Services-1.0.0.jar";"C:\Documents and Settings\u930dvxb\.m2\r
epository\com\publigroupe\commonlibs\CommonLib-Media-Services\1.0.20-
SNAPSHOT\CommonLib-Media-Services-1.0.20-SNAPSHOT.jar";"C:\Documents
and Settings\u930dvxb\.m2\repository\org\springframewor
k\spring\2.5.6\spring-2.5.6.jar";"C:\Documents and Settings\u930dvxb
\.m2\repository\commons-logging\commons-logging\1.1.1\commons-
logging-1.1.1.jar";"C:\Documents and Settings\u930dvxb\.m2\repo
sitory\com\publigroupe\commonlibs\CommonLib-Media-Offer-Services
\1.0.10-SNAPSHOT\CommonLib-Media-Offer-Services-1.0.10-
SNAPSHOT.jar";"C:\Documents and Settings\u930dvxb\.m2\repository
\commons-l
ang\commons-lang\2.4\commons-lang-2.4.jar";"C:\Documents and Settings
\u930dvxb\.m2\repository\commons-io\commons-io\1.4\commons-
io-1.4.jar";"C:\Documents and Settings\u930dvxb\.m2\repository\co
mmons-fileupload\commons-fileupload\1.2.1\commons-
fileupload-1.2.1.jar";"C:\Documents and Settings\u930dvxb
\.m2\repository\com\google\gwt\gwt-user\2.0.0\gwt-user-2.0.0.jar";"C:
\Documents and Se
ttings\u930dvxb\.m2\repository\gwt\gin\1.0\gin-1.0.jar";"C:\Documents
and Settings\u930dvxb\.m2\repository\gwt\guice\2.0\guice-2.0.jar";"C:
\Documents and Settings\u930dvxb\.m2\repository\gwt\gw
t-dispatch\1.0.0\gwt-dispatch-1.0.0.jar";"C:\Documents and Settings
\u930dvxb\.m2\repository\gwt\gwt-presenter\1.0.0\gwt-
presenter-1.0.0.jar";"C:\Documents and Settings\u930dvxb\.m2\repository
\g
wt\gwt-log\2.6.2\gwt-log-2.6.2.jar";"C:\Documents and Settings\u930dvxb
\.m2\repository\gwt\gwt-maps\1.0\gwt-maps-1.0.jar";"C:\Documents and
Settings\u930dvxb\.m2\repository\gwt\gwt2swf\0.6.0\gw
t2swf-0.6.0.jar";"C:\Documents and Settings\u930dvxb\.m2\repository\gwt
\gwt-math\2.0.3\gwt-math-2.0.3.jar";"C:\Documents and Settings\u930dvxb
\.m2\repository\gwt\gwt-math-server\2.0.3\gwt-math-
server-2.0.3.jar";"C:\Documents and Settings\u930dvxb\.m2\repository\gr
\open\TinyMCE-GWT\0.2\TinyMCE-GWT-0.2.jar";"C:\Documents and Settings
\u930dvxb\.m2\repository\log4j\log4j\1.2.14\log4j-1.2
.14.jar";"C:\Documents and Settings\u930dvxb\.m2\repository\org
\springframework\spring-webmvc\2.5.6\spring-webmvc-2.5.6.jar";"C:
\Documents and Settings\u930dvxb\.m2\repository\net\sf\dozer\doze
r\5.0\dozer-5.0.jar";"C:\Documents and Settings\u930dvxb\.m2\repository
\commons-beanutils\commons-beanutils\1.8.1\commons-
beanutils-1.8.1.jar";"C:\Documents and Settings\u930dvxb
\.m2\repository
\commons-collections\commons-collections\3.2.1\commons-
collections-3.2.1.jar";"C:\Documents and Settings\u930dvxb
\.m2\repository\cglib\cglib\2.1_3\cglib-2.1_3.jar";"C:\Documents and
Settings\u9
30dvxb\.m2\repository\asm\asm\1.5.3\asm-1.5.3.jar";"C:\Documents and
Settings\u930dvxb\.m2\repository\com\google\gwt\gwt-dev\2.0.0\gwt-
dev-2.0.0.jar" com.google.gwt.dev.Compiler -gen "C:\eldora
do-workspace\AdminEldorad

Re: RootPanel.get().clear() does not clear the page

2010-02-09 Thread Ashar Lohmar
Hi
the clear() method on the HasWidgets objects only removes the child
widgets that had been added to it by using the add method
in you case the logic is kind of ok, the
RootPanel.get("nameofcontainer") is a child of RootPanel.get() in the
DOM point of view, but
but not for the HasWidgets object represented by the RootPanel.get()

an work around would be to do something like
RootPanel.get().getElement().setInnerHTML(""); but the when you'll try
an RootPanel.get("nameofcontainer") you'll get nothing because there
will no more be an object with the id=nameofcontainer

also it's possible to end up with "artifacts" object that you may have
in memory but don't exist in the page/document (i don't know if this
is true for sure).
hope I managed to explain it so that you could understand my point
good luck in finding a solution, or if you'll come back with more
details of what you want to achieve maybe I/we would be able to help
more.

On Feb 8, 4:46 am, go canal  wrote:
> Hi,
> I try to add RootPanel.get().clear() in the callback but it does not clear 
> anything. If I use RootPanel.get("nameofcontainer").clear(), then it works - 
> that widget is removed.
>
> I am using the default greet example. GWT 2.0.1, Chrome browser. This is how 
> I create the widgets: 
> RootPanel.get(
> RootPanel.get(
> RootPanel.get(
> RootPanel.get("nameFieldContainer").add(nameField);"passwordFieldContainer").add(passwordField);"sendButtonContainer").add(sendButton);"errorLabelContainer").add(errorLabel);
>
> Did I understand RootPanel.get().clear() correctly - I thought it will 
> clear everything on the page
> rgds,
> canal

-- 
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-tool...@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 Release Announcements

2010-02-09 Thread Erik Uzureau
I did a bit of searching and can't seem to find if there is an email
list or google-group somewhere that posts only release announcements
and/or other pertinent information for users[1].

It seems to me (though maybe I'm wrong) that this list hosts the
information I'm looking for but also user questions, problems, etc.
With an average of 88 mails/day (according to google-groups) it seems
like maybe a list with just release announcements might be helpful?

Erik

ps. Obviously, feel free to just tell me "just subscribe to the email
list and deal with it".

[1] people using gwt as a tool (vs those working on its development)

-- 
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-tool...@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.



Crowdsourcing a problem

2010-02-09 Thread Grant
Hi

I have been busily hacking away at my first GWT 2 application (my
first real GWT application actually)

You can see it over here http://gwtcraft.appspot.com and the source
code is here http://github.com/gklopper/GWTcraft (MIT license)

Be warned it is about World of Warcraft, but then it is only a
learning project and I am hacking it together in my spare time.

The screen layout is designed for use on mobile phones and I have been
testing it on the iPhone.

My problem is this. The app works perfectly when I am connected to
WIFI on my iPhone, however when I am connected via 3G or Edge it very
often just shows me a blank page. Please take a poke at it and let me
know if the same happens to you. I am particularly interested in
figuring out if my carrier has something to do with it. I am on O2 in
the UK, please let me know if this happens to you on another network
or not.

I have previously asked this in the group, but was unable to give an
example URL or the source code at the time.

Thanks

Grant

-- 
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-tool...@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.



set nested tab orders within a popup window

2010-02-09 Thread Kun Yang
Hi,

I need to set tab orders on my page, which has a tab menu bar
consisting of push buttons. On one of the push buttons (say button A)
there is a popup window. When the user presses tab key on the
keyboard, he should be able to navigate through the menu, and through
the popup window elements.

The popup window is a DecoratedTabPanel with two tabs, here is the
code to create the panel:

public void addRefDoc(String text, String content) {
  HTML child = new HTML(content, true);
  child.setSize("100%", "100%");
  child.addStyleName("refDoc");

  ScrollPanel scrollPanel = new ScrollPanel(child);
  scrollPanel.setSize("100%", "100%");
  scrollPanel.setAlwaysShowScrollBars(true);

  tabPanel.add(scrollPanel, text);
  tabPanel.selectTab(0);
}

To add the two tabs, I called addRefDoc() twice as below:
display.addRefDoc("Reference Doc1", "text 1");
display.addRefDoc("Reference Doc2", "text 2");

My question is how to set the tab index on the two tabs created.
Thanks a lot!

-Kun

-- 
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-tool...@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.



Problems wirh the new GWT + GWTdesigner + GWText

2010-02-09 Thread jacevedo
Hi,

I have a project of GWT 1.7.1 working with GWT Designer 7.2 and GWTExt
2.0.5 and it works very good. Know I`m migrating to GWT2.0 whit GWT
Designer 7.3 because it have the development mode. The first time I
made in Eclipse right click on the project -> "Run AS" -> "GWT
Application", the program works fine, but when I made right click on
the project -> "Run AS" -> "Compile GWT Application" and then I run
the GWT Application, it looks fine, but when I make an "GWT RPC call"
it fails.

The Eclipse console log is:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Parameter 0 of is of an unknown type 'java.lang.String/2004016611'
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:
39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
105)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException_FieldSerializer.instantiate(IncompatibleRemoteServiceException_FieldSerializer.java)
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:585)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
264)
at
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:
91)
at com.google.gwt.user.client.rpc.impl.SerializerBase$MethodMap
$.instantiate$(SerializerBase.java)
at
com.google.gwt.user.client.rpc.impl.SerializerBase.instantiate(SerializerBase.java:
140)
at
com.google.gwt.user.client.rpc.impl.ClientSerializationStreamReader.deserialize(ClientSerializationStreamReader.java:
114)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamReader.readObject(AbstractSerializationStreamReader.java:
61)
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived(RequestCallbackAdapter.java:
199)
at
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:
287)
at com.google.gwt.http.client.RequestBuilder
$1.onReadyStateChange(RequestBuilder.java:396)
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:585)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
103)
at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
71)
at
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:
157)
at
com.google.gwt.dev.shell.BrowserChannel.reactToMessagesWhileWaitingForReturn(BrowserChannel.java:
1713)
at
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:
165)
at
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
120)
at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
507)
at
com.google.gwt.dev.shell.ModuleSpace.

Re: RootPanel.get() problems

2010-02-09 Thread Juan M.M.M.
Thx for the reply

p.d: it's enough with the prototype of the method ;D

Bye!

On Feb 9, 3:10 pm, Thomas Broyer  wrote:
> On Feb 9, 10:37 am, "Juan M.M.M."  wrote:
>
> > Hi man!
>
> > Thx for the reply but I can't set the visiblitiy with this method
> > Document.get().getElementById(...) .
>
> > Can you tell me the exact sintax to acced to the setVisibility method
> > through Document clas?
>
> Either getStyle.setDisplay(Display.NONE) to hide and
> getStyle().clearDisplay() to show; or UIObject.setVisible(elt, false)
> to hide (pass 'true' as the second argument to show).

-- 
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-tool...@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.



Not able to use External Jar file for DB connection

2010-02-09 Thread vinod M
HI,

Can anyone help me in solving the issue faced while developing the
application using Postgres DB with SmartGWT-2.0 and GWT 2.0, failing
to establish the connection.

Configuration Details

Eclipse 3.4 (Ganymede)
Gwt plugin
Appengine 1.3
GWT 2.0
SmartGwt 2.0
Postgres Sql DB

I initially tried setting external library path for the
'postgresql-8.4-701.jdbc4.jar' and tried running the server got this
error attached below.

Code:

Initializing AppEngine server The server is running at http://localhost:/
java.lang.ClassNotFoundException: org.postgresql.Driver at
java.net.URLClassLoader$1.run(URLClassLoader.java:200) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:188)


I tried putting the same jar file inside the war/WEB-INF/lib and
restarted the server, and error log reads below

Code:

Initializing AppEngine server The server is running at http://localhost:/
9 Feb, 2010 7:00:26 AM
com.google.appengine.tools.development.ApiProxyLocalImpl log SEVERE:
[1265698826728000] javax.servlet.ServletContext log: Exception while
dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String
com.zo.zotweb.client.GreetingService.greetServer(java.lang.String)'
threw an unexpected exception: java.lang.NoClassDefFoundError:
java.net.Socket is a restricted class. Please see the Google App
Engine developer's guide for more details. at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
378) at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
581) at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
188) at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
224) at
com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1093) at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51) at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084) at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43) at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084) at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
121) at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084) 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:
712) at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70) at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
139) at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:352) at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
139) at org.mortbay.jetty.Server.handle(Server.java:313) at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506) at org.mortbay.jetty.HttpConnection
$RequestHandler.content(HttpConnection.java:844) at
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
396) at org.mortbay.thread.BoundedThreadPool
$PoolThread.run(BoundedThreadPool.java:442) Caused by:
java.lang.NoClassDefFoundError: java.net.Socket is a restricted class.
Please see the Google App Engine developer's guide for more details.
at
com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java:
51) at org.postgresql.core.PGStream.(PGStream.java:62) at
org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:
76) at
org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:
66) at
org.postgresql.jdbc2.AbstractJdbc2Connection.(AbstractJdbc2Connection.java:
125) at
org.postgresql.jdbc3.AbstractJdbc3Connection.(AbstractJdbc3Connection.java:
30) at
org.postgresql.jdbc3g.AbstractJdbc3gConnection.(AbstractJdbc3gConnection.java:
22) at
org.postgresql.jdbc4.AbstractJdbc4Connection.(AbstractJdbc4Connection.java:
30) at
org.postgresql.jdbc4.Jdbc4Connect

How to use UIBinder definition from Java

2010-02-09 Thread Ovidiu Gheorghies
Hello,

The DialogBox API (http://google-web-toolkit.googlecode.com/svn/
javadoc/2.0/com/google/gwt/user/client/ui/DialogBox.html) notes that a
DialogBox can be defined as a UIBinder template as follows:

 
   Caption text
   
 Body text
 Cancel
 Okay
   
 

What is the proper way of using this definition from Java code?
Supposing that the above definition is contained in
NotificationWindow.ui.xml, the following naive approach to
NotificationWindow.java does not work:

public class NotificationWindow extends Composite {
private static NotificationWindowUiBinder uiBinder =
GWT.create(NotificationWindowUiBinder.class);
interface NotificationWindowUiBinder extends UiBinder {}

@UiField DialogBox dialogBox;

public NotificationWindow() {
initWidget(uiBinder.createAndBindUi(this));
}

public void show() {
dialogBox.show();
}
}

If the EntryPoint-derived class calls:

(new NotificationWindow()).show();

then the following exception is logged:

java.lang.IllegalStateException: This widget's parent does not
implement HasWidgets

How is the  definition from the DialogBox API used
correctly from Java code?

Best regards,
Ovidiu

-- 
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-tool...@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.



java.io.Serializable not accepted for serialization

2010-02-09 Thread Andrea Polci
Whenever I try to use in my services a class that implements
java.io.Serializable and not IsSerializable I get the following
runtime error:

com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Type 'com.extjs.gxt.ui.client.data.BaseModel' was not assignable to
'com.google.gwt.user.client.rpc.IsSerializable' and did not have a
custom field serializer. For security purposes, this type will not be
deserialized.

I'm using GWT 2.0.1 so Serializable should be supported.

I get no compile-time error.

The serialization policy file seems to be deployed correctly and
contains the class that cannot be deserialized (in the example above
com.extjs.gxt.ui.client.data.BaseModel).

I checked that I have the right version of gwt-servlet.jar.

I don't know what else to try, can someone help 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-tool...@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.



IE 7 scales gif images wrong when application has been compiled

2010-02-09 Thread Bernhard
Hello,

im am using GWT 2.0 and found a problem with the scaling of .gif
images in IE 7 when the application has been compiled.
I am using the following simple code:
...
VerticalPanel leftVerPan = new VerticalPanel();
Image logo = new Image("img/logo.gif");
leftVerPan.add(logo);
...
everything looks fine in developement mode (IE displays the image
correcly).
When I compile and test with IE the image looks smaller than it really
is (looks like scaled down to half size).
In all other browsers (FF, Opera, Chrome) the image is displayed in
the correct size in developement and compiled versions.
When I change the type of the image to .png will be displayed
correctly in all modes (developement and compiled) with all browser
(including IE 7).
Additionally I tested with the logo.addLoadHandler() and it looks like
that IE has no information about the height and size when it loads the
image (size of "0" is the result in IE when I call logo.getWidth() and
logo.getHeight() inside logo.addLoadHandler();
I also looked at:
 
http://groups.google.com/group/google-web-toolkit/browse_thread/thread/4c3cb004e754d72b/5131e499f2ccabf1?lnk=gst&q=image+ie+wrong+sizw#5131e499f2ccabf1
but that solution does not work in my case.

Any suggestion are welcome.

Kind regards.

Bernhard

-- 
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-tool...@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 pin the header row in GWT FlexTable

2010-02-09 Thread musa basbusa
Hi ,

I want to implement the ability to pin the header row in GWT
FlexTable .
This feature is needed when using a very long table.

Any suggestions ?


musa.

-- 
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-tool...@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.



Page won't update past initial code

2010-02-09 Thread dekushrub
Hi,

I'm using Eclipse with GWT and trying to work through the Stock
Watcher Tutorial. When I try to do "Run As Web Application" or compile
the code, I only see the webpage with the intial code provided by
Eclipse. Does anyone know what the problem may be?

-- 
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-tool...@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.



create or edit a file using Gwt

2010-02-09 Thread sudhir reddy
Hi,

I want to create or read or edit a file on client machine using Gwt.
Is this possible.
Please give me the details.

Thanks and regards

Sudheer Reddy N
M.Tech
India

-- 
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-tool...@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: I need SOP disabled in GWT 2.0 built-in web server.

2010-02-09 Thread Ben Hutchison
That works for us as well.

But unfortunately, it doesn't work for GWTTestCase.

We would like to use JUnit to run integration tests, running with our
own web server that includes proxing to get around the single-origin-
policy. But I havent yet found a way in GWT 2.0...?

-Ben

On Feb 9, 1:32 am, RPB  wrote:
> This works for me in GWT 2.0:
> -Open 'Debug configurations' in eclipse
> -Uncheck 'Run built-in server'
> -Set the port number to your localhost port
> -Run
>
> Good luck,
> Rob
>
> On Feb 7, 4:51 am, Tatchan  wrote:
>
> > Hi all,
>
> > I have to make http request (but not RPC)  to a service which runs in
> > a different port on the local host in development mode, which is
> > fortunately possible with GWT 1.7 and IE 8 (but not with Firefox 3.5 -
> > bad). But now with GWT 2.0 this convenience has gone. Things got
> > really complicated and inefficient in terms of development, since I
> > have to use an external Apache server with proper proxy configuration
> > to make it work. Stuffs have to be deployed to the server usually -
> > really bad.
> > And, to be frank, I still have problems now, and I wish I had my
> > convenience back. I need a simple way to bypass SOP for locally
> > development. Could anyone help me please?
>
> > Thanks alot,
>
> > ~Tatchan

-- 
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-tool...@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.



editor for utf-8 properties files

2010-02-09 Thread ]matmat[
Hello,

I am looking for a properties file editor for my GWT i18n-ed
resources. As the application I am working on supports several
languages (en, fr, ja), it would be very handy to be able to edit the
different languages on the same window.

I found this tool: http://zaval.org/products/jrc-editor/index.html . I
like it because:
- I can see all the languages on the same window and it will dispatch
the data in the different properties files
- the resources are organized in a tree
- it is standalone so the tranlator won't have to install a complex
editor
Its looks great but the non-ASCII characters are not displayed
properly.

I also tried "Eclipse I18N Properties File Editor" 
http://sourceforge.net/projects/epfe/
but it nicely fail with a NullPointerException when I open a UTF-8
properties file.

As explained in this page 
http://code.google.com/p/google-web-toolkit-doc-1-5/wiki/GettingStartedI18n,
"unlike standard Java .properties files, GWT .properties files may
contain Unicode characters directly and should therefore be encoded as
UTF-8".
Since GWT does not follow the Java standard, I understand why most
editors I tried fail.

Is there any editor that fill my requirements? If not, I plan to edit
my texts in a XLS file and write a tool to convert it into properties
files.

Thanks,
Matthias

-- 
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-tool...@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.



Trying to utilize Java List Class with GWT.

2010-02-09 Thread LJ
I will admit this upfront, I am new to GWT programming. To outline the
overall application, I am trying to make a selection in the left
horizontal panel, which then populates a list of checkboxes on the
right. Upon selecting various items via checkboxes, the bottom panel
should summarize the information.

On the reverse, if something is unchecked, it should remove the item
from the summary panel.

Where I am having a problem, and where I can't find any documentation,
is how do you (or what is the best way) to:

-build an ArrayList or array or table (or anything else) that can be
used to search against to populate the checkboxes and then the summary
panel.

Here is my code:

**
//LJ_Test.java
package cs701.client;

import java.util.ArrayList;
import java.util.List;

import cs701.client.Course;
import cs701.client.Dept;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.event.dom.client.ClickEvent;
import com.google.gwt.event.dom.client.ClickHandler;
import com.google.gwt.user.client.ui.CheckBox;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.HTML;
import com.google.gwt.user.client.ui.HasAlignment;
import com.google.gwt.user.client.ui.HorizontalPanel;
import com.google.gwt.user.client.ui.HorizontalSplitPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;



/**
 * Entry point classes define onModuleLoad().
 */
public class LJ_Test implements EntryPoint {
private Widget selectedDeptRow;
private Dept selectedDept;
private VerticalPanel coursesWidget;
private VerticalPanel summaryWidget;

 /**
   * This is the entry point method.
   */

public void onModuleLoad() {
DockPanel mainPanel = new DockPanel();
mainPanel.setBorderWidth(5);
mainPanel.setSize("100%", "100%");
mainPanel.setHorizontalAlignment(HasAlignment.ALIGN_CENTER);
Widget header = createHeaderWidget();
mainPanel.add(header, DockPanel.NORTH);
mainPanel.setCellHeight(header, "30px");
Widget footer = createFooterWidget();
mainPanel.add(footer, DockPanel.SOUTH);
mainPanel.setCellHeight(footer, "25px");

HorizontalSplitPanel deptsAndCourses =
new HorizontalSplitPanel();

VerticalPanel submit = new VerticalPanel();

deptsAndCourses.setSplitPosition("200px");
deptsAndCourses.setHeight("50%");

Widget depts = createDeptWidget();
deptsAndCourses.setLeftWidget(depts);

Widget courses = createCoursesWidget();
deptsAndCourses.setRightWidget(courses);

Widget summary = createSummaryWidget();
submit.add(summary);

mainPanel.add(deptsAndCourses, DockPanel.CENTER);
mainPanel.add(submit, DockPanel.SOUTH);
RootPanel.get().add(mainPanel);
}
/**
 * Creates the Summary part of the layout.
 */
public Widget createSummaryWidget(){
summaryWidget = new VerticalPanel();
summaryWidget.setHeight("50%");
return summaryWidget;
//return new Label("Summary");
}

/**
 * Creates the header part of the layout.
 */
protected Widget createHeaderWidget() {
return new Label("LJ_Test");
}

/**
 * Creates the footer part of the layout.
 */
protected Widget createFooterWidget() {
HTML footer = new HTML("Boston University");
footer.setStyleName("footer");
return footer;
}

/**
 * Creates the widget that will display the list of
 * depts on the left side of the screen
 */
protected Widget createDeptWidget() {
VerticalPanel deptList = new VerticalPanel();
deptList.setWidth("100%");
List depts = getAllDepts();
for (final Dept ins : depts) {
Widget deptRow = createDeptRow(ins);
deptList.add(deptRow);
}
return deptList;
}

/**
 * Creates the widget that will display a dept
 * in the depts list
 */

protected Widget createDeptRow(final Dept dept) {
final Label row = new Label(dept.getName());
row.setWordWrap(false);
row.setStyleName("deptRow");
row.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent e) {

SOP in GWT 2.0

2010-02-09 Thread Lothrien
In development mode I can access the xml file I want to read within
the GWT application - everything ok so far.
When I compile the app and call it from the file system, this was
working in v1.7.1, but now I get an SOP error(!)
How can I get around this?

public String xmlfile= "../xml_with_content.xml";

String xml = GWT.getModuleBaseURL() + xmlfile;
RequestBuilder requestBuilder = new
RequestBuilder(RequestBuilder.GET,xml);
   try {
  requestBuilder.sendRequest(null, new RequestCallback() {
public void onError(Request request, Throwable exception) {
  requestFailed(exception);
}
public void onResponseReceived(Request request, Response
response) {
   loadXML(response.getText());
}
});
} catch (RequestException ex) {
requestFailed(ex);
}

-- 
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-tool...@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: RootPanel.get() problems

2010-02-09 Thread Thomas Broyer


On Feb 9, 10:37 am, "Juan M.M.M."  wrote:
> Hi man!
>
> Thx for the reply but I can't set the visiblitiy with this method
> Document.get().getElementById(...) .
>
> Can you tell me the exact sintax to acced to the setVisibility method
> through Document clas?

Either getStyle.setDisplay(Display.NONE) to hide and
getStyle().clearDisplay() to show; or UIObject.setVisible(elt, false)
to hide (pass 'true' as the second argument to show).

-- 
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-tool...@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: jQuery

2010-02-09 Thread Jan Ehrhardt
The $ method is in the global namespace, which cannot be accessed from GWT
native JS code directly. You'll have to use the $wnd variable instead, which
brings the global namespace to GWT. So the first method of the simple
example has to look like this:

public static native Object query(String selector) /*-{
   return($wnd.$(selector));
}-*/;

Regards
Jan Ehrhardt

On Tue, Feb 9, 2010 at 9:30 AM, dougx  wrote:

> There's no magic to this; just add jquery to the page as a javascript
> include and then use JSNI to invoke various calls.
>
> Here is a trivial example:
>
> public static native Object query(String selector) /*-{
>return($(selector));
> }-*/;
>
> public static native void hide(Object target) /*-{
>   target.hide();
> }-*/;
>
> public void javaTest() {
>Object objects = query(".mytarget");
>hide(objects);
> }
>
> If you want to have access to a more 'complete' jquery interface, you
> can have a look at the GQuery project; you'll have to get the source
> and rebuild it yourself, however, to use it with 2.0
>
> ~
> Doug.
>
> On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > Dear all;
> >
> > can u please tell me how to use jQuery in GWT... do i need to add
> something
> > to xml files. and how to call the jQuery functions
> >
> > thanks
> >
> > --
> > ~~~With Regards~~~
> > Muhannad Dar-Nasser
> > ~~Computer Systems Engineering~~
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: Error loading my app

2010-02-09 Thread Joe Cole
I haven't seen that in particular, but what I usually do is look at
the error codes and google them:

http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=nsIDOMHTMLSelectElement.selectedIndex

It's obviously to do with a select's selected index, probably being
set to an invalid index.

On Feb 9, 7:36 am, BR  wrote:
> I get this while loading my app. Anyone knows what it might be caused
> by? This is GWT 2.0, on MacOS X Snow Leopard, in OOPHM:
>
> 00:04:00.123 [ERROR] Uncaught exception escaped
> com.google.gwt.core.client.JavaScriptException: (NS_ERROR_FAILURE):
> Component returned failure code: 0x80004005 (NS_ERROR_FAILURE)
> [nsIDOMHTMLSelectElement.selectedIndex]  QueryInterface: function
> QueryInterface() {     [native code] }  result: 2147500037  
> filename:http://test.taskdock.com: lineNumber: 62  columnNumber: 0  inner:
> null  data: null  initialize: function initialize() {     [native
> code] }         at
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChann 
> elServer.java:
> 195)    at
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:
> 120)    at
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:
> 507)    at
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:
> 264)    at
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.j 
> ava:
> 91)     at com.google.gwt.core.client.impl.Impl.apply(Impl.java)        at
> com.google.gwt.core.client.impl.Impl.entry0(Impl.java:188)      at
> sun.reflect.GeneratedMethodAccessor52.invoke(Unknown Source)    at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp 
> l.java:
> 25)     at java.lang.reflect.Method.invoke(Method.java:585)     at
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
> at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:
> 71)     at
> com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.jav a:
> 157)    at
> com.google.gwt.dev.shell.BrowserChannel.reactToMessages(BrowserChannel.java :
> 1668)   at
> com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChan 
> nelServer.java:
> 401)    at
> com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java :
> 222)    at java.lang.Thread.run(Thread.java:613)

-- 
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-tool...@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: How to configure my web.xml

2010-02-09 Thread Nathan Wells
If you are running in hosted mode or OOPHM, you should only have to
restart the web server, not trigger compilation. It should work like
this:

Change server source file = restart web server
Change client source file (hosted mode) = reload page
Change any source file (compiled mode) = recompile

Is this not the case?

On Feb 6, 11:50 pm, Manny  wrote:
> I have the same error. there is no help out there and documentation on
> these
> common errors are TERRIBLE. thanks for posting this
>
> On Jan 10, 8:42 pm, Dave  wrote:
>
>
>
> > I fixed the error. I was unaware that I had to compile the application
> > before. I can't recall any literature which tells you to compile
> > before running. I felt that by running it as a web app, then the
> > requisite compilation would have been done automatically.
>
> > On Jan 10, 1:28 pm, Dave  wrote:
>
> > >  When I made the the following changes and I navigate 
> > > tohttp://localhost:/my_App.html?gwt.codesvr=127.0.1.1:9997#page1. I
> > > am getting "HTTP ERROR: 404 NOT_FOUND RequestURI=/my_app/service1".
>
> > > Changes:
>
> > > web.xml.
> > > 
> > >     service1
> > >     com.server.ServiceImpl1
> > >   
> > >   
> > >     service2
> > >     com.server.ServiceImpl2
> > >   
>
> > >   
> > >     service1
> > >     /my_app/service1
> > >   
>
> > >   
> > >     service2
> > >     /my_app/service2
> > >   
>
> > > My client side service interface is as follows
> > > @RemoteServiceRelativePath("service1")
> > > public interface MyService extends RemoteService
> > > {
> > >     //some function prototype
> > >    //some function prototype
>
> > > }
>
> > > I am following instruction found 
> > > at:http://code.google.com/webtoolkit/doc/1.6/tutorial/appengine.html#test.
> > > What am I doing wrong?

-- 
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-tool...@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: ScrollPanel Widget like Google Wave

2010-02-09 Thread Marcos Alcantara
Hi,

I would be interested too!! =)

Best regards,

Marcos Alcantara

On 9 fev, 01:59, Allahbaksh  wrote:
> HI All,
> Any one has implemented the ScrollPanel widget like the one in Google
> Wave? Any pointer to the any advanced library for doing the same.
> Regards,
> Allahbaksh

-- 
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-tool...@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-ckeditor v0.3 release

2010-02-09 Thread Damien Picard
Thank you.

Don't hesitate to add your requirements in the issue tracker : it will
provide me a roadmap.

2010/2/9 Prashant Gupta 

> I was using the JS version of CKEditor, I think gwt-ckeditor will replace
> it without any problem.
>
> Thanks a lot.
>
> --
> 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-tool...@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.
>



-- 
Damien Picard
Open Source BPM : http://code.google.com/p/osbpm

-- 
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-tool...@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-ckeditor v0.3 release

2010-02-09 Thread Prashant Gupta
I was using the JS version of CKEditor, I think gwt-ckeditor will replace it
without any problem.

Thanks a lot.

-- 
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-tool...@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: Unable to Use GWT Developer Plugin with Firefox 3.6

2010-02-09 Thread vali
Hello!

I've got the same problem. I can install the plugin in firefox 3.6 but
when i want to use it, i just get a message that i need the plugin (as
if it wasnt installed yet).
Works with FF3.6 in windows tho'
Using 3.5.7 until the bug is fixed... Unfortunately i didnt find many
people complaining about that, so i hope this will be fixed at all.

im using arch linux w/ 2.6.32 under gnome btw.
greets
vali

On 8 Feb., 13:55, makoki  wrote:
> We've got a similar problem under mac. The app that before the plugin
> update worked fine now has some problems with DateBox instances, other
> browsers plugins seems fine, the application runs fine if compiled and
> seen through any browser including FF without plugin, it gets the same
> problems if try the compiled app with a FF browser with the plugin.
> Oh, we're using FF 3.6 and GWT 2.0
>
> On 3 feb, 14:21, kolstae  wrote:
>
> > I have the exact sameproblem.
>
> > On Feb 2, 4:53 pm, Thad  wrote:
>
> > > Yes.  This has been observed and commented on.  I've been 
> > > usingFirefox3.5.7 (on Linux) because of this.
>
> > > This morning I was alerted to an update to the GWTplugin, and
> > > installed it (v.1.0.7511).  However it still does not work 
> > > withFirefox3.6.  When I try using it,Firefox3.6just asks for,
> > > downloads, and installs thepluginover and over again.
>
> > > On Jan 30, 2:39 am, akhil  wrote:
>
> > > > Dear Team,
>
> > > > i m using GWT 2.0 with MyEclips6.0, i created an sample project with
> > > > GWT but when i compile and goto browse (FireFox3.6) that it is asking
> > > > that apluginis required , as per give link i download theplugin
> > > > also, but it's showing error that it is not compatible withFireFox3.6
>
> > > > wating for Help
>
> > > > regards
> > > > Akhil

-- 
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-tool...@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 run tests with GWTTestCases and -noserver mode?

2010-02-09 Thread Ed
How can I run tests that extends from GWTTestCase in gwt 2.0 with
noserver mode?

I tried it, accoding to the documentation GWT JUnit, but don't really
understand why GWT uses his own GWTShellServlet, instead of mine :(...
I also tried to use my own war/WEB-INF/web.xml but without any luck.
I think I am missing something here

-- 
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-tool...@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.



[ANN] BST Player 1.1 released

2010-02-09 Thread sbraheem
Hello,

I am pleased to announce the release of BST Player API 1.1 - (http://
oss.bramosystems.com/bst-player).  The API exposes WMP, QT, Flash, VLC
media player plugins as regular GWT widgets.

This is a major release with new features and numerous enhancements
including:
* NativePlayer widget to embed media using HTML 5 video elements.
* YouTubePlayer widget to add YouTube videos in GWT apps
* GWT 2.0's UiBinder support
* Introduces a module to export the player widgets as Javascript
object in non-GWT apps
* Matrix transformation feature support
* Support for Mouse and Keyboard event handlers
* and more ...

The updated showcase application [@ 
http://oss.bramosystems.com/bst-player/demo/showcase/index.html]
has been tested on Firefox 3.0/3.5, Internet Explorer 7/8, Safari 4
and Chrome 4.

As always, your feedback is highly appreciated.

Kind regards.

Sikiru Braheem.

-- 
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-tool...@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: jQuery

2010-02-09 Thread matttai
The GWT Extreme video from the 08 Google IO details everything pretty
well:

http://www.youtube.com/watch?v=2ScPbu8ga1Q

On Feb 9, 9:07 pm, mariyan nenchev  wrote:
> Could you be more detailed :)
>
>
>
> On Tue, Feb 9, 2010 at 12:06 PM, matttai  wrote:
> > speed
>
> > the gwt compiler has a mind boggling amount of optimization
>
> > On Feb 9, 8:53 pm, mariyan nenchev  wrote:
> > > What does Gquery give you that gwt can't?
>
> > > On Tue, Feb 9, 2010 at 10:30 AM, dougx  wrote:
> > > > There's no magic to this; just add jquery to the page as a javascript
> > > > include and then use JSNI to invoke various calls.
>
> > > > Here is a trivial example:
>
> > > > public static native Object query(String selector) /*-{
> > > >    return($(selector));
> > > > }-*/;
>
> > > > public static native void hide(Object target) /*-{
> > > >   target.hide();
> > > > }-*/;
>
> > > > public void javaTest() {
> > > >    Object objects = query(".mytarget");
> > > >    hide(objects);
> > > > }
>
> > > > If you want to have access to a more 'complete' jquery interface, you
> > > > can have a look at the GQuery project; you'll have to get the source
> > > > and rebuild it yourself, however, to use it with 2.0
>
> > > > ~
> > > > Doug.
>
> > > > On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > > > > Dear all;
>
> > > > > can u please tell me how to use jQuery in GWT... do i need to add
> > > > something
> > > > > to xml files. and how to call the jQuery functions
>
> > > > > thanks
>
> > > > > --
> > > > > ~~~With Regards~~~
> > > > > Muhannad Dar-Nasser
> > > > > ~~Computer Systems Engineering~~
>
> > > > --
> > > > 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-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com > > >  cr...@googlegroups.com> > cr...@googlegroups.com>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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-ckeditor v0.3 release

2010-02-09 Thread Abdullah Shaikh
Hey Damien, I just had a look at the editor,  its cool ..

- Abdullah

On Tue, Feb 9, 2010 at 4:45 PM, Damien Picard wrote:

> Thank you :)
>
> 2010/2/9 Thomas Broyer 
>
>
>>
>> On Feb 9, 8:57 am, Damien Picard  wrote:
>> > Hi,
>> >
>> > I'm pleased to announce the v0.3 release of gwt-ckeditor :
>> > v0.3
>> >
>> > Changes
>> >
>> >- Fixing issues on multiple custom toolbar and attach/detach editor
>> >- Adding entities and enter mode support
>> >
>> > Many thanks to codex69 for its reviews. (font_names and font_sizes lists
>> > will be added soon).
>>
>> You forgot the link: http://code.google.com/p/gwt-ckeditor/
>>
>> --
>> 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-tool...@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.
>>
>>
>
>
> --
> Damien Picard
> Open Source BPM : http://code.google.com/p/osbpm
>
>  --
> 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-tool...@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.
>

-- 
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-tool...@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-ckeditor v0.3 release

2010-02-09 Thread Damien Picard
Thank you :)

2010/2/9 Thomas Broyer 

>
>
> On Feb 9, 8:57 am, Damien Picard  wrote:
> > Hi,
> >
> > I'm pleased to announce the v0.3 release of gwt-ckeditor :
> > v0.3
> >
> > Changes
> >
> >- Fixing issues on multiple custom toolbar and attach/detach editor
> >- Adding entities and enter mode support
> >
> > Many thanks to codex69 for its reviews. (font_names and font_sizes lists
> > will be added soon).
>
> You forgot the link: http://code.google.com/p/gwt-ckeditor/
>
> --
> 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-tool...@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.
>
>


-- 
Damien Picard
Open Source BPM : http://code.google.com/p/osbpm

-- 
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-tool...@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: Adding new event types (touch etc.)

2010-02-09 Thread msa...@gmail.com
On Feb 8, 11:17 am, Thomas Broyer  wrote:
> On Feb 7, 7:54 pm, "msa...@gmail.com"  wrote:
> > Is there a way to get GWT to deliver new native events to
> > Widget.onBrowserEvent(),
>
> Yes, just use
> @com.google.gwt.user.client.impl.DOMImplStandard::dispatchEvent as the
> handler.
>
> > or do I have register a listener myself in
> > JavaScript code?
>
> You'd have to register the listener anyway.

Thanks!


Alexander (aka Sasha) Maryanovsky.

-- 
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-tool...@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: jQuery

2010-02-09 Thread mariyan nenchev
Could you be more detailed :)

On Tue, Feb 9, 2010 at 12:06 PM, matttai  wrote:

> speed
>
> the gwt compiler has a mind boggling amount of optimization
>
> On Feb 9, 8:53 pm, mariyan nenchev  wrote:
> > What does Gquery give you that gwt can't?
> >
> >
> >
> > On Tue, Feb 9, 2010 at 10:30 AM, dougx  wrote:
> > > There's no magic to this; just add jquery to the page as a javascript
> > > include and then use JSNI to invoke various calls.
> >
> > > Here is a trivial example:
> >
> > > public static native Object query(String selector) /*-{
> > >return($(selector));
> > > }-*/;
> >
> > > public static native void hide(Object target) /*-{
> > >   target.hide();
> > > }-*/;
> >
> > > public void javaTest() {
> > >Object objects = query(".mytarget");
> > >hide(objects);
> > > }
> >
> > > If you want to have access to a more 'complete' jquery interface, you
> > > can have a look at the GQuery project; you'll have to get the source
> > > and rebuild it yourself, however, to use it with 2.0
> >
> > > ~
> > > Doug.
> >
> > > On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > > > Dear all;
> >
> > > > can u please tell me how to use jQuery in GWT... do i need to add
> > > something
> > > > to xml files. and how to call the jQuery functions
> >
> > > > thanks
> >
> > > > --
> > > > ~~~With Regards~~~
> > > > Muhannad Dar-Nasser
> > > > ~~Computer Systems Engineering~~
> >
> > > --
> > > 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-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com cr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: jQuery

2010-02-09 Thread matttai
speed

the gwt compiler has a mind boggling amount of optimization

On Feb 9, 8:53 pm, mariyan nenchev  wrote:
> What does Gquery give you that gwt can't?
>
>
>
> On Tue, Feb 9, 2010 at 10:30 AM, dougx  wrote:
> > There's no magic to this; just add jquery to the page as a javascript
> > include and then use JSNI to invoke various calls.
>
> > Here is a trivial example:
>
> > public static native Object query(String selector) /*-{
> >    return($(selector));
> > }-*/;
>
> > public static native void hide(Object target) /*-{
> >   target.hide();
> > }-*/;
>
> > public void javaTest() {
> >    Object objects = query(".mytarget");
> >    hide(objects);
> > }
>
> > If you want to have access to a more 'complete' jquery interface, you
> > can have a look at the GQuery project; you'll have to get the source
> > and rebuild it yourself, however, to use it with 2.0
>
> > ~
> > Doug.
>
> > On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > > Dear all;
>
> > > can u please tell me how to use jQuery in GWT... do i need to add
> > something
> > > to xml files. and how to call the jQuery functions
>
> > > thanks
>
> > > --
> > > ~~~With Regards~~~
> > > Muhannad Dar-Nasser
> > > ~~Computer Systems Engineering~~
>
> > --
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

-- 
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-tool...@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: jQuery

2010-02-09 Thread mariyan nenchev
What does Gquery give you that gwt can't?

On Tue, Feb 9, 2010 at 10:30 AM, dougx  wrote:

> There's no magic to this; just add jquery to the page as a javascript
> include and then use JSNI to invoke various calls.
>
> Here is a trivial example:
>
> public static native Object query(String selector) /*-{
>return($(selector));
> }-*/;
>
> public static native void hide(Object target) /*-{
>   target.hide();
> }-*/;
>
> public void javaTest() {
>Object objects = query(".mytarget");
>hide(objects);
> }
>
> If you want to have access to a more 'complete' jquery interface, you
> can have a look at the GQuery project; you'll have to get the source
> and rebuild it yourself, however, to use it with 2.0
>
> ~
> Doug.
>
> On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > Dear all;
> >
> > can u please tell me how to use jQuery in GWT... do i need to add
> something
> > to xml files. and how to call the jQuery functions
> >
> > thanks
> >
> > --
> > ~~~With Regards~~~
> > Muhannad Dar-Nasser
> > ~~Computer Systems Engineering~~
>
> --
> 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-tool...@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.
>
>

-- 
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-tool...@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: RootPanel.get() problems

2010-02-09 Thread Juan M.M.M.
Hi man!

Thx for the reply but I can't set the visiblitiy with this method
Document.get().getElementById(...) .

Can you tell me the exact sintax to acced to the setVisibility method
through Document clas?

best regards!

On Feb 3, 5:38 pm, Thomas Broyer  wrote:
> On Feb 2, 6:00 pm, "Juan M.M.M."  wrote:
>
>
>
> > hi!
>
> > I'm becoming exasperated because this class sometimes works fine and
> > sometimes it going crazy. Let's supose this HTML like mine
>
> > ...
> > 
> >    
> >       
> >       
> >    
> >    
> >    
> > 
>
> > In method OnModuleLoad() u can refeer with this sentence RootPanel.get
> > ("div_name") to the DIV layer without problems. Then if u do the same
> > but in another public method, for example u could be refeer to the
> > frame1 and frame2 layer BUT if u refeer to frame1.1, u will get this
> > error:
>
> > java.lang.AssertionError: A widget that has an existing parent widget
> > may not be added to the detach list
> >     at com.google.gwt.user.client.ui.RootPanel.detachOnWindowClose
> > (RootPanel.java:136)
> >     at com.google.gwt.user.client.ui.RootPanel.get(RootPanel.java:211)
> >     at com.my.irn.client.IRn.DisplayResults(IRn.java:398)
> >     at com.my.irn.client.IRn.Paginar(IRn.java:450)
>
> > ...
>
> > Why is hapenning with this class?
>
> See:http://code.google.com/p/google-web-toolkit/issues/detail?id=3511
> and linked issues.
>
> > Can I try another way to setWidgets,
>
> As suggested by rjrjr on the above-linked issue, you could use
> HTMLPanel:
>    RootPanel frame1 = RootPanel.get("frame1");
>    HTMLPanel html = new HTMLPanel(frame1.getElement().getInnerHTML());
>    frame1.getElement().setInnerHTML("");
>    frame1.add(html);
>    // then you can use html.addAndReplace("frame1.1", someOtherWidget)
>
> > setVisibility, etc to the DIVs layer.
>
> As I said on the above-linked issue, if all you want is setVisible,
> use Document.get().getElementById(...) instead of RootPanel.get(...)

-- 
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-tool...@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: jQuery

2010-02-09 Thread muhannad nasser
thanks very much. i will try it

On Tue, Feb 9, 2010 at 10:30 AM, dougx  wrote:

> There's no magic to this; just add jquery to the page as a javascript
> include and then use JSNI to invoke various calls.
>
> Here is a trivial example:
>
> public static native Object query(String selector) /*-{
>return($(selector));
> }-*/;
>
> public static native void hide(Object target) /*-{
>   target.hide();
> }-*/;
>
> public void javaTest() {
>Object objects = query(".mytarget");
>hide(objects);
> }
>
> If you want to have access to a more 'complete' jquery interface, you
> can have a look at the GQuery project; you'll have to get the source
> and rebuild it yourself, however, to use it with 2.0
>
> ~
> Doug.
>
> On Feb 9, 3:41 pm, muhannad nasser  wrote:
> > Dear all;
> >
> > can u please tell me how to use jQuery in GWT... do i need to add
> something
> > to xml files. and how to call the jQuery functions
> >
> > thanks
> >
> > --
> > ~~~With Regards~~~
> > Muhannad Dar-Nasser
> > ~~Computer Systems Engineering~~
>
> --
> 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-tool...@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.
>
>


-- 
~~~With Regards~~~
Muhannad Dar-Nasser
~~Computer Systems Engineering~~
~~.NET Developer @ Iconnecths~~
~~My Blog: http://mhand7.blogspot.com~~
~~0598-534520~~

-- 
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-tool...@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-ckeditor v0.3 release

2010-02-09 Thread Thomas Broyer


On Feb 9, 8:57 am, Damien Picard  wrote:
> Hi,
>
> I'm pleased to announce the v0.3 release of gwt-ckeditor :
> v0.3
>
> Changes
>
>    - Fixing issues on multiple custom toolbar and attach/detach editor
>    - Adding entities and enter mode support
>
> Many thanks to codex69 for its reviews. (font_names and font_sizes lists
> will be added soon).

You forgot the link: http://code.google.com/p/gwt-ckeditor/

-- 
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-tool...@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: I need SOP disabled in GWT 2.0 built-in web server.

2010-02-09 Thread Thomas Broyer


On Feb 9, 4:26 am, Tatchan  wrote:
> Hi Rob,
>
> Thanks for the tip. I guess it's the same as the -noserver & -
> startupUrl isn't it? Anyway, I got an external Apache HTTP server
> working.
> What I'm saying is that it would be lovely if we have an option to
> disable SOP with the built-in web server at least with the localhost
> in development mode. That might be easier for some one who have to
> work with external legacy services. Furthermore, I feel that debugging
> with the built-in web server is more reliable (e.g., changes in code
> are usually applied when refreshing the browser, break-points are
> usually hit :)

If you're talking about server-side code, then yes I agree. For client-
side code though, it works very well in -noserver mode.

You might want to use a "proxy servlet" eventually in the embedded
server to proxy requests to your external server:
http://code.google.com/p/google-web-toolkit/issues/detail?id=3131

-- 
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-tool...@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: SuggestBox and HasBlurHandlers

2010-02-09 Thread Thomas Broyer


On Feb 9, 6:32 am, bestey  wrote:
> Just wondering if there is an easy way to know when focus is lost from
> a SuggestBox?
> It doesn't implement HasFocusHandlers and HasBlurHandlers but it does
> have HasFocus!
> Any advice would be appreciated.

Attach your handlers to the underlying TextBoxBase
(suggestBox.getTextBox().addBlurHandler(...)) as you're told to do in
the JavaDoc for the deprecated addFocusListener:
http://google-web-toolkit.googlecode.com/svn/javadoc/2.0/com/google/gwt/user/client/ui/SuggestBox.html#addFocusListener(com.google.gwt.user.client.ui.FocusListener)

-- 
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-tool...@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: Authenticate before loading the application

2010-02-09 Thread dougx
Serve content via servlet, it's fair easy. For an example look here:
http://blog.goodcamel.com/2010/01/08/workaround-for-google-app-engine-static-file-304-not-modified-gae/

You can then check in the servlet for authentication via cookie / id
and refuse to serve unauthenticated users.

~
Doug.

On Feb 9, 6:26 am, Simon  wrote:
> Yes that is the basics of app engine security. I use it to get the
> Google account of the user.
>
> This is the first step of the login: Google authentication.
> Second step I want to validate the Google account against my own set
> of users,
> Last step I want to send to the user the whole javascript app.
>
> On 8 fév, 23:04, Youngster  wrote:
>
>
>
> > Did you have a look at this 
> > page:http://code.google.com/appengine/docs/java/config/webxml.html#Securit...
> > ?

-- 
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-tool...@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: Any Google Wave developers in this group?

2010-02-09 Thread dougx
Yes. I use GWT for all my wave code; please post if you create a
specific group for wave related GWT stuff...

~
Doug.

On Feb 9, 1:57 pm, Jonas Huckestein  wrote:
> Hi guys,
>
> I was wondering if there were enough wave developers around here that
> use gwt so that we could start our own group. I feel that in both the
> Wave API group and in this one messages on that subject tend to go
> unnoticed.
>
> Anybody interested?
>
> I am about to publish my own mock implementation of the Wave API for
> GWT that I made to locally test my gadgets, but I guess I might not be
> the only one.
>
> Cheers,
> Jonas
> --
> Jonas Huckestein
>
> http://thezukunft.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-tool...@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: jQuery

2010-02-09 Thread dougx
There's no magic to this; just add jquery to the page as a javascript
include and then use JSNI to invoke various calls.

Here is a trivial example:

public static native Object query(String selector) /*-{
return($(selector));
}-*/;

public static native void hide(Object target) /*-{
   target.hide();
}-*/;

public void javaTest() {
Object objects = query(".mytarget");
hide(objects);
}

If you want to have access to a more 'complete' jquery interface, you
can have a look at the GQuery project; you'll have to get the source
and rebuild it yourself, however, to use it with 2.0

~
Doug.

On Feb 9, 3:41 pm, muhannad nasser  wrote:
> Dear all;
>
> can u please tell me how to use jQuery in GWT... do i need to add something
> to xml files. and how to call the jQuery functions
>
> thanks
>
> --
> ~~~With Regards~~~
> Muhannad Dar-Nasser
> ~~Computer Systems Engineering~~

-- 
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-tool...@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.