Can anybody provide some resource about connecting to webservice(apache cxf ) through RPC.

2009-04-24 Thread Alex Luya

A example is preferred,because little content can be found by 
googling.thank you.

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



Re: Help

2009-04-24 Thread Vitali Lovich
Read the first line of the response.  are you getting a 404?

On Sat, Apr 25, 2009 at 12:39 AM, grigoregeorge <
grigoregeorge631...@gmail.com> wrote:

>
> The main requirement of this application si to display 2 images, the
> bigest image is the background of the small image, the image is on
> each other
>
> On 24 Apr, 22:18, Vitali Lovich  wrote:
> > Check the Jetty log.  Are you getting a 404 on the resource request?
> >
> > Also, I dunno why you are doing what you are doing with DockPanel, but in
> > any case it's probably wrong.  Every time you add a widget it'll append
> > "-parent" to each child.  So after 3 adds, the 1st child added will have
> >
> > class-parent-parent-parent.
> >
> > Also, that's a potential performance problem.  Why aren't you setting the
> > classname explicitly outside of dock panel.  Or create a separate class
> with
> > a dedicated method that'll properly set the style name as you want once,
> > after all children have been added.
> >
> > Or if you want a more automatic approach, something like
> >
> > private boolean invalidated = false;
> > void add(Widget w, Constraints c) {
> >  super.add(w, c);
> >  invalidated = true;
> >  DeferredCommand.addCommand(new Command() {
> >public void execute() {
> >  if (invalidated) {
> >  invalidated = false;
> >  // refresh style names
> >  }
> >  });
> >
> > }
> >
> > or even better create 1 timer & schedule it on every addition, thereby
> > bypassing invalidate & the need to create a deferred command.
> >
> > On Fri, Apr 24, 2009 at 2:39 PM, grigoregeorge <
> >
> > grigoregeorge631...@gmail.com> wrote:
> >
> > > Hello. I have a problem with my application. Why don't display all the
> > > 2 image in the Web Application Starter Project
> >
> > > import java.util.Iterator;
> > > import com.google.gwt.core.client.EntryPoint;
> > > import com.google.gwt.user.client.DOM;
> > > import com.google.gwt.user.client.ui.DockPanel;
> > > import com.google.gwt.user.client.ui.RootPanel;
> > > import com.google.gwt.user.client.ui.VerticalPanel;
> > > import com.google.gwt.user.client.ui.Widget;
> >
> > > public class Test implements EntryPoint {
> >
> > >private VerticalPanel northPanel=new VerticalPanel();
> > >private VerticalPanel northPanelBackground=new VerticalPanel();
> >
> > >private DockPanel thePanel=new DockPanel(){
> > >public void add(Widget widget, DockLayoutConstant
> > > direction){
> > >super.add(widget,direction);
> > >Iterator it=getChildren().iterator();
> > >while(it.hasNext()){
> > >widget=(Widget) it.next();
> > >com.google.gwt.user.client.Element
> > > cell=DOM.getParent
> > > (widget.getElement());
> > >DOM.setElementProperty(cell,
> "className",
> > > widget.getStylePrimaryName()+"-parent");
> > >}
> > >}
> > >};
> >
> > >public void onModuleLoad() {
> >
> > >northPanel.setSize("100%", "100%");
> > >northPanel.setStylePrimaryName("north");
> >
> > >thePanel.setSize("100%", "100%");
> > >thePanel.add(northPanel,DockPanel.NORTH);
> > >RootPanel.get().add(thePanel);
> >
> > >}
> > > }
> >
> > > .north {
> > > background-image:url('banner.jpg');
> > >background-repeat:no-repeat;
> > >height:100%;
> > > }
> > > .north-parent {
> > >background-image:url('bg.jpg');
> > >background-repeat:repeat-x;
> > >height:150px;
> > > }
> >
>

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



Re: Help

2009-04-24 Thread grigoregeorge

The main requirement of this application si to display 2 images, the
bigest image is the background of the small image, the image is on
each other

On 24 Apr, 22:18, Vitali Lovich  wrote:
> Check the Jetty log.  Are you getting a 404 on the resource request?
>
> Also, I dunno why you are doing what you are doing with DockPanel, but in
> any case it's probably wrong.  Every time you add a widget it'll append
> "-parent" to each child.  So after 3 adds, the 1st child added will have
>
> class-parent-parent-parent.
>
> Also, that's a potential performance problem.  Why aren't you setting the
> classname explicitly outside of dock panel.  Or create a separate class with
> a dedicated method that'll properly set the style name as you want once,
> after all children have been added.
>
> Or if you want a more automatic approach, something like
>
> private boolean invalidated = false;
> void add(Widget w, Constraints c) {
>  super.add(w, c);
>  invalidated = true;
>  DeferredCommand.addCommand(new Command() {
>    public void execute() {
>      if (invalidated) {
>          invalidated = false;
>          // refresh style names
>      }
>  });
>
> }
>
> or even better create 1 timer & schedule it on every addition, thereby
> bypassing invalidate & the need to create a deferred command.
>
> On Fri, Apr 24, 2009 at 2:39 PM, grigoregeorge <
>
> grigoregeorge631...@gmail.com> wrote:
>
> > Hello. I have a problem with my application. Why don't display all the
> > 2 image in the Web Application Starter Project
>
> > import java.util.Iterator;
> > import com.google.gwt.core.client.EntryPoint;
> > import com.google.gwt.user.client.DOM;
> > import com.google.gwt.user.client.ui.DockPanel;
> > import com.google.gwt.user.client.ui.RootPanel;
> > import com.google.gwt.user.client.ui.VerticalPanel;
> > import com.google.gwt.user.client.ui.Widget;
>
> > public class Test implements EntryPoint {
>
> >        private VerticalPanel northPanel=new VerticalPanel();
> >        private VerticalPanel northPanelBackground=new VerticalPanel();
>
> >        private DockPanel thePanel=new DockPanel(){
> >                public void add(Widget widget, DockLayoutConstant
> > direction){
> >                        super.add(widget,direction);
> >                        Iterator it=getChildren().iterator();
> >                        while(it.hasNext()){
> >                                widget=(Widget) it.next();
> >                                com.google.gwt.user.client.Element
> > cell=DOM.getParent
> > (widget.getElement());
> >                                DOM.setElementProperty(cell, "className",
> > widget.getStylePrimaryName()+"-parent");
> >                        }
> >                }
> >        };
>
> >        public void onModuleLoad() {
>
> >                northPanel.setSize("100%", "100%");
> >                northPanel.setStylePrimaryName("north");
>
> >                thePanel.setSize("100%", "100%");
> >                thePanel.add(northPanel,DockPanel.NORTH);
> >                RootPanel.get().add(thePanel);
>
> >                }
> > }
>
> > .north {
> > background-image:url('banner.jpg');
> >        background-repeat:no-repeat;
> >        height:100%;
> > }
> > .north-parent {
> >        background-image:url('bg.jpg');
> >        background-repeat:repeat-x;
> >        height:150px;
> > }
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: httprequest and response

2009-04-24 Thread jagadesh



Check this blog for writing a HttpRequest in GWT.

http://jagadeshgwt.blogspot.com/

please donot forget to say your comments


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



Re: Can I make a ClickHandler for an AnchorElement?

2009-04-24 Thread dayre

This link might help... i was trying to attach an onClick event to a
list item ... took a while to figure it out, but the solution is
near the end of the thread (
Thomas Broyer 2:07am post)

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/660e5741cf5a09a2/9c169c3dd7cc85ef#9c169c3dd7cc85ef

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



Re: onModuleLoad called when hitting Browser 'Back' button

2009-04-24 Thread lakshmi thyagarajan
Thanks! Yeah that makes sense.

cheers,
Lakshmi

On Fri, Apr 24, 2009 at 7:17 PM, Vitali Lovich  wrote:

> No.  When you hit back, you're browser is navigating to a new page so of
> course you lose all your current Javascript state (otherwise, you could
> potentially leak your state to other sites which at best might corrupt them
> & at worst allow attackers to steal your visitor's data).
>
>
> On Fri, Apr 24, 2009 at 6:07 PM, Lakshmi  wrote:
>
>>
>> Hi,
>>
>> I have been dabbling with GWT 1.6 for a few days now and I have a
>> problem with the History mechanism.
>>
>> I wrote a small application which consists of 4 hyperlinks and a
>> panel. The content of the panel changes depending on which  hyperlink
>> is clicked. Three of these are GWT defined hyperlinks which were
>> created this way: new Hyperlink(" Home","Home"); The fourth is a html
>> link containing href navigates the user to some external application.
>> The history mechanism works properly when I navigate between the GWT
>> hyperlinks. onHistoryChanged is called whenever they are clicked or
>> when I use the 'Back' button between their navigations.
>>
>> However when I click on the html hyperlink and then the 'Back' button,
>> I see that my application's url is loaded (http://localhost:8080/
>> KDDBrowser.html#Home ),
>> but onHistoryChanged is not called. Instead
>> onModuleLoad is called. This, I think, means that a new instance of
>> the module is now serving my request because of which the state that I
>> had stored in my earlier instance of the module is now lost :(
>> Since it is the same browser instance I had expected GWT to route all
>> requests coming from the same browser instance to the same module
>> instance (and hence call 'onHistoryChanged' instead of 'onModuleLoad')
>> Is there no way of maintaining state when navigating away from a GWT
>> application and back?
>>
>> thanks,
>> Lakshmi
>>
>>
>>
>
> >
>

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



Re: Can I make a ClickHandler for an AnchorElement?

2009-04-24 Thread Vitali Lovich
GWT isn't designed to work at that level with native DOM events.  The far
easier approach would be to wrap the AnchorElement in a GWT widget
(Anchorfor
instance).  Otherwise, you have to deal with sinking events & working
with native Javascript events & worrying about memory leaks, at which point,
just use Javascript since GWT isn't really providing any benefits.

On Fri, Apr 24, 2009 at 7:48 PM, Dr Hfuhruhurr wrote:

>
> It is straightforward to find an id-labelled element in the DOM by for
> example a command such as
>
> AnchorElement ae = Document.get().getElementById("link1");
>
> Now I want to capture clicks on this element, but I can't for my life
> find any way to register any kind of handler for events on a DOM
> element.
> Any ideas?
>
> (Yes I know this is not in the spirit of GWT, but I still want to do
> it. I want to generate a script that will work prebuilt html-
> documents, much like jQuery does. This is an experiment for my own
> understanding of GWT rather than how I will use it in the future. I
> promise I will not do this in production 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: onModuleLoad called when hitting Browser 'Back' button

2009-04-24 Thread Vitali Lovich
No.  When you hit back, you're browser is navigating to a new page so of
course you lose all your current Javascript state (otherwise, you could
potentially leak your state to other sites which at best might corrupt them
& at worst allow attackers to steal your visitor's data).

On Fri, Apr 24, 2009 at 6:07 PM, Lakshmi  wrote:

>
> Hi,
>
> I have been dabbling with GWT 1.6 for a few days now and I have a
> problem with the History mechanism.
>
> I wrote a small application which consists of 4 hyperlinks and a
> panel. The content of the panel changes depending on which  hyperlink
> is clicked. Three of these are GWT defined hyperlinks which were
> created this way: new Hyperlink(" Home","Home"); The fourth is a html
> link containing href navigates the user to some external application.
> The history mechanism works properly when I navigate between the GWT
> hyperlinks. onHistoryChanged is called whenever they are clicked or
> when I use the 'Back' button between their navigations.
>
> However when I click on the html hyperlink and then the 'Back' button,
> I see that my application's url is loaded (http://localhost:8080/
> KDDBrowser.html#Home ), but
> onHistoryChanged is not called. Instead
> onModuleLoad is called. This, I think, means that a new instance of
> the module is now serving my request because of which the state that I
> had stored in my earlier instance of the module is now lost :(
> Since it is the same browser instance I had expected GWT to route all
> requests coming from the same browser instance to the same module
> instance (and hence call 'onHistoryChanged' instead of 'onModuleLoad')
> Is there no way of maintaining state when navigating away from a GWT
> application and back?
>
> thanks,
> Lakshmi
>
> >
>

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



onModuleLoad called when hitting Browser 'Back' button

2009-04-24 Thread Lakshmi

Hi,

I have been dabbling with GWT 1.6 for a few days now and I have a
problem with the History mechanism.

I wrote a small application which consists of 4 hyperlinks and a
panel. The content of the panel changes depending on which  hyperlink
is clicked. Three of these are GWT defined hyperlinks which were
created this way: new Hyperlink(" Home","Home"); The fourth is a html
link containing href navigates the user to some external application.
The history mechanism works properly when I navigate between the GWT
hyperlinks. onHistoryChanged is called whenever they are clicked or
when I use the 'Back' button between their navigations.

However when I click on the html hyperlink and then the 'Back' button,
I see that my application's url is loaded (http://localhost:8080/
KDDBrowser.html#Home), but onHistoryChanged is not called. Instead
onModuleLoad is called. This, I think, means that a new instance of
the module is now serving my request because of which the state that I
had stored in my earlier instance of the module is now lost :(
Since it is the same browser instance I had expected GWT to route all
requests coming from the same browser instance to the same module
instance (and hence call 'onHistoryChanged' instead of 'onModuleLoad')
Is there no way of maintaining state when navigating away from a GWT
application and back?

thanks,
Lakshmi

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



Can I make a ClickHandler for an AnchorElement?

2009-04-24 Thread Dr Hfuhruhurr

It is straightforward to find an id-labelled element in the DOM by for
example a command such as

AnchorElement ae = Document.get().getElementById("link1");

Now I want to capture clicks on this element, but I can't for my life
find any way to register any kind of handler for events on a DOM
element.
Any ideas?

(Yes I know this is not in the spirit of GWT, but I still want to do
it. I want to generate a script that will work prebuilt html-
documents, much like jQuery does. This is an experiment for my own
understanding of GWT rather than how I will use it in the future. I
promise I will not do this in production 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: FileUpload - how to get status back from server??

2009-04-24 Thread Vitali Lovich
Technically no.  It's a limitation of the HTML spec.  You could try the
following hack (untested so dunno how practicle this is & what pitfalls you
might enounter - as the lkml people say, here be dragons):

In your response, you could presumably return JSON objects which you can
then eval in JSNI & use overlay types to provide more Java-friendly access
to them.

Additionally, if you were super-crazy, it might be possible to try & use the
GWT RPC serializer to serialize the response on the server side & then
somehow get the GWT de-serializer on the client to parse the result into
"Java" objects.

On Fri, Apr 24, 2009 at 9:38 PM, TimOnGmail  wrote:

>
> Hi all...
>
> I'm using FileUpload to upload a file to a servlet.
>
> The problem is, there can be a lot of different problems on the server
> side (IOExceptions, format errors, etc.), and I want to get those back
> to my GWT app.
>
> Problem is, it seems the FileUpload only reports back (via its Event
> mechanism) that text of a "page" that is returned in the response.  I
> can't seem to get an error message, Exception object, status code, or
> anything like that; just a page of HTML, text, etc.
>
> Does anyone know if there is any way to report back status, other than
> return back some known text/XML in the response?  Throwing an
> Exception on the server just returns the text of the stacktrace in the
> response.
>
> - Tim
>
> >
>

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



FileUpload - how to get status back from server??

2009-04-24 Thread TimOnGmail

Hi all...

I'm using FileUpload to upload a file to a servlet.

The problem is, there can be a lot of different problems on the server
side (IOExceptions, format errors, etc.), and I want to get those back
to my GWT app.

Problem is, it seems the FileUpload only reports back (via its Event
mechanism) that text of a "page" that is returned in the response.  I
can't seem to get an error message, Exception object, status code, or
anything like that; just a page of HTML, text, etc.

Does anyone know if there is any way to report back status, other than
return back some known text/XML in the response?  Throwing an
Exception on the server just returns the text of the stacktrace in the
response.

- Tim

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



Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files

2009-04-24 Thread cyril.lakech

OK, thank you very much for your answers !

@Isaac: I don't know why, these classes just appears in my war ! I
come here to understand.
@Jason: 1st/ OK that is done but that does not solve my problem. 2nd/
the gwt-user library is never deploy because of the provided scope of
the maven config for this dependency.
@Scott: Good news ! But when I remove the java files, I do not have
any problem... any idea ?

So what can I do to remove those javax/servlet files from my war under
classes directory ?

I just got gwt-user in scope provided (I use maven and the gwt-maven-
plugin from codehaus) and then the gwt compilation add the javax/
servlet class files in my output classes directory and my war...

Bst rgds,

On 24 avr, 18:11, Scott Blum  wrote:
> I don't see this in 1.6.4.  As far as I can tell, all of the .java files in
> javax/servlet have a timestamp of:
> Tue Jul 22 02:00:00 EDT 2008
>
> All of the .class files have:
>
> Tue Jul 22 02:00:30 EDT 2008
>
> The class files are 30 seconds newer than the source files.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SWT seems to think I'm running on Linux and not a Mac ???

2009-04-24 Thread Jeff Chimene

On 04/24/2009 02:42 PM, Rob Tanner wrote:
>
> On Apr 24, 8:37�am, Jeff Chimene  wrote:
>
>> On Thu, Apr 23, 2009 at 9:05 PM, Rob Tanner  wrote:
>>
>>  
>>> On Apr 23, 6:11�pm, Jeff Chimene  wrote:
>>>
 On 04/23/2009 04:57 PM, Rob Tanner wrote:
  
> On Apr 23, 4:25 pm, Jeff Chimene  �wrote:
>
>> On 04/23/2009 04:09 PM, Rob Tanner wrote:
>>  
>>> On Apr 23, 2:46 pm, Jeff Chimene  � wrote:
>>>
 On 04/23/2009 10:25 AM, Rob Tanner wrote:
  
> On Apr 22, 5:35 pm, Jeff Chimene  � wrote:
>
>> On 04/22/2009 04:15 PM, Rob Tanner wrote:
>>  
>>> On Apr 22, 1:00 pm, Jeff Chimene  � wrote:
>>>
 On 04/22/2009 12:06 PM, Rob Tanner wrote:
  
> Hi,
>
> I've been going back and forth with Instantiations tech support 
> over
> their GET Designer Eclipse plugin. When I try and execute a GWT
> application in Eclipse that I built with the Designer, I get an
> Exception immediately. The error is: Exception in thread "main"
> java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in
> java.library.path.
>
> Instantiation's support says that for some reason, GWT's SWT 
> really
> does think I'm running on Linux.
>
> I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet 
> support
> 1.6.4 according to Instantiation support) and I also have the 
> current
> Google plugin from Google's Eclipse update site installed. My 
> system
> is a MacBook Pro with 10.5.6 installed. Does this problem at all
> sound familiar?
>
> Thanks,
> Rob
>
 I'll stake a stab at this, maybe we can isolate the problem...
  
 o Is this your first project w/ GWT in this environment?
 If so, please try establishing a baseline by installing and running
 the StockWatcher example
  
 o Is SWT the Standard Widget Toolkit?
 The sentence "GWT's SWT really does think I'm running on Linux"
 implies ownership of SWT by GWT. Isn't SWT a separate library?
  
>>> Yes. This is my first project.
>>>
>>> I went through the first step of of the project: Creating a GWT
>>> application. When I created it, a message popped up in the Eclipse
>>> console:
>>>
>>> Encountered a problem: Unexpected exception
>>> Please see the logs [/tmp/enhance40780.log] for further information.
>>>
>> Sorry, my previous post (deleted) referenced GWT 1.6
>>  
>> Nevertheless, please set Eclipse aside for the moment and try 
>> compiling
>> any of the samples/
>>  
>> For example, inside the samples/DynaTable/ you should find the
>> DynaTable-compile and DynaTable-shell scripts. Please try one of the
>> samples/* *-compile or the *-shell scripts.
>>  
>>> The contents of the log file:
>>>
>>> java.lang.RuntimeException: Unexpected exception
>>> at com.google.appengine.tools.enhancer.Enhancer.execute
>>>
>> 
>>  
>> I have to admit that I don't understand the log. But, it reinforces 
>> my
>> desire to verify the integrity of your GWT installation.
>>  
>>> Step 2, Testing the default project components, resulted in nothing
>>> being displayed (although the Eclipse console flickered). Assuming
>>> that something got logged about the problem somewhere, do you know
>>> where that somewhere would be?
>>>
>>> With regard to SWT, I believe that's exactly correct. There are 4
>>> jnilibs in the toolkit with swt in their name and I presume they
>>> implement at least part of the Software Widget Toolkit. They are
>>> clearly carbon and not gtk which makes sense because I'm running on 
>>> a
>>> Mac, not Linux. But the error I get using the GWT Designer is no 
>>> swt-
>>> pi-gtk-3062 in java.library.path. Also, I don

Re: SWT seems to think I'm running on Linux and not a Mac ???

2009-04-24 Thread Rob Tanner



On Apr 24, 8:37 am, Jeff Chimene  wrote:
> On Thu, Apr 23, 2009 at 9:05 PM, Rob Tanner  wrote:
>
> > On Apr 23, 6:11 pm, Jeff Chimene  wrote:
> >> On 04/23/2009 04:57 PM, Rob Tanner wrote:
>
> >> > On Apr 23, 4:25 pm, Jeff Chimene  wrote:
>
> >> >> On 04/23/2009 04:09 PM, Rob Tanner wrote:
>
> >> >>> On Apr 23, 2:46 pm, Jeff Chimene   wrote:
>
> >>  On 04/23/2009 10:25 AM, Rob Tanner wrote:
>
> >> > On Apr 22, 5:35 pm, Jeff Chimene   wrote:
>
> >> >> On 04/22/2009 04:15 PM, Rob Tanner wrote:
>
> >> >>> On Apr 22, 1:00 pm, Jeff Chimene   wrote:
>
> >>  On 04/22/2009 12:06 PM, Rob Tanner wrote:
>
> >> > Hi,
>
> >> > I've been going back and forth with Instantiations tech support 
> >> > over
> >> > their GET Designer Eclipse plugin. When I try and execute a GWT
> >> > application in Eclipse that I built with the Designer, I get an
> >> > Exception immediately. The error is: Exception in thread "main"
> >> > java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in
> >> > java.library.path.
>
> >> > Instantiation's support says that for some reason, GWT's SWT 
> >> > really
> >> > does think I'm running on Linux.
>
> >> > I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet 
> >> > support
> >> > 1.6.4 according to Instantiation support) and I also have the 
> >> > current
> >> > Google plugin from Google's Eclipse update site installed. My 
> >> > system
> >> > is a MacBook Pro with 10.5.6 installed. Does this problem at all
> >> > sound familiar?
>
> >> > Thanks,
> >> > Rob
>
> >>  I'll stake a stab at this, maybe we can isolate the problem...
>
> >>  o Is this your first project w/ GWT in this environment?
> >>  If so, please try establishing a baseline by installing and 
> >>  running
> >>  the StockWatcher example
>
> >>  o Is SWT the Standard Widget Toolkit?
> >>  The sentence "GWT's SWT really does think I'm running on Linux"
> >>  implies ownership of SWT by GWT. Isn't SWT a separate library?
>
> >> >>> Yes. This is my first project.
>
> >> >>> I went through the first step of of the project: Creating a GWT
> >> >>> application. When I created it, a message popped up in the Eclipse
> >> >>> console:
>
> >> >>> Encountered a problem: Unexpected exception
> >> >>> Please see the logs [/tmp/enhance40780.log] for further 
> >> >>> information.
>
> >> >> Sorry, my previous post (deleted) referenced GWT 1.6
>
> >> >> Nevertheless, please set Eclipse aside for the moment and try 
> >> >> compiling
> >> >> any of the samples/
>
> >> >> For example, inside the samples/DynaTable/ you should find the
> >> >> DynaTable-compile and DynaTable-shell scripts. Please try one of the
> >> >> samples/* *-compile or the *-shell scripts.
>
> >> >>> The contents of the log file:
>
> >> >>> java.lang.RuntimeException: Unexpected exception
> >> >>> at com.google.appengine.tools.enhancer.Enhancer.execute
>
> >> >> 
>
> >> >> I have to admit that I don't understand the log. But, it reinforces 
> >> >> my
> >> >> desire to verify the integrity of your GWT installation.
>
> >> >>> Step 2, Testing the default project components, resulted in nothing
> >> >>> being displayed (although the Eclipse console flickered). Assuming
> >> >>> that something got logged about the problem somewhere, do you know
> >> >>> where that somewhere would be?
>
> >> >>> With regard to SWT, I believe that's exactly correct. There are 4
> >> >>> jnilibs in the toolkit with swt in their name and I presume they
> >> >>> implement at least part of the Software Widget Toolkit. They are
> >> >>> clearly carbon and not gtk which makes sense because I'm running 
> >> >>> on a
> >> >>> Mac, not Linux. But the error I get using the GWT Designer is no 
> >> >>> swt-
> >> >>> pi-gtk-3062 in java.library.path. Also, I don't believe the 
> >> >>> Designer
> >> >>> even looks at the GWT Eclipse plugin. The one must-be-set 
> >> >>> preference
> >> >>> in the Designer configuration is where in the file system to find 
> >> >>> the
> >> >>> toolkit.
>
> >> >> That is a problem. For example, a listing of my 1.5.3 directory 
> >> >> shows:
> >> >> /usr/local/lib/gwt-linux-1.5.3$ ls libswt* -c1
> >> >> libswt-gtk-3235.so
> >> >> libswt-mozilla17-profile-gcc3-gtk-3235.so
> >> >> libswt-mozilla17-profile-gtk-3235.so
> >> >> libswt-mozilla-gcc3-gtk-3235.so
> >> >> libswt-mozilla-gtk-3235.so
> >> >> libswt-pi-gtk-3235.so
>
> >> >> So, I can see where Tech Support draws their conclusion. Can you 
> >> >> check
> >> >> the corresponding GWT directory on your installation?
>
> >> > Just for grins, I decided to try buil

Re: GWT 1.6 Replacement for Radio Button setChecked().

2009-04-24 Thread Danny

Thanks much.

On Apr 24, 2:12 pm, Jason Essington  wrote:
> setValue()
>
> On Apr 24, 2009, at 12:09 PM, Danny wrote:
>
>
>
> > setChecked() seems to be depreaciated by  GWT 1.6.  What replaces this
> > action?
>
> > Thanks,
>
> > Danny
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Announce: SimpleGesture, mouse gesture recognition

2009-04-24 Thread emarc

Oh, I forgot to mention:
The license is  Apache 2.

(And a tip: watch the video to get a quick idea of what it's all
about.)

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



help me about installation gwt on netbeans

2009-04-24 Thread Rahman Mousavian

Hi!
I'm trying to install gwt 1.5.3 on netBeans 6.5 from

http://www.netbeans.org/kb/60/web/quickstart-webapps-gwt.html

according to this article I need to gwt4nb 2.5 but I found gwt4nb
1.5.3

I done every thing that was said in this, but i don't get any true
answer!!!

In fact when I run the project, the "http://localhost:8084/HelloGWT/";
will open but nothing is in the page!!

in the other hand, after 6 (according to article), when I try to right
click on "MainEntryPoint.java" and click on run, I get the error
like:

Class "MainEntryPoint" neither has a main method nor it is a servlet
specified in web.xml.

( so I have to click on run project , and when I do this, nothing is
in the opened page!!

where is the problem ?

thanks before!!!

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



Re: Lost focus with FocusHandler

2009-04-24 Thread Paul Robinson

You need a BlurHandler


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



Migrate 1.4 to 1.6

2009-04-24 Thread Dave

How feasible is it to migrate from 1.4 to 1.6 without an intermediate
migration to 1.5 on a large app?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



StockWatcher - JSON version hits bug?

2009-04-24 Thread bpetro

Has anyone else run into this?   Having created the GWT-RPC version
which runs time, I then created the JSON version (not the JSON-PHP).
This also runs fine to a point.  If you enter 1 or 2 "stock symbols",
it runs doing updates pretty regularly.  I'm just adding A, B, C, D,
E, etc as symbols. If you now add a third, forth, at some point, I
notice the timed updates stop changing the values.  I've put break
points in and note this:
a) The server side halts before this break, but after the bug hits,
server-side never executes.
b) The log record stops showing the GET and its return happening

HOWEVER - and this is dangerous - no error occurs (no onError handler
happens) *AND* within the handler onResponseReceived - it continues to
THINK it has received the exact same return string as the last
successful send that happened.

So, the sendRequest() fails, the log stops recording GETs, but the
response handler keeps seeing the last result string handed to it over
and over.  Therefore, the timestamp keeps clicking off, but the
updateTable is constantly handed the values of the last successful
send.

Anyone else running into this?  Are there any bugs reported for this?

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



Re: Help

2009-04-24 Thread Vitali Lovich
Check the Jetty log.  Are you getting a 404 on the resource request?

Also, I dunno why you are doing what you are doing with DockPanel, but in
any case it's probably wrong.  Every time you add a widget it'll append
"-parent" to each child.  So after 3 adds, the 1st child added will have

class-parent-parent-parent.

Also, that's a potential performance problem.  Why aren't you setting the
classname explicitly outside of dock panel.  Or create a separate class with
a dedicated method that'll properly set the style name as you want once,
after all children have been added.

Or if you want a more automatic approach, something like

private boolean invalidated = false;
void add(Widget w, Constraints c) {
 super.add(w, c);
 invalidated = true;
 DeferredCommand.addCommand(new Command() {
   public void execute() {
 if (invalidated) {
 invalidated = false;
 // refresh style names
 }
 });
}

or even better create 1 timer & schedule it on every addition, thereby
bypassing invalidate & the need to create a deferred command.

On Fri, Apr 24, 2009 at 2:39 PM, grigoregeorge <
grigoregeorge631...@gmail.com> wrote:

>
> Hello. I have a problem with my application. Why don't display all the
> 2 image in the Web Application Starter Project
>
>
> import java.util.Iterator;
> import com.google.gwt.core.client.EntryPoint;
> import com.google.gwt.user.client.DOM;
> import com.google.gwt.user.client.ui.DockPanel;
> import com.google.gwt.user.client.ui.RootPanel;
> import com.google.gwt.user.client.ui.VerticalPanel;
> import com.google.gwt.user.client.ui.Widget;
>
> public class Test implements EntryPoint {
>
>private VerticalPanel northPanel=new VerticalPanel();
>private VerticalPanel northPanelBackground=new VerticalPanel();
>
>private DockPanel thePanel=new DockPanel(){
>public void add(Widget widget, DockLayoutConstant
> direction){
>super.add(widget,direction);
>Iterator it=getChildren().iterator();
>while(it.hasNext()){
>widget=(Widget) it.next();
>com.google.gwt.user.client.Element
> cell=DOM.getParent
> (widget.getElement());
>DOM.setElementProperty(cell, "className",
> widget.getStylePrimaryName()+"-parent");
>}
>}
>};
>
>public void onModuleLoad() {
>
>northPanel.setSize("100%", "100%");
>northPanel.setStylePrimaryName("north");
>
>thePanel.setSize("100%", "100%");
>thePanel.add(northPanel,DockPanel.NORTH);
>RootPanel.get().add(thePanel);
>
>}
> }
>
>
> .north {
> background-image:url('banner.jpg');
>background-repeat:no-repeat;
>height:100%;
> }
> .north-parent {
>background-image:url('bg.jpg');
>background-repeat:repeat-x;
>height:150px;
> }
>
>
> >
>

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



Help

2009-04-24 Thread grigoregeorge

Hello. I have a problem with my application. Why don't display all the
2 image in the Web Application Starter Project


import java.util.Iterator;
import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.user.client.DOM;
import com.google.gwt.user.client.ui.DockPanel;
import com.google.gwt.user.client.ui.RootPanel;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class Test implements EntryPoint {

private VerticalPanel northPanel=new VerticalPanel();
private VerticalPanel northPanelBackground=new VerticalPanel();

private DockPanel thePanel=new DockPanel(){
public void add(Widget widget, DockLayoutConstant direction){
super.add(widget,direction);
Iterator it=getChildren().iterator();
while(it.hasNext()){
widget=(Widget) it.next();
com.google.gwt.user.client.Element 
cell=DOM.getParent
(widget.getElement());
DOM.setElementProperty(cell, "className",
widget.getStylePrimaryName()+"-parent");
}
}
};

public void onModuleLoad() {

northPanel.setSize("100%", "100%");
northPanel.setStylePrimaryName("north");

thePanel.setSize("100%", "100%");
thePanel.add(northPanel,DockPanel.NORTH);
RootPanel.get().add(thePanel);

}
}


.north {
background-image:url('banner.jpg');
background-repeat:no-repeat;
height:100%;
}
.north-parent {
background-image:url('bg.jpg');
background-repeat:repeat-x;
height:150px;
}


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



Re: GWT on FreeBSD

2009-04-24 Thread Rabbit

I don't think it would help, since the build process must be using
a toolchain (I mean cross-compiling)  but I haven't checked.

Freebsd linux emulator should be able to run hosted mode, but it keeps
looking at /lib instead of /usr/compat/linux/lib, and linking them to /
lib do
not fix the issue.

Since I can build natives swt and mozilla under FreeBSD, and that java
is not an issue,
it should be quite easy to add a bsd build target into the ant build
script ...

If someone at google is interested to add a freebsd target on the
build script, it should
not be so much work since all third parties libs are available
(patched for freebsd). I'll be
happy to provide a freebsd port if needed.



On Apr 21, 4:55 pm, Alex Rudnick  wrote:
> I don't have aFreeBSDbox handy, but this seems like it'd be
> workable. Good call about replacing the SWT binaries with your native
> ones. Would it help, do you think, to compile GWT from source?
>
> If you get this working, it would be cool to hear how you did it!
>
> On Tue, Apr 21, 2009 at 7:47 AM, Rabbit  wrote:
>
> > Switching to -client mode fix the build process.
>
> > Hosted mode still not working
>
> --
> Alex Rudnick
> swe, gwt, atl
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Can't integrate spring with gwt

2009-04-24 Thread mabebe

Thanks...

On Apr 24, 10:49 am, "Alejandro D. Garin"  wrote:
> Hi,
>
> Try moving your applicationContext.xml to WEB-INF/applicationContext.xml
>
> On Fri, Apr 24, 2009 at 10:38 AM, mabebe  wrote:
>
> > Hi i am having difficulty integrating spring with gwt. Below is my
> > code for my serviceImpl class...and where i think the error is
>
> > @Override
> >        public void init() throws ServletException {
> >        super.init();
> >        ServletContext sc = this.getServletContext();
>
> >        WebApplicationContext ctx =
> > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this
> > returns a null pointer exception exception
> >        reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade");
> >    }
>
> > i have the following in my webapp web.xml file...
>
> >        
> >                contextConfigLocation
> >                
>
> >  classpath:org/personalsite/config/applicationContext.xml
> >                
> >        
>
> >        
> >                
>
> >  org.springframework.web.context.ContextLoaderListener
> >                
> >        
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Can't integrate spring with gwt

2009-04-24 Thread mabebe

Thanks...

On Apr 24, 10:49 am, "Alejandro D. Garin"  wrote:
> Hi,
>
> Try moving your applicationContext.xml to WEB-INF/applicationContext.xml
>
> On Fri, Apr 24, 2009 at 10:38 AM, mabebe  wrote:
>
> > Hi i am having difficulty integrating spring with gwt. Below is my
> > code for my serviceImpl class...and where i think the error is
>
> > @Override
> >        public void init() throws ServletException {
> >        super.init();
> >        ServletContext sc = this.getServletContext();
>
> >        WebApplicationContext ctx =
> > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this
> > returns a null pointer exception exception
> >        reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade");
> >    }
>
> > i have the following in my webapp web.xml file...
>
> >        
> >                contextConfigLocation
> >                
>
> >  classpath:org/personalsite/config/applicationContext.xml
> >                
> >        
>
> >        
> >                
>
> >  org.springframework.web.context.ContextLoaderListener
> >                
> >        
>
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT 1.6 Replacement for Radio Button setChecked().

2009-04-24 Thread Jason Essington

setValue()

On Apr 24, 2009, at 12:09 PM, Danny wrote:

>
> setChecked() seems to be depreaciated by  GWT 1.6.  What replaces this
> action?
>
> Thanks,
>
> Danny
> >


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



GWT 1.6 Replacement for Radio Button setChecked().

2009-04-24 Thread Danny

setChecked() seems to be depreaciated by  GWT 1.6.  What replaces this
action?

Thanks,

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



Re: Converting string to timestamp throws exception in GWT web mode

2009-04-24 Thread Tony Strauss

How about DateTimeFormat (http://google-web-toolkit.googlecode.com/svn/
javadoc/1.5/com/google/gwt/i18n/client/DateTimeFormat.html):
String timestampStr = "2009-04-07 12:30:00.000";
DateTimeFormat dateTimeFormat = DateTimeFormat.getFormat("-
MM-dd HH:mm:ss.SSS");
Date dateTime = dateTimeFormat.parse(timestampStr);

DateTimeFormat works in both hosted and web mode.

According to:
http://code.google.com/webtoolkit/doc/1.6/RefJreEmulation.html
java.sql.Timestamp.valueOf() is emulated, so perhaps you should file a
bug report about it.

Tony
--
Tony Strauss
Designing Patterns, LLC
http://www.designingpatterns.com
http://blogs.designingpatterns.com

On Apr 24, 10:14 am, Neo  wrote:
> No. It is not possible to get a Date or a Timestamp.
> The String is coming from an Editable Grid Control.
>
> On Apr 24, 6:57 pm, Salvador Diaz  wrote:
>
> > One way would be to skip the first timestamp to string conversion.
> > Where does the string comes from ? Would it be possible to get a Date
> > or Timestamp object instead of getting the string ?
>
> > Hope that helps
>
> > Salvador
>
> > On Apr 24, 3:44 pm, Neo  wrote:
>
> > > Hi,
>
> > > I am trying to convert a string to a Timestamp value in my Client side
> > > code. It works fine in Hosted mode but the same code fails in Web
> > > mode.
>
> > > This is my code :
> > > java.sql.Timestamp startTime = java.sql.Timestamp.valueOf( > > as string>);
>
> > > Got this exception in web mode :
>
> > > Exception occurred :
> > > Invalid escape format: 2009-04-07 12:30:00.0
>
> > > Can you please help me out in this and suggest a way to convert the
> > > string to Timestamp so that it works both in Hosted mode and Web mode.- 
> > > Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GEP, war/WEB-INF/lib, and source control

2009-04-24 Thread Jason Parekh

Thanks for the suggestion--I'll run it by the team.

jason

On Fri, Apr 24, 2009 at 1:42 PM, Isaac Truett  wrote:
>
> Jason,
>
> Fair enough. Thanks. What about elevating those to errors so that they
> interrupt run/debug to point out that there's a problem? Or if always
> being an error isn't appropriate, what about project level control of
> severity (a la Properties > Java Compiler > Errors/Warnings).
>
> - Isaac
>
>
> On Fri, Apr 24, 2009 at 1:28 PM, Jason Parekh  wrote:
>>
>> Hey Isaac,
>>
>> Good question.  You can go either route:
>>
>> - If you do not check them in, you'll get a warning in Eclipse.  Doing
>> a quick fix (select it and ctrl+1) on that warning will copy the
>> installed SDK's JARs over to your lib directory.
>>
>> - If you do check them in, like you mentioned, there's a chance for
>> some conflicts.  In this case, you should also get a warning
>> mentioning the SDK's JARs mismatch the war/WEB-INF/lib JARs, and there
>> is a quick fix to copy from SDK to lib.
>>
>> jason
>>
>> On Fri, Apr 24, 2009 at 1:10 PM, Isaac Truett  wrote:
>>>
>>> When using GEP with GWT and GAE support, is it expected that the jars
>>> the plugin automatically places in war/WEB-INF/lib will be committed
>>> to the source repository? I expected that they were placed there by
>>> one of the builders, so I left them out of my commit. When I check out
>>> the project to another location, hosted mode won't run
>>> (java.lang.NoClassDefFoundError:
>>> com/google/gwt/user/client/rpc/RemoteService) and none of the GWT/GAE
>>> libs automagically appear as they had done when setting up the
>>> project.
>>>
>>> Now what if I commit those jars? Well, take gwt-servlet.jar for
>>> example. I'll have one copy under source control and another in the
>>> SDK I selected in project preferences, and one or both on various
>>> classpaths. Seems ripe for version conflicts when upgrading.
>>>
>>> So what's the expected behavior here?
>>>
>>> Thanks,
>>> Isaac
>>>
>>> >
>>>
>>
>> >
>>
>
> >
>

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



Re: GEP, war/WEB-INF/lib, and source control

2009-04-24 Thread Isaac Truett

Jason,

Fair enough. Thanks. What about elevating those to errors so that they
interrupt run/debug to point out that there's a problem? Or if always
being an error isn't appropriate, what about project level control of
severity (a la Properties > Java Compiler > Errors/Warnings).

- Isaac


On Fri, Apr 24, 2009 at 1:28 PM, Jason Parekh  wrote:
>
> Hey Isaac,
>
> Good question.  You can go either route:
>
> - If you do not check them in, you'll get a warning in Eclipse.  Doing
> a quick fix (select it and ctrl+1) on that warning will copy the
> installed SDK's JARs over to your lib directory.
>
> - If you do check them in, like you mentioned, there's a chance for
> some conflicts.  In this case, you should also get a warning
> mentioning the SDK's JARs mismatch the war/WEB-INF/lib JARs, and there
> is a quick fix to copy from SDK to lib.
>
> jason
>
> On Fri, Apr 24, 2009 at 1:10 PM, Isaac Truett  wrote:
>>
>> When using GEP with GWT and GAE support, is it expected that the jars
>> the plugin automatically places in war/WEB-INF/lib will be committed
>> to the source repository? I expected that they were placed there by
>> one of the builders, so I left them out of my commit. When I check out
>> the project to another location, hosted mode won't run
>> (java.lang.NoClassDefFoundError:
>> com/google/gwt/user/client/rpc/RemoteService) and none of the GWT/GAE
>> libs automagically appear as they had done when setting up the
>> project.
>>
>> Now what if I commit those jars? Well, take gwt-servlet.jar for
>> example. I'll have one copy under source control and another in the
>> SDK I selected in project preferences, and one or both on various
>> classpaths. Seems ripe for version conflicts when upgrading.
>>
>> So what's the expected behavior here?
>>
>> Thanks,
>> Isaac
>>
>> >
>>
>
> >
>

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



Re: GEP, war/WEB-INF/lib, and source control

2009-04-24 Thread Jason Parekh

Hey Isaac,

Good question.  You can go either route:

- If you do not check them in, you'll get a warning in Eclipse.  Doing
a quick fix (select it and ctrl+1) on that warning will copy the
installed SDK's JARs over to your lib directory.

- If you do check them in, like you mentioned, there's a chance for
some conflicts.  In this case, you should also get a warning
mentioning the SDK's JARs mismatch the war/WEB-INF/lib JARs, and there
is a quick fix to copy from SDK to lib.

jason

On Fri, Apr 24, 2009 at 1:10 PM, Isaac Truett  wrote:
>
> When using GEP with GWT and GAE support, is it expected that the jars
> the plugin automatically places in war/WEB-INF/lib will be committed
> to the source repository? I expected that they were placed there by
> one of the builders, so I left them out of my commit. When I check out
> the project to another location, hosted mode won't run
> (java.lang.NoClassDefFoundError:
> com/google/gwt/user/client/rpc/RemoteService) and none of the GWT/GAE
> libs automagically appear as they had done when setting up the
> project.
>
> Now what if I commit those jars? Well, take gwt-servlet.jar for
> example. I'll have one copy under source control and another in the
> SDK I selected in project preferences, and one or both on various
> classpaths. Seems ripe for version conflicts when upgrading.
>
> So what's the expected behavior here?
>
> Thanks,
> Isaac
>
> >
>

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



GEP, war/WEB-INF/lib, and source control

2009-04-24 Thread Isaac Truett

When using GEP with GWT and GAE support, is it expected that the jars
the plugin automatically places in war/WEB-INF/lib will be committed
to the source repository? I expected that they were placed there by
one of the builders, so I left them out of my commit. When I check out
the project to another location, hosted mode won't run
(java.lang.NoClassDefFoundError:
com/google/gwt/user/client/rpc/RemoteService) and none of the GWT/GAE
libs automagically appear as they had done when setting up the
project.

Now what if I commit those jars? Well, take gwt-servlet.jar for
example. I'll have one copy under source control and another in the
SDK I selected in project preferences, and one or both on various
classpaths. Seems ripe for version conflicts when upgrading.

So what's the expected behavior here?

Thanks,
Isaac

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



Migrating listeners to handlers

2009-04-24 Thread Kelo

I have a lot of code using listeners/events, owner's listeners/events,
so GWT 1.6 makes me have a headache with its new handlers. I don't
find much documentation or examples about that.
There's a link 
http://code.google.com/p/google-web-toolkit-incubator/wiki/GwtEventSystem
where explains how to migrate listeners to handlers but I found this
doesn't work with 1.6.4
Does anyone know some technique to migrate listeners to handlers, a
good documentation or good examples ?
Does anyone know some example of drag & drop with 1.6.4 ?



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



Re: Converting string to timestamp throws exception in GWT web mode

2009-04-24 Thread jhulford

You can try using the DatePicker from the incubator as your grid
control, it does the conversion internally and returns you actual Date
objects.

On Apr 24, 10:14 am, Neo  wrote:
> No. It is not possible to get a Date or a Timestamp.
> The String is coming from an Editable Grid Control.
>
> On Apr 24, 6:57 pm, Salvador Diaz  wrote:
>
> > One way would be to skip the first timestamp to string conversion.
> > Where does the string comes from ? Would it be possible to get a Date
> > or Timestamp object instead of getting the string ?
>
> > Hope that helps
>
> > Salvador
>
> > On Apr 24, 3:44 pm, Neo  wrote:
>
> > > Hi,
>
> > > I am trying to convert a string to a Timestamp value in my Client side
> > > code. It works fine in Hosted mode but the same code fails in Web
> > > mode.
>
> > > This is my code :
> > > java.sql.Timestamp startTime = java.sql.Timestamp.valueOf( > > as string>);
>
> > > Got this exception in web mode :
>
> > > Exception occurred :
> > > Invalid escape format: 2009-04-07 12:30:00.0
>
> > > Can you please help me out in this and suggest a way to convert the
> > > string to Timestamp so that it works both in Hosted mode and Web mode.- 
> > > Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: INFO: Servlet shell is currently unavailable

2009-04-24 Thread badgerduke

Here's some extra info:

In my service class:

ServiceDefTarget target = (ServiceDefTarget) serviceProxy;

String serviceURL = GWT.getModuleBaseURL() + "/
firstlettergroupservice";
if (GWT.isScript()) {
serviceURL = "/TestGWT/firstlettergroupservice";
}
target.setServiceEntryPoint(serviceURL);

where TestGWT is my application.

In my web.xml:


FirstLetterServiceImpl
com.gallup.ice.screen28.server.rpc.firstletter.FirstLetterServiceImpl
  

  
FirstLetterServiceImpl
/firstlettergroupservice
  

On Apr 24, 10:58 am, badgerduke  wrote:
> OK, I got my GWT content to show up in the JSP, but it is not
> successfully connecting to my PRC services.  I have web.xml configured
> correctly, except I left out the  entry for
> com.google.gwt.dev.shell.GWTShellServlet.  My services classes are in
> a jar on my classpath.  Any ideas?
>
> On Apr 24, 9:41 am, badgerduke  wrote:
>
> > Hello:
>
> > I need to include a GWT application into a JSP.  I thought this would
> > be as simple as saying:
>
> >  where Screen28.html is
> > the generated html page:
>
> > 
> > 
> >   
> >     
> >     Application
> >      > src="screen28.Screen28.nocache.js">
> >   
> >   
>
> >      > style="position:absolute;width:0;height:0;border:0">
> >   
> > 
>
> > But instead I get "INFO: Servlet shell is currently unavailable" in
> > Tomcat 6.  I have gwt-dev-windows.jar, gwt-servlet.jar and gwt-
> > user.jar on my classpath.  My GWT service code is in a jar on the
> > classpath.
>
> > Any ideas?
>
> > Thanks,
> > Eric
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Urgent: Re: ClassNotFoundException: com.google.gwt.dev.HostedMode

2009-04-24 Thread Farrukh Najmi


The gwt-maven-plugin outputs the java command used to launch the
GWTShell when -X option is specified to mvn command.

I find that copying the command in a shell window and running it work.

This suggests the problem is with some maven plugin that has changed
and not with core gwt.
Sorry for the false alarm.

On Apr 24, 11:29 am, Farrukh Najmi  wrote:
> When I look at what jars changed recently in my local maven repo, the
> following jars look noteworthy:
>
> #Find jars in local maven repo that changed in last 5 hours
> find /home/najmi/.m2/repository -ctime -5 -name '*.jar'
>
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/tasks.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/pipnss.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/US.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/toolkit.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/classic.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/content-packs.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/en-unix.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/pippki.jar
> /home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
> chrome/en-US.jar
>
> Also gwt:compile target of gwt-maven-plugin to run GWT compiler gives:
>
> [INFO] Unpack native libraries required to run GWT
> [INFO] establishing classpath list (scope = compile)
> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/
> google/gwt/dev/Compiler
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> com.google.gwt.dev.Compiler
> [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [ERROR]         at java.security.AccessController.doPrivileged(Native Method)
> [ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> 301)
> [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> [ERROR]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> 320)
> [ERROR] Could not find the main class: com.google.gwt.dev.Compiler.
> Program will exit.
>
> Can anyone knowledgeable provide some guidance?
>
> On Apr 24, 11:05 am, Farrukh Najmi  wrote:
>
> > Hi Guys, This issue is a complete show stopper for my project. I would
> > be really grateful if someone can provide some guidance on how to get
> > over it quickly. Thanks.
>
> > On Apr 24, 10:43 am, "farrukh.n...@gmail.com" 
> > wrote:
>
> > > My maven based GWT app suddenly started giving the following error
> > > when I start the GWT Shell.
> > > I am using the codehaus gwt-maven-plugin goal gwt:run to start the
> > > shell:
>
> > >                 org.codehaus.mojo
> > >                 gwt-maven-plugin
> > >                 1.1-20090420.082414-36
>
> > > Any idea what could be causing the problem? THis seems related but I
> > > am not sure what I need to do to get out of this problem:
>
> > >  > > thread/7ecb9d173c6f4304>
>
> > > Here is my stacktrace:
>
> > > [INFO] establishing classpath list (scope = runtime)
> > > [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/
> > > google/gwt/dev/HostedMode
> > > [ERROR] Caused by: java.lang.ClassNotFoundException:
> > > com.google.gwt.dev.HostedMode
> > > [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > > [ERROR]         at java.security.AccessController.doPrivileged(Native 
> > > Method)
> > > [ERROR]         at 
> > > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > > [ERROR]         at 
> > > sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> > > 301)
> > > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > > [ERROR]         at 
> > > java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> > > 320)
> > > [ERROR] Could not find the main class: com.google.gwt.dev.HostedMode.
> > > Program will exit.
>
> > > Thanks for your 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



SuggestBox

2009-04-24 Thread CarlosBarrera

Hi,

I using SuggestBox, but I need to the user select obligatory one data
of that list, how can I do that?

tks for yuo 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files

2009-04-24 Thread Scott Blum
I don't see this in 1.6.4.  As far as I can tell, all of the .java files in
javax/servlet have a timestamp of:
Tue Jul 22 02:00:00 EDT 2008

All of the .class files have:

Tue Jul 22 02:00:30 EDT 2008

The class files are 30 seconds newer than the source files.

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



Re: Data binding

2009-04-24 Thread rohan

I am not using UIbinder.bcz my requirement is little bit tricky.
I am using builder pattern to build my application.
Here i am giving an example. take a loan application, I have
LoanApplication object it contains one or more barrowers objects, one
or more house objects.
In my application left panel i am giving option to user to add
barrower1, barrower1,...and house1,house2. Each of borrower and
house Objects also has sub objects.
when i sent a LoanApplication object to server it has to store all the
objects. when coming to UI i am getting field information form the
XML, so i am reading xmls and building the UI. so My code is generic
for any XML file which is valid with XSD. So how can in bind
barrower's sub objects with barrower objects, sub objects in house
with house object and borrower and house object with Loanapplication
object.

Thanks for help

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



Re: INFO: Servlet shell is currently unavailable

2009-04-24 Thread badgerduke

OK, I got my GWT content to show up in the JSP, but it is not
successfully connecting to my PRC services.  I have web.xml configured
correctly, except I left out the  entry for
com.google.gwt.dev.shell.GWTShellServlet.  My services classes are in
a jar on my classpath.  Any ideas?

On Apr 24, 9:41 am, badgerduke  wrote:
> Hello:
>
> I need to include a GWT application into a JSP.  I thought this would
> be as simple as saying:
>
>  where Screen28.html is
> the generated html page:
>
> 
> 
>   
>     
>     Application
>      src="screen28.Screen28.nocache.js">
>   
>   
>
>      style="position:absolute;width:0;height:0;border:0">
>   
> 
>
> But instead I get "INFO: Servlet shell is currently unavailable" in
> Tomcat 6.  I have gwt-dev-windows.jar, gwt-servlet.jar and gwt-
> user.jar on my classpath.  My GWT service code is in a jar on the
> classpath.
>
> Any ideas?
>
> Thanks,
> Eric
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Tomcat Deploy: Base directory and file permission

2009-04-24 Thread Francisco

Hello,
I wrote a gwt application where one of its services must write on the
disk, let's say the file "./data/myfile.txt". On hostmode it works
perfectly, but when I deploy it on my tomcat (running on linux), I get
an "access denied (java.io.FilePermission)".

I've already changed my tomcat permission policies but without any
success. I tried all the following:

grant codeBase "file:${catalina.base}/webapps/MyApp/-" {
   ...
   some permissions
   ...
   permission java.io.FilePermission "$
{catalina.base}/-","read,write";
   permission java.io.FilePermission "$
{catalina.home}/-","read,write";
   permission java.io.FilePermission "file:$
{catalina.home}/-","read,write";
   permission java.io.FilePermission "file:$
{catalina.home}/-","read,write";
   permission java.io.FilePermission "/usr/share/tomcat6/
bin/-","read,write"; (I tried this one because I thought that the "./"
directory might be located in the same place where tomcat is
executed.)
}

So, I have two problems:
1) Where is the  "./" directory (base directory) when referenced from
my gwt application located? I need to know that because it could be
some "chown" or "chmod" issue.
2) How to force tomcat allowing disk access to my application?

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



GWT 1.6: [ERROR] Unable to parse JavaScript

2009-04-24 Thread pebf

Trying to upgrade from GWT1.5 to GWT1.6 here.

Before changing the directory structure I've updated all the GWT
related JARs (gwt-user.jar, gwt-dev-.jar and gwt-
servlet.jar) and run a successful GWT compilation over my project
(still using the com.google.gwt.dev.GWTCompiler class).

I've then changed the directory structure and since I was already
using ANT well I've just modified my build.xml using the build.xml
generated by the webAppCreator. When trying to compile to javascript
I'm getting the following error:

[java] Compiling module com.pebf.myTestApp
[java]Compiling 15 permutations
[java]   Permutation compile succeeded
[java]Linking into Output
[java]   Invoking Linker Standard
[java]  Attempting to optimize JS
[java] [ERROR] Unable to parse JavaScript
[java] com.google.gwt.dev.js.JsParserException: missing ( before
function parameters
[java] at com.google.gwt.dev.js.JsParser$1.error
(JsParser.java:88)
[java] at com.google.gwt.dev.js.rhino.Context.reportError
(Context.java:459)
[java] at
com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError
(TokenStream.java:1553)
[java] at com.google.gwt.dev.js.rhino.Parser.reportError
(Parser.java:72)
[java] at com.google.gwt.dev.js.rhino.Parser.mustMatchToken
(Parser.java:64)
[java] at com.google.gwt.dev.js.rhino.Parser.function
(Parser.java:203)
[java] at com.google.gwt.dev.js.rhino.Parser.parse
(Parser.java:116)
[java] at com.google.gwt.dev.js.JsParser.parse(JsParser.java:
112)
[java] at com.google.gwt.dev.js.JsParser.parseInto
(JsParser.java:129)
[java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.optimizeJavaScript
(StandardLinkerContext.java:376)
[java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.emitSelectionScript
(SelectionScriptLinker.java:120)
[java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link
(SelectionScriptLinker.java:98)
[java] at com.google.gwt.core.linker.IFrameLinker.link
(IFrameLinker.java:49)
[java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLink
(StandardLinkerContext.java:328)
[java] at com.google.gwt.dev.Link.doLink(Link.java:175)
[java] at com.google.gwt.dev.Link.link(Link.java:133)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:183)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:
124)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
[java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:131)
[java]  [ERROR] Failed to link
[java] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
[java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.optimizeJavaScript
(StandardLinkerContext.java:382)
[java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.emitSelectionScript
(SelectionScriptLinker.java:120)
[java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link
(SelectionScriptLinker.java:98)
[java] at com.google.gwt.core.linker.IFrameLinker.link
(IFrameLinker.java:49)
[java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLink
(StandardLinkerContext.java:328)
[java] at com.google.gwt.dev.Link.doLink(Link.java:175)
[java] at com.google.gwt.dev.Link.link(Link.java:133)
[java] at com.google.gwt.dev.Compiler.run(Compiler.java:183)
[java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:
124)
[java] at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
[java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
[java] at com.google.gwt.dev.Compiler.main(Compiler.java:131)


Do you why this would happen or how can I go about troubleshooting it?
I'm not using JSNI and I still didn't replace the old EventListener
classes by EventHandlers.

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



Re: Google Plugin for Eclipse with Maven

2009-04-24 Thread dhartford

I'm interested in this question as well, we heavily use the gwt-maven
plugin (Charlie Collins et al to differentiate) for continuous
integration and repeatable builds.  If there is a consistent way to
use the Google Plugin for Eclipse with gwt-maven that would be great.

p.s. present solution is to use the gwt-maven plugin gwt-maven:gwt to
run hosted mode (managing all library dependencies as well).
-D

On Apr 18, 3:15 pm, DaiLL  wrote:
> Hey,
>
> i've searched two days without any outcome about using the Google
> Plugin for Eclipse with maven. So my question is: Does anybody know
> about some improvements in this section?
>
> best wishes,
> daill

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



httprequest and response

2009-04-24 Thread BNPP

I want to let the user save the content of a div tag as a file to his
local hard drive.
How can I achieve that ?
I have found documentation in GWT regarding how to send a custom  http
request  , however can
I process that http request via an rpc method ?
How do I process that request and send the response ?

Will really appreciate if somebody can send a sample code, however
suggestions are most welcome.

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



Hosted Browser problem

2009-04-24 Thread Andy

Hi,

I am encountering a problem trying to create and debug a GWT app. I
have Eclipse 3.4 installed and the Google Plugin for Eclipse which
includes GWT 1.6.4.

I have created a new web application project and have not yet made any
changes to the greeting service sample that was created. When
attempting to debug this project the server and hosted browser window
start up. The hosted browser looks to have the correct URL in the
address bar but displays a completely blank page. It doesn't even
reach the breakpoint that I have put on the first line of the
onModuleLoad method. Clicking the 'Compile/Browse' button opens the
same URL in Chrome which displays the greeting service and works as
expected.

I have added '-logLevel ALL' to the program arguments and found that
an exception is being thrown when opening the page in the hosted
browser. I have included the last few messages that are output to the
server.

[SPAM] fields=Accept: */*
Accept-Language: en-gb,sq;q=0.5
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET
CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; .NET CLR
3.0.04506.648)
Host: localhost:8080
Connection: Keep-Alive

[SPAM] EXCEPTION
org.mortbay.jetty.HttpException: null
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:276)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:395)
at org.mortbay.thread.QueuedThreadPool$PoolThread.run
(QueuedThreadPool.java:488)

[SPAM] BAD

I have run out of ideas now. Any suggestions would be greatly
appreciated.

Thanks.

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



GWT 1.6: [ERROR] Unable to parse JavaScript

2009-04-24 Thread pebf

Trying to upgrade from GWT1.5 to GWT1.6 here.

Before changing the directory structure I've updated all the GWT
related JARs (gwt-user.jar, gwt-dev-.jar and gwt-
servlet.jar) and run a successful GWT compilation over my project
(still using the com.google.gwt.dev.GWTCompiler class).

I've then changed the directory structure and since I was already
using ANT well I've just modified my build.xml using the build.xml
generated by the webAppCreator. When trying to compile to javascript
I'm getting the following error:

 [java] Compiling module com.pebf.myTestApp
 [java]Compiling 15 permutations
 [java]   Permutation compile succeeded
 [java]Linking into Output
 [java]   Invoking Linker Standard
 [java]  Attempting to optimize JS
 [java] [ERROR] Unable to parse JavaScript
 [java] com.google.gwt.dev.js.JsParserException: missing ( before
function parameters
 [java] at com.google.gwt.dev.js.JsParser$1.error
(JsParser.java:88)
 [java] at com.google.gwt.dev.js.rhino.Context.reportError
(Context.java:459)
 [java] at
com.google.gwt.dev.js.rhino.TokenStream.reportSyntaxError
(TokenStream.java:1553)
 [java] at com.google.gwt.dev.js.rhino.Parser.reportError
(Parser.java:72)
 [java] at com.google.gwt.dev.js.rhino.Parser.mustMatchToken
(Parser.java:64)
 [java] at com.google.gwt.dev.js.rhino.Parser.function
(Parser.java:203)
 [java] at com.google.gwt.dev.js.rhino.Parser.parse
(Parser.java:116)
 [java] at com.google.gwt.dev.js.JsParser.parse(JsParser.java:
112)
 [java] at com.google.gwt.dev.js.JsParser.parseInto
(JsParser.java:129)
 [java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.optimizeJavaScript
(StandardLinkerContext.java:376)
 [java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.emitSelectionScript
(SelectionScriptLinker.java:120)
 [java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link
(SelectionScriptLinker.java:98)
 [java] at com.google.gwt.core.linker.IFrameLinker.link
(IFrameLinker.java:49)
 [java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLink
(StandardLinkerContext.java:328)
 [java] at com.google.gwt.dev.Link.doLink(Link.java:175)
 [java] at com.google.gwt.dev.Link.link(Link.java:133)
 [java] at com.google.gwt.dev.Compiler.run(Compiler.java:183)
 [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:
124)
 [java] at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
 [java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:131)
 [java]  [ERROR] Failed to link
 [java] com.google.gwt.core.ext.UnableToCompleteException: (see
previous log entries)
 [java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.optimizeJavaScript
(StandardLinkerContext.java:382)
 [java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.emitSelectionScript
(SelectionScriptLinker.java:120)
 [java] at
com.google.gwt.core.ext.linker.impl.SelectionScriptLinker.link
(SelectionScriptLinker.java:98)
 [java] at com.google.gwt.core.linker.IFrameLinker.link
(IFrameLinker.java:49)
 [java] at
com.google.gwt.core.ext.linker.impl.StandardLinkerContext.invokeLink
(StandardLinkerContext.java:328)
 [java] at com.google.gwt.dev.Link.doLink(Link.java:175)
 [java] at com.google.gwt.dev.Link.link(Link.java:133)
 [java] at com.google.gwt.dev.Compiler.run(Compiler.java:183)
 [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:
124)
 [java] at com.google.gwt.dev.CompileTaskRunner.doRun
(CompileTaskRunner.java:84)
 [java] at
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger
(CompileTaskRunner.java:78)
 [java] at com.google.gwt.dev.Compiler.main(Compiler.java:131)


Do you why this would happen or how can I go about troubleshooting it?
I'm not using JSNI and I still didn't replace the old EventListener
classes by EventHandlers.

Thanks,
Pedro

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



Announce: SimpleGesture, mouse gesture recognition

2009-04-24 Thread emarc

Hi,

SimpleGesture is a mouse gesture recognition widget for GWT (and the
IT Mill Toolkit).

It uses the method described by Didier Brun at bytearray.org, and
uses the Levenshtein Distance method from Jakarta Commons
(getLevenshteinDistance() from StringUtils) on the client-side,
without modifications. I think this shows one of the strengths of GWT
- the ability to make use of existing Java code in the browser.

Video of me using it with a Wii:
http://www.youtube.com/watch?v=LEvJdTuZ8sc
Live demo:
http://marc.virtuallypreinstalled.com/SimpleGesture

It was made using my "10% time" here at IT Mill (yes, we're only half
Google, but that's not half bad, if you ask me...;) and it's obviously
an IT Mill Toolkit component as well.

To use it in "plain" GWT (w/o IT Mill Toolkit), just get the GWT stuff
from SVN (or just ISimpleGesture.java). ISimpleGesture a GWT Widget,
and there are only two IT Mill Toolkit specific things (which you can
remove): "implements Paintable", and the "updateFromUIDL()" -method.
http://dev.itmill.com/browser/incubator/SimpleGesture/WebContent/WEB-INF/src/com/itmill/incubator/simplegesture

Note that SimpleGesture is nowhere near perfect - feedback and
suggestions are welcome, or even better: patches :-)

Obviously, mouse gestures are not suitable for all applications, but
as the video shoud demonstrate, they can be handy...
Let me know what you think!

More details in my blogpost here:
http://marcenglund.blogspot.com/2009/04/gesture-recognition-in-gwt-and-it-mill.html

Best Regards,
Marc

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



Hot code replace in 1.6.4

2009-04-24 Thread Lasse Hansen

I just migrated my project to 1.6.4. Now whenever I make even the most
unsignificant change to any of my UI-classes I get: 'Hot Code Replace
failed' when debugging in eclipse, and have to reload my application.
This was not the case in 1.5.3.

I have tried to narrow down the problem, as it is possible to succeed
with hot code replace under very simple circumstances. The problem
seems to be related to local class defintions, specifically unnamed
classes.

As it is the case in 1.5.3, one would expect the replace only/mostly
to fail when introducing new members or methods.

Does anyone have a solution or an explanation for why the 1.6.4 verson
is so inferior to 1.5.3 on this point? I am seriously considering
migrating back to 1.5.

Regards Lasse

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



Serialization error in using FastStringMap

2009-04-24 Thread Estelito D. Reyes III

Hi List,

I am using GWT1.5 and was looking into solving that performance
bottleneck with using String as key in a HashMap last week and I
stumbled upon some group posts recommending usage of the
FastStringMap.

So I tried using the FastStringMap a few days back but I was having
problems when compiling it, something to do with serialization, tried
putting IsSerializable, putting blank noargs constructor but to no
avail.

Am I in right direction trying to make the FastStringMap serializable?




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



Lost focus with FocusHandler

2009-04-24 Thread monkeyboy

I am trying to handle a "lostFocus" event for a textbox. I would like
to use the new EventHandler instead of the deprecated EventListener
system. The old FocusListener interface has two methods:

void onFocus(Widget sender);
void onLostFocus(Widget sender);

It is clear that i have to implement the onLostFocus method to handle
the "lost focus" event. However the new FocusHandler interface only
defines:

void onFocus(FocusEvent event);

And I can't figure out how to handle the "lost focus" event with this
handler. Any ideas?
Thanks in advance for the 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: SWT seems to think I'm running on Linux and not a Mac ???

2009-04-24 Thread Jeff Chimene

On Thu, Apr 23, 2009 at 9:05 PM, Rob Tanner  wrote:
>
>
>
> On Apr 23, 6:11 pm, Jeff Chimene  wrote:
>> On 04/23/2009 04:57 PM, Rob Tanner wrote:
>>
>> > On Apr 23, 4:25 pm, Jeff Chimene  wrote:
>>
>> >> On 04/23/2009 04:09 PM, Rob Tanner wrote:
>>
>> >>> On Apr 23, 2:46 pm, Jeff Chimene   wrote:
>>
>>  On 04/23/2009 10:25 AM, Rob Tanner wrote:
>>
>> > On Apr 22, 5:35 pm, Jeff Chimene   wrote:
>>
>> >> On 04/22/2009 04:15 PM, Rob Tanner wrote:
>>
>> >>> On Apr 22, 1:00 pm, Jeff Chimene   wrote:
>>
>>  On 04/22/2009 12:06 PM, Rob Tanner wrote:
>>
>> > Hi,
>>
>> > I've been going back and forth with Instantiations tech support 
>> > over
>> > their GET Designer Eclipse plugin. When I try and execute a GWT
>> > application in Eclipse that I built with the Designer, I get an
>> > Exception immediately. The error is: Exception in thread "main"
>> > java.lang.UnsatisfiedLinkError: no swt-pi-gtk-3062 in
>> > java.library.path.
>>
>> > Instantiation's support says that for some reason, GWT's SWT really
>> > does think I'm running on Linux.
>>
>> > I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet 
>> > support
>> > 1.6.4 according to Instantiation support) and I also have the 
>> > current
>> > Google plugin from Google's Eclipse update site installed. My 
>> > system
>> > is a MacBook Pro with 10.5.6 installed. Does this problem at all
>> > sound familiar?
>>
>> > Thanks,
>> > Rob
>>
>>  I'll stake a stab at this, maybe we can isolate the problem...
>>
>>  o Is this your first project w/ GWT in this environment?
>>  If so, please try establishing a baseline by installing and running
>>  the StockWatcher example
>>
>>  o Is SWT the Standard Widget Toolkit?
>>  The sentence "GWT's SWT really does think I'm running on Linux"
>>  implies ownership of SWT by GWT. Isn't SWT a separate library?
>>
>> >>> Yes. This is my first project.
>>
>> >>> I went through the first step of of the project: Creating a GWT
>> >>> application. When I created it, a message popped up in the Eclipse
>> >>> console:
>>
>> >>> Encountered a problem: Unexpected exception
>> >>> Please see the logs [/tmp/enhance40780.log] for further information.
>>
>> >> Sorry, my previous post (deleted) referenced GWT 1.6
>>
>> >> Nevertheless, please set Eclipse aside for the moment and try 
>> >> compiling
>> >> any of the samples/
>>
>> >> For example, inside the samples/DynaTable/ you should find the
>> >> DynaTable-compile and DynaTable-shell scripts. Please try one of the
>> >> samples/* *-compile or the *-shell scripts.
>>
>> >>> The contents of the log file:
>>
>> >>> java.lang.RuntimeException: Unexpected exception
>> >>> at com.google.appengine.tools.enhancer.Enhancer.execute
>>
>> >> 
>>
>> >> I have to admit that I don't understand the log. But, it reinforces my
>> >> desire to verify the integrity of your GWT installation.
>>
>> >>> Step 2, Testing the default project components, resulted in nothing
>> >>> being displayed (although the Eclipse console flickered). Assuming
>> >>> that something got logged about the problem somewhere, do you know
>> >>> where that somewhere would be?
>>
>> >>> With regard to SWT, I believe that's exactly correct. There are 4
>> >>> jnilibs in the toolkit with swt in their name and I presume they
>> >>> implement at least part of the Software Widget Toolkit. They are
>> >>> clearly carbon and not gtk which makes sense because I'm running on a
>> >>> Mac, not Linux. But the error I get using the GWT Designer is no swt-
>> >>> pi-gtk-3062 in java.library.path. Also, I don't believe the Designer
>> >>> even looks at the GWT Eclipse plugin. The one must-be-set preference
>> >>> in the Designer configuration is where in the file system to find the
>> >>> toolkit.
>>
>> >> That is a problem. For example, a listing of my 1.5.3 directory shows:
>> >> /usr/local/lib/gwt-linux-1.5.3$ ls libswt* -c1
>> >> libswt-gtk-3235.so
>> >> libswt-mozilla17-profile-gcc3-gtk-3235.so
>> >> libswt-mozilla17-profile-gtk-3235.so
>> >> libswt-mozilla-gcc3-gtk-3235.so
>> >> libswt-mozilla-gtk-3235.so
>> >> libswt-pi-gtk-3235.so
>>
>> >> So, I can see where Tech Support draws their conclusion. Can you check
>> >> the corresponding GWT directory on your installation?
>>
>> > Just for grins, I decided to try building StockWatcher from the
>> > command line (or did you suggest that -- I don't remember). And guess
>> > what, the output of ant build was:
>>
>> > Buildfile: build.xml
>>
>>  Umm-- reality check moment. Earlier you wrote:
>>
>> > I'm using gwt-mac-1.5.3 (the Designer on the Mac doesn't yet support
>>

Re: Module without EntryPoint - How to compile?

2009-04-24 Thread Rajeev Dayal
Hey Ben,

I did try to reproduce the problems that you were having. Here is what I
found:

1) Modules which do not contain an entry point are indeed added to the list
of "Entry Point" modules under the GWT Setttings page. Because of this,
these non-entry point modules are inherited by any launch configurations for
the project, which is why they appear in the list of "Available Modules' for
the launch configuration.

2) If you make a change to the list of "Entry Point" modules under the GWT
Settings page, then any subsequent additions or removals of modules to your
project (whether they contain an entry point or not) will not be reflected
in this list. That is, the values in this list will remain fixed (unless you
hit "Restore Defaults").

3) Similarly, if you make a change to the list of "Available Modules" for a
particular launch configuration, then any subsequent changes to the "Entry
Point" modules list under the GWT Settings page will NOT be reflected in
this list.

To conclude, #2, and #3 are working as designed. With regard to #1, we were
not strict about preventing the addition of truly non-entry point modules to
these lists. In a future release, we are going to add functionality that
provides the user with more information and tools related to modules. At
this time, we'll tighten up validation in this area.

Hope this helps,
Rajeev

On Thu, Apr 23, 2009 at 1:50 PM, Rajeev Dayal  wrote:

> Hey Ben,
>
> Responses inline:
>
> On Thu, Apr 23, 2009 at 12:56 PM, Ben FS  wrote:
>
>>
>> > Glad that the error is gone. One last question - in the launch
>> configuration
>> > that you modified by hitting the "Restore Defaults" button - before that
>> > point, did you ever make changes to the list of Entry Points in the
>> launch
>> > configuration?
>> I may have removed a module (that had an entrypoint, but that I did
>> not intend to launch), but I am not sure.
>>
>> > The reason that I'm asking is because we should always default to the
>> > project's list of entry points in the "Available Modules" list for a
>> launch
>> > configuration, UNLESS you've made a change to them.
>> Could you please explain what you mean by "made a change to them"?
>> Specifically, are you asking whether I ever changed the list of
>> entrypoints included under the specific launch configuration? Because
>> there is also the list that comes up under GWT settings when I right-
>> click on the project node.
>
>
> Sorry, that was not very clear, was it? As you've more clearly put, I was
> asking you whether you've changed the list of entry points included under
> the specific launch configuration.
>
> If you did make such a change, then that set of entry point modules in the
> launch configuration becomes fixed. That is, if you make a change to the
> list of entry points in the Project Properties GWT Settings page, these
> changes will not be propagated to the modified launch configuration.
> Conversely, had you not made any specific changes to the launch
> configuration, then the list of entry point modules in the configuration
> would always mirror the list of entry point modules in the Project
> Properties GWT Settings page.
>
>
>>
>>
>> > From what you're
>> > describing, it seems as if the launch configuration did not respect your
>> > project's defaults, which may mean that there's a bug in the plugin.
>> There are four modules in my project. One of them has no EntryPoint
>> ("Core"), one of them is an artifact from when I first created the
>> project using the plugin, some sort of Hello World type of module that
>> I just haven't got around to deleting yet. Two modules have
>> EntryPoints and these are the ones I run. I have multiple launch
>> configurations.
>>
>> I am certain that the "Core" module (lacking an EntryPoint) never had
>> an EntryPoint in this project. I am pretty sure that I never actively
>> added the "Core" module to the list of Available Modules in any of the
>> launch configurations. Before I hit "Restore Defaults", the "Core"
>> module was listed in the Available Modules. So it seems that either a)
>> the plugin somehow added this EntryPoint-less module at some point
>> (perhaps when I copied the existing code into the project), or that b)
>> I mistakenly added it myself and don't remember doing so.
>>
>> To reproduce, I'd suggest starting a new project using the Plugin, and
>> then copying in code that includes three existing modules, one of
>> which has no EntryPoint but is included by the other two.
>
>
> Ok, I will give this a try on my side. Thanks for the information.
>
>
>>
>>
>> >
>> > On Wed, Apr 22, 2009 at 9:05 PM, Ben FS  wrote:
>> >
>> > > > Do you see the non-entry point module in the list?
>> > > Yes.
>> >
>> > > > If so, can you hit "Restore Defaults", run the launch configuration,
>> and
>> > > see if that fixes your
>> > > > problem?
>> > > Okay, I tried this as you describe and it worked. When I clicked
>> > > "Restore Defaults", the entrypoint-less module disappeared. A
>> > > different 

Urgent: Re: ClassNotFoundException: com.google.gwt.dev.HostedMode

2009-04-24 Thread Farrukh Najmi


When I look at what jars changed recently in my local maven repo, the
following jars look noteworthy:

#Find jars in local maven repo that changed in last 5 hours
find /home/najmi/.m2/repository -ctime -5 -name '*.jar'

/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/tasks.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/pipnss.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/US.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/toolkit.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/classic.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/content-packs.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/en-unix.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/pippki.jar
/home/najmi/.m2/repository/com/google/gwt/gwt-dev/1.6.4/mozilla-1.7.12/
chrome/en-US.jar

Also gwt:compile target of gwt-maven-plugin to run GWT compiler gives:

[INFO] Unpack native libraries required to run GWT
[INFO] establishing classpath list (scope = compile)
[ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/
google/gwt/dev/Compiler
[ERROR] Caused by: java.lang.ClassNotFoundException:
com.google.gwt.dev.Compiler
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[ERROR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)
[ERROR] Could not find the main class: com.google.gwt.dev.Compiler.
Program will exit.


Can anyone knowledgeable provide some guidance?


On Apr 24, 11:05 am, Farrukh Najmi  wrote:
> Hi Guys, This issue is a complete show stopper for my project. I would
> be really grateful if someone can provide some guidance on how to get
> over it quickly. Thanks.
>
> On Apr 24, 10:43 am, "farrukh.n...@gmail.com" 
> wrote:
>
> > My maven based GWT app suddenly started giving the following error
> > when I start the GWT Shell.
> > I am using the codehaus gwt-maven-plugin goal gwt:run to start the
> > shell:
>
> >                 org.codehaus.mojo
> >                 gwt-maven-plugin
> >                 1.1-20090420.082414-36
>
> > Any idea what could be causing the problem? THis seems related but I
> > am not sure what I need to do to get out of this problem:
>
> >  > thread/7ecb9d173c6f4304>
>
> > Here is my stacktrace:
>
> > [INFO] establishing classpath list (scope = runtime)
> > [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/
> > google/gwt/dev/HostedMode
> > [ERROR] Caused by: java.lang.ClassNotFoundException:
> > com.google.gwt.dev.HostedMode
> > [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> > [ERROR]         at java.security.AccessController.doPrivileged(Native 
> > Method)
> > [ERROR]         at 
> > java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> > [ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> > 301)
> > [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> > [ERROR]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> > 320)
> > [ERROR] Could not find the main class: com.google.gwt.dev.HostedMode.
> > Program will exit.
>
> > Thanks for your 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Hot Code Replace Failed triggered on any change, even comment change

2009-04-24 Thread irc1258

Versions:
GWT 1.5.x
Eclipse 3.4.1. Build M20090211-1700.

Steps To Reproduce:
1. Invoke a GWT Debug config.
2. After GWT GUI comes up, make trivial change to code, e.g. modify an
existing
comment.
3. Save the file. Hot Code Replace Diaglog comes up.
4. The reason given is: Hot code replace failed - Class modifiers
change not
implemented.



More information:
* This problem only started recently. Before with the same project,
this
problem did not occur.
* Another team member working on the same project does not have this
problem.
He is using Eclipse build Version: 3.4.1 Build id: M20080911-1700. I
am using Version:
3.4.2 Build id: M20090211-1700.
* I submitted this defect to the Eclipse team. They recommended that
it be submitted the GWT team as well.

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



Error with popup, ie freeze, (IE7 and GWT 1.6.4)

2009-04-24 Thread Gilles B

Hello,

I have an error in some popup windows used to update data. It's not a
systematic (!) error but not so difficult to produce in my
environnement with a popup panel displaying some enabled or disabled
textbox, listbox and a close button. I only display data (using
setText, setEnabled, setFocus). The RPC method used to update data
exist in my dialog but is not invoked.

JS code line in error (pretty mode) is :

function is(o){
  if (o.nodeType) {  // ERROR => in french "objet requis"
return o.nodeType == 1;
  }
  return false;
}


may be a call from  "function $eventTargetsPopup(this$static,
event_0)"
The message "objet requis" (required object) let me think that o is
null or is not a valid object.

There's no problem using the same code with Opera or Firefox. The
"same" application (before updating to GWT 1.6, mainly replacing
listeners) seems to works fine with IE and GWT 1.5

The application is quite big and its not easy to extract a sniplet.

This is an extract to give an idea of my code:

public class UserPanel extends GPanelDialog {
// this is a widget with a Label + Textbox in a horizontal panel
   private GTextBox editKey   = new GTextBox(Dico.txt.userUid(), 0, 1,
false);
   private GTextBox editNick  = new GTextBox(Dico.txt.userNickname());
   private GListBox listTeam  = new GListBox(Dico.txt.userTeam(), 1);
   ...
   private User user;

   public UserPanel (User user) {
  this.user = user;

  String title = Dico.msg.userMsg06();

  GPanel panelDetail = getGPanel();//new VerticalPanel();
  panelDetail.setSpacing(1);
  panelDetail.add(editKey;
  panelDetail.add(editFirstName, editLastName); // Create an
Hor.Panel with multiples objects
  panelDetail.add(editMail);
  ...

  for (Team team : AC.getInstance().getTeamList()) {
 listTeam.getListBox().addItem(team.getLabel());
  }

  // User Data
  displayData();

  setEditing(true);

  OkCancelToolbar vToolBar = new OkCancelToolbar
(AC.BAR_BACKGROUND, new OkCancelListener() {
 public void doOkCancel(int btnCode) {
if (btnCode==OkCancelToolbar.BTN_CANCEL)
   onCancel();
else if (btnCode==OkCancelToolbar.BTN_OK)
   onValidate();
 }
  }, status);


  vToolBar.setWidth("100%");
  vToolBar.setHeight("32px");
  panelDetail.add(vToolBar);
   }

   private void displayData () {
  editKey .setText(user.getUid());
  editFirstName.setText(user.getFirstName());
  editMail.setText(user.getEmail());
  ...
   }

   public void udateUserData () {
  user.setUid(editKey.getText());
  ...
   }

   public void setEditing(boolean isEditing) {
  editKey .setEnabled(false);
  editFirstName .setEnabled(isEditing);
  listTeam.getListBox().setEnabled(isEditing);
  ...
   }



   public void onValidate() {
  if (status==OkCancelToolbar.STATUS_DISPLAY) {
  }
  else if (status==OkCancelToolbar.STATUS_UPDATE) {
 udateUserData();
 AC.getInstance().getArchiServiceAsync().updateUser
(AC.getInstance().getSessionTag(), user, new AsyncCallback() {
public void onFailure(Throwable caught) {
   AC.getInstance().displayError(caught);
}
public void onSuccess(Void result) {
   AC.getInstance().onUpdateBzEntity(user,
OkCancelToolbar.STATUS_CREATE);
}
 });
  }
  hide();
   }

   /** Annulation */
   public void onCancel() {
  hide();
   }

   @Override
   public void center() {
  super.center();
  editFirstName.setFocus(true);
   }

   //@Override
   public boolean onKeyDownPreview(char key, int modifiers) {
  switch (key) {
  case KeyCodes.KEY_ENTER:
 onValidate();
 break;
  case KeyCodes.KEY_ESCAPE:
 onCancel();
 break;
  }
  return true;
   }

}


Thanks for 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: ClassNotFoundException: com.google.gwt.dev.HostedMode

2009-04-24 Thread Farrukh Najmi


Hi Guys, This issue is a complete show stopper for my project. I would
be really grateful if someone can provide some guidance on how to get
over it quickly. Thanks.

On Apr 24, 10:43 am, "farrukh.n...@gmail.com" 
wrote:
> My maven based GWT app suddenly started giving the following error
> when I start the GWT Shell.
> I am using the codehaus gwt-maven-plugin goal gwt:run to start the
> shell:
>
>                 org.codehaus.mojo
>                 gwt-maven-plugin
>                 1.1-20090420.082414-36
>
> Any idea what could be causing the problem? THis seems related but I
> am not sure what I need to do to get out of this problem:
>
>  thread/7ecb9d173c6f4304>
>
> Here is my stacktrace:
>
> [INFO] establishing classpath list (scope = runtime)
> [ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/
> google/gwt/dev/HostedMode
> [ERROR] Caused by: java.lang.ClassNotFoundException:
> com.google.gwt.dev.HostedMode
> [ERROR]         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [ERROR]         at java.security.AccessController.doPrivileged(Native Method)
> [ERROR]         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> [ERROR]         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
> 301)
> [ERROR]         at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> [ERROR]         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
> 320)
> [ERROR] Could not find the main class: com.google.gwt.dev.HostedMode.
> Program will exit.
>
> Thanks for your 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: How to debug whats grabbing my click events?

2009-04-24 Thread Darkflame

Anyone? I'm still having trouble working out what widgets grabbing my
clicks.

Not sure if Ben's having the same trouble as me, but there must be
some method to work it out no? (using Firebug, debuging
code...anything?).


On Apr 21, 7:00 am, Ben FS  wrote:
> Update: I'm using a NativePreviewHandler to get a sense of what is
> going on ... but can't seem to get much useful information.
>
> Event.addNativePreviewHandler(new NativePreviewHandler() {
>         @Override
>         public void onPreviewNativeEvent(NativePreviewEvent event) {
>                 NativeEvent ne = event.getNativeEvent();
>                 if ( ne != null && ne.getButton() == ne.BUTTON_LEFT ) {
>                         GWT.log(ne.getType(), null);
>                 }
>         }
>         });
>
> This logs twice when I left-click: mouseup then mousedown
>
> I'd really like to figure out why my Widget's ClickHandler is not
> getting called, but don't know how to go about investigating (or
> fixing this). Any advice?
>
> On Apr 20, 5:13 pm, Ben FS  wrote:
>
>
>
> > I too would like to know how to debug event-related problems?
>
> > In my case, I dynamically insert an Element into a TreeItem, via DOM
> > manipulation, in order to display an editing control for the selected
> > tree node. This worked well using GWT 1.4.62, but no longer works
> > using GWT 1.6.4. It looks like the tree nodes are represented by a
> > different DOM/HTML structure in the new version, so I made changes to
> > accomodate this (somewhat). But a serious problem remains: no
> > ClickEvents are registered on the Element that I insert into the DOM.
>
> > I've tried to debug this by inserting an HTML element explicitly set
> > to have a hyperlink with a javascript href value to pop up an alert
> > box. The link appears, and on mouseover the browser status bar shows
> > javascript:alert(), but on click nothing happens.
>
> > Any tips for how to debug such a situation?
>
> > Any tips for how to insert Elements via DOM manipulations and still
> > have them participate in event handling, i.e. click events?
>
> > Thanks!
>
> > On Apr 20, 5:58 am, darkflame  wrote:
>
> > > I got a widget with a set of hyperlinks on it thats appearing ontop of
> > > other page elements.
>
> > > None of the links seem to be firing when clicked, so I suspect
> > > something else is grabbing them. (specifically a modified dialogue
> > > box...but I don't know what element in the box is doing it)
>
> > > I'm not too good with Dom stuff, but I tried inserting a;
>
> > >         GWT.log(DOM.getCaptureElement().toString(),null);
>
> > > Where the handlers are being assigned, but it just returns null.
> > > (probably on the wrong line of thinking altogether, but that was the
> > > only thing I could spot to try).- Hide quoted text -
>
> > - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 integrate spring with gwt

2009-04-24 Thread Alejandro D. Garin
Hi,

Try moving your applicationContext.xml to WEB-INF/applicationContext.xml

On Fri, Apr 24, 2009 at 10:38 AM, mabebe  wrote:

>
> Hi i am having difficulty integrating spring with gwt. Below is my
> code for my serviceImpl class...and where i think the error is
>
> @Override
>public void init() throws ServletException {
>super.init();
>ServletContext sc = this.getServletContext();
>
>WebApplicationContext ctx =
> WebApplicationContextUtils.getWebApplicationContext(sc); <--- this
> returns a null pointer exception exception
>reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade");
>}
>
>
> i have the following in my webapp web.xml file...
>
>
>contextConfigLocation
>
>
>  classpath:org/personalsite/config/applicationContext.xml
>
>
>
>
>
>
>  org.springframework.web.context.ContextLoaderListener
>
>
>
>

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



Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files

2009-04-24 Thread Jason Essington

Two things,

First, you should be excluding anything in a **/client/** package from  
your java compile, as that stuff doesn't need to be compiled for the  
server.
Second, you shouldn't ever deploy the gwt-user.jar to your server,  
that is what the gwt-servlet.jar is for. gwt-user.jar is strictly for  
use by the GWT compiler (it requires source files) and development  
(which requires the servlet interfaces).

-jason

On Apr 24, 2009, at 1:51 AM, cyril.lakech wrote:

>
> Hi,
>
> There is an error in GWT 1.6.4 release distribution. Because of a bad
> packaging of the product, there are too much files in the jar. The
> javax/servlet classes are in the jar and the java files too. And when
> you compile you GWT application, these java files are compiled and gwt
> put them in the classes package of the output directory. So the javax/
> servlet classes are in the war of the project and all the applications
> servers embedded this library already.
> So we got a wonderfull linkage error at runtime.
>
> This issue was already discussed here =>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e0486a1de1f58c06/d22b7bc2d0b63e1e?lnk=raot
>
> And there is an open and fixed issue here :
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3439
>
> But this fix was not release.
>
> There is a workaround : remove all the java files from javax/servlet
> of the gwt-user.jar and change all the timestamps of the class file to
> a very old date (2004)
>
> When this issue will be fixed in the distribution of gwt-user ?
>
> Bst rgds,
> >


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



ClassNotFoundException: com.google.gwt.dev.HostedMode

2009-04-24 Thread farrukh.n...@gmail.com


My maven based GWT app suddenly started giving the following error
when I start the GWT Shell.
I am using the codehaus gwt-maven-plugin goal gwt:run to start the
shell:

org.codehaus.mojo
gwt-maven-plugin
1.1-20090420.082414-36


Any idea what could be causing the problem? THis seems related but I
am not sure what I need to do to get out of this problem:



Here is my stacktrace:

[INFO] establishing classpath list (scope = runtime)
[ERROR] Exception in thread "main" java.lang.NoClassDefFoundError: com/
google/gwt/dev/HostedMode
[ERROR] Caused by: java.lang.ClassNotFoundException:
com.google.gwt.dev.HostedMode
[ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[ERROR] at java.security.AccessController.doPrivileged(Native Method)
[ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
[ERROR] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:
301)
[ERROR] at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
[ERROR] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:
320)
[ERROR] Could not find the main class: com.google.gwt.dev.HostedMode.
Program will exit.

Thanks for your 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-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



INFO: Servlet shell is currently unavailable

2009-04-24 Thread badgerduke

Hello:

I need to include a GWT application into a JSP.  I thought this would
be as simple as saying:

 where Screen28.html is
the generated html page:



  

Application

  
  


  


But instead I get "INFO: Servlet shell is currently unavailable" in
Tomcat 6.  I have gwt-dev-windows.jar, gwt-servlet.jar and gwt-
user.jar on my classpath.  My GWT service code is in a jar on the
classpath.

Any ideas?

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



Re: Packaging error in gwt-user 1.6.4 with javax servlet classes and java files

2009-04-24 Thread Isaac Truett

Works fine for me. Why are you even compiling those classes?


On Fri, Apr 24, 2009 at 3:51 AM, cyril.lakech  wrote:
>
> Hi,
>
> There is an error in GWT 1.6.4 release distribution. Because of a bad
> packaging of the product, there are too much files in the jar. The
> javax/servlet classes are in the jar and the java files too. And when
> you compile you GWT application, these java files are compiled and gwt
> put them in the classes package of the output directory. So the javax/
> servlet classes are in the war of the project and all the applications
> servers embedded this library already.
> So we got a wonderfull linkage error at runtime.
>
> This issue was already discussed here =>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e0486a1de1f58c06/d22b7bc2d0b63e1e?lnk=raot
>
> And there is an open and fixed issue here :
> http://code.google.com/p/google-web-toolkit/issues/detail?id=3439
>
> But this fix was not release.
>
> There is a workaround : remove all the java files from javax/servlet
> of the gwt-user.jar and change all the timestamps of the class file to
> a very old date (2004)
>
> When this issue will be fixed in the distribution of gwt-user ?
>
> Bst rgds,
> >
>

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



Re: Converting string to timestamp throws exception in GWT web mode

2009-04-24 Thread Neo

No. It is not possible to get a Date or a Timestamp.
The String is coming from an Editable Grid Control.

On Apr 24, 6:57 pm, Salvador Diaz  wrote:
> One way would be to skip the first timestamp to string conversion.
> Where does the string comes from ? Would it be possible to get a Date
> or Timestamp object instead of getting the string ?
>
> Hope that helps
>
> Salvador
>
> On Apr 24, 3:44 pm, Neo  wrote:
>
>
>
> > Hi,
>
> > I am trying to convert a string to a Timestamp value in my Client side
> > code. It works fine in Hosted mode but the same code fails in Web
> > mode.
>
> > This is my code :
> > java.sql.Timestamp startTime = java.sql.Timestamp.valueOf( > as string>);
>
> > Got this exception in web mode :
>
> > Exception occurred :
> > Invalid escape format: 2009-04-07 12:30:00.0
>
> > Can you please help me out in this and suggest a way to convert the
> > string to Timestamp so that it works both in Hosted mode and Web mode.- 
> > Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
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 integrate spring with gwt

2009-04-24 Thread Jim

take look at http://www.leeonsoft.com/mail/Mail.html for an example.

Jim Xie
http://www.leeonsoft.com For GWT ORM
http://code.google.com/p/dreamsource-orm/downloads/list


On Apr 24, 9:54 am, Salvador Diaz  wrote:
> Please use the search in the forum, this question has just been
> answered (it's even in the first page of the discussions list)
>
> http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> Hope that helps,
>
> Salvador
>
> On Apr 24, 3:38 pm, mabebe  wrote:
>
>
>
> > Hi i am having difficulty integrating spring with gwt. Below is my
> > code for my serviceImpl class...and where i think the error is
>
> > @Override
> >         public void init() throws ServletException {
> >         super.init();
> >         ServletContext sc = this.getServletContext();
>
> >         WebApplicationContext ctx =
> > WebApplicationContextUtils.getWebApplicationContext(sc); <--- this
> > returns a null pointer exception exception
> >         reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade");
> >     }
>
> > i have the following in my webapp web.xml file...
>
> >         
> >                 contextConfigLocation
> >                 
> >                         
> > classpath:org/personalsite/config/applicationContext.xml
> >                 
> >         
>
> >         
> >                 
> >                         
> > org.springframework.web.context.ContextLoaderListener
> >                 
> >         - Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Converting string to timestamp throws exception in GWT web mode

2009-04-24 Thread Salvador Diaz

One way would be to skip the first timestamp to string conversion.
Where does the string comes from ? Would it be possible to get a Date
or Timestamp object instead of getting the string ?

Hope that helps

Salvador

On Apr 24, 3:44 pm, Neo  wrote:
> Hi,
>
> I am trying to convert a string to a Timestamp value in my Client side
> code. It works fine in Hosted mode but the same code fails in Web
> mode.
>
> This is my code :
> java.sql.Timestamp startTime = java.sql.Timestamp.valueOf( as string>);
>
> Got this exception in web mode :
>
> Exception occurred :
> Invalid escape format: 2009-04-07 12:30:00.0
>
> Can you please help me out in this and suggest a way to convert the
> string to Timestamp so that it works both in Hosted mode and Web mode.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: import java.net cannot be resolved error

2009-04-24 Thread satish

Thank you. I get it now.

On Apr 23, 9:56 pm, Adam T  wrote:
> If this is client side code, you can't use java.net as the code gets
> compiled to JavaScript - I'd suggest you read the documentation for
> GWT to get a feel of what you can and can't do, in particular what is
> included in the JRE Emulation for 
> GWT:http://code.google.com/intl/sv-SE/webtoolkit/doc/1.6/RefJreEmulation
>
> You should also check you the RequestBuilder class which allows you to
> make calls to a server from your code, BUT, as this will be from a
> browser you will need to be aware of the Single Origin Policy - i.e.
> your code can only make a call back to the server from which it came.
> So in your case, if your GWT application is served from
> hellworld.appspot.com your would be ok, if not, then you can't.
>
> //Adam
>
> On 24 Apr, 04:41, satish  wrote:
>
> > I am using GWT plugin for eclipse and trying to build an test
> > application to be deployed on app engine. I am relatively new to Java
> > and App Engine. I have import java.net.* statement declared but when I
> > run the program in hosted browser mode, I get the error - Line 5: The
> > import java.net cannot be resolved. I don't get any error for java.io
> > or java.util.ArrayList imports. What am i doing wrong? Thank you.
>
> > Here is the program. getJoke() method needs classes from java.net.
>
> > package com.google.gwt.sample.stockwatcher.client;
>
> > import java.io.*;
> > import java.net.*;
> > import java.util.ArrayList;
>
> > 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.event.dom.client.KeyCodes;
> > import com.google.gwt.event.dom.client.KeyPressEvent;
> > import com.google.gwt.event.dom.client.KeyPressHandler;
> > import com.google.gwt.user.client.Window;
> > import com.google.gwt.user.client.ui.Button;
> > import com.google.gwt.user.client.ui.FlexTable;
> > import com.google.gwt.user.client.ui.HorizontalPanel;
> > import com.google.gwt.user.client.ui.Label;
> > import com.google.gwt.user.client.ui.RootPanel;
> > import com.google.gwt.user.client.ui.TextBox;
> > import com.google.gwt.user.client.ui.VerticalPanel;
>
> > public class StockWatcher implements EntryPoint {
>
> >   private VerticalPanel mainPanel = new VerticalPanel();
> >   private FlexTable stocksFlexTable = new FlexTable();
> >   private HorizontalPanel addPanel = new HorizontalPanel();
> >   private TextBox newSymbolTextBox = new TextBox();
> >   private Button addStockButton = new Button("Add");
> >   private Label lastUpdatedLabel = new Label();
> >   private ArrayList stocks = new ArrayList();
> >   private TextBox jokeTextBox = new TextBox();
> >   private Button getJokeButton = new Button("Get Joke");
> >   private HorizontalPanel jokePanel = new HorizontalPanel();
>
> >   /**
> >    * Entry point method.
> >    */
> >   public void onModuleLoad() {
> >     // Create table for stock data.
> >           stocksFlexTable.setText(0, 0, "Symbol");
> >           stocksFlexTable.setText(0, 1, "Price");
> >           stocksFlexTable.setText(0, 2, "Change");
> >           stocksFlexTable.setText(0, 3, "Remove");
>
> >           // Assemble Add Stock panel.
> >             addPanel.add(newSymbolTextBox);
> >             addPanel.add(addStockButton);
>
> >             //Assmeble Joke Panel
> >             addPanel.add(getJokeButton);
> >             addPanel.add(jokeTextBox);
>
> >             // Assemble Main panel.
> >             mainPanel.add(stocksFlexTable);
> >             mainPanel.add(addPanel);
> >             mainPanel.add(jokePanel);
> >             mainPanel.add(lastUpdatedLabel);
>
> >             // Associate the Main panel with the HTML host page.
> >             RootPanel.get("stockList").add(mainPanel);
>
> >             // Move cursor focus to the input box.
> >             newSymbolTextBox.setFocus(true);
> >          // Listen for mouse events on the Add button.
> >             addStockButton.addClickHandler(new ClickHandler() {
> >               public void onClick(ClickEvent event) {
> >                 addStock();
> >               }
> >             });
>
> >             // Listen for keyboard events in the input box.
> >             newSymbolTextBox.addKeyPressHandler(new KeyPressHandler() {
> >               public void onKeyPress(KeyPressEvent event) {
> >                 if (event.getCharCode() == KeyCodes.KEY_ENTER) {
> >                   addStock();
> >                 }
> >               }
> >             });
>
> >          // Listen for mouse events on the getJoke button.
> >             getJokeButton.addClickHandler(new ClickHandler() {
> >               public void onClick(ClickEvent event) {
> >                 getJoke();
> >               }
> >             });
>
> >           }
>
> >           /**
> >            * Add stock to FlexTable. Executed when the user clicks the
> > addStockButton or
> >            * presses enter 

Re: Can't integrate spring with gwt

2009-04-24 Thread Salvador Diaz

Please use the search in the forum, this question has just been
answered (it's even in the first page of the discussions list)

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/d672bd0bcd9fc917#

Hope that helps,

Salvador

On Apr 24, 3:38 pm, mabebe  wrote:
> Hi i am having difficulty integrating spring with gwt. Below is my
> code for my serviceImpl class...and where i think the error is
>
> @Override
>         public void init() throws ServletException {
>         super.init();
>         ServletContext sc = this.getServletContext();
>
>         WebApplicationContext ctx =
> WebApplicationContextUtils.getWebApplicationContext(sc); <--- this
> returns a null pointer exception exception
>         reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade");
>     }
>
> i have the following in my webapp web.xml file...
>
>         
>                 contextConfigLocation
>                 
>                         
> classpath:org/personalsite/config/applicationContext.xml
>                 
>         
>
>         
>                 
>                         org.springframework.web.context.ContextLoaderListener
>                 
>         
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Error message

2009-04-24 Thread Salvador Diaz

Please read the following sections of the documentation, they'll tell
you what is happening:
http://code.google.com/webtoolkit/doc/1.6/DevGuideOrganizingProjects.html
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideClientSide
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideJavaCompatibility

In short, your project isn't correctly configured.

http://code.google.com/webtoolkit/doc/1.6/FAQ_Troubleshooting.html#Unable_to_find_type_%27com.foo.client._MyApp_%27

Hope that helps,

Salvador

On Apr 24, 3:18 pm, surfi2000  wrote:
> Hi,
>
> I am having a little problem with a program Im writing.
>
> The eclipse project can be downloaded fromhttp://www.stephanm.net/SME3.zip
>
> Could someone have a look please to see what I am doing wrong?
>
> These are the two errors I am getting
>
> [ERROR] Line 16: No source code is available for type
> com.uni.sme.server.company; did you forget to inherit a required
> module?
>
> [ERROR] Line 16: No source code is available for type
> com.uni.sme.server.MyServiceImpl; did you forget to inherit a required
> module?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Converting string to timestamp throws exception in GWT web mode

2009-04-24 Thread Neo

Hi,

I am trying to convert a string to a Timestamp value in my Client side
code. It works fine in Hosted mode but the same code fails in Web
mode.

This is my code :
java.sql.Timestamp startTime = java.sql.Timestamp.valueOf();

Got this exception in web mode :

Exception occurred :
Invalid escape format: 2009-04-07 12:30:00.0


Can you please help me out in this and suggest a way to convert the
string to Timestamp so that it works both in Hosted mode and Web mode.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Can't integrate spring with gwt

2009-04-24 Thread mabebe

Hi i am having difficulty integrating spring with gwt. Below is my
code for my serviceImpl class...and where i think the error is

@Override
public void init() throws ServletException {
super.init();
ServletContext sc = this.getServletContext();

WebApplicationContext ctx =
WebApplicationContextUtils.getWebApplicationContext(sc); <--- this
returns a null pointer exception exception
reportsFacade = (IReportsFacade) ctx.getBean("ReportsFacade");
}


i have the following in my webapp web.xml file...


contextConfigLocation

classpath:org/personalsite/config/applicationContext.xml





org.springframework.web.context.ContextLoaderListener


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



Error message

2009-04-24 Thread surfi2000

Hi,

I am having a little problem with a program Im writing.

The eclipse project can be downloaded from http://www.stephanm.net/SME3.zip

Could someone have a look please to see what I am doing wrong?

These are the two errors I am getting

[ERROR] Line 16: No source code is available for type
com.uni.sme.server.company; did you forget to inherit a required
module?

[ERROR] Line 16: No source code is available for type
com.uni.sme.server.MyServiceImpl; did you forget to inherit a required
module?


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



Re: Localization - is GWT localization worth it? Can we have juse a single permutation please?

2009-04-24 Thread Engidea-GWT

I had the following requirement: "Multilingual mapping should be
available to the user", meaning that if the original language where
labels written is english then a French user could map the english
labels in the application and translate the language to english.
The way I did it is this:
A DB serverside table holding the map
"original label", "language id", "translated label"
(the above is simplified, there is join table in the middle)
On client startup, the first thing it does is to load a hashmap with
the translations, it can do it because it tells to the server the
current language and the server responds with a simple hashmap holding
"english label","translated label"
Then, of course, every string in the client application is mapped to
the multilang using a method in the mapper class.
It works, it is fast, and it solves my requirement.

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



Re: java.lang.ref in GWT

2009-04-24 Thread Mark Renouf

Garbage collection in JavaScript is browser-dependent, but similar
rules apply as with Java. When you are no longer using the data, make
sure you eliminate all references to it. For example, if you've stored
it in an Array or Collection of some sort, be sure to null out or
remove those entries. The browser's JavaScript engine will do it's
best to garbage collect that data (some better than others
obviously).

GWT goes to great lengths to do this for you as automatically as
possible. For example, if you perform an AJAX request for a chunk of
HTML and insert it into an HTML widget, insert it into the page, then
later remove it, GWT ensures that the element is cleanly detached from
the DOM and the Widget object is removed from it's parent. Assuming
you haven't stored it elsewhere (usually not), it will be eligable for
garbage collection.

Others can probably tell you which browsers to  watch out for (IE6?),
and some pitfalls that might cause problems (circular references?)

On Apr 23, 6:41 am, "zold...@gmail.com"  wrote:
> I have GWT application. Use loads page, then visits links (I use GWT's
> Hyperlink, so page is not reloaded). Amount of data that page contain
> is increased (I use AJAX requests to get data from server). I have
> some data that shouldn't necessarily exist always, I can load it from
> server again. Is there any way I can tell js engine that it can be
> garbage collected? Something similar to java.lang.ref.SoftReference?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: java.io.FileOutputStream is not supported by Google App Engine's JRE

2009-04-24 Thread Salvador Diaz

Yes, you should read the docs concerning the allowed java classes in
the app engine (). And you might want to remove the App Engine SDK
from your project if you're not planning on deploying to google app
engine (gwt doesn't need app engine and viceversa).

Hope that helps,

Salvador

App engine docs: http://code.google.com/appengine/docs/java/gettingstarted/

On Apr 24, 12:57 pm, newtoGWT  wrote:
> I am trying to merge my existing code base (web application) with GWT
> but the compiler throws
>
> "java.io.FileOutputStream is not supported by Google App Engine's Java
> Runtime Environment"
>
> in the existing code.
>
> since my web application uses javax.naming.InitialContext, Context,
> FileWriter etc...
> i am unable to compile any of the files that uses above classes/
> interfaces.
>
> Any suggestion to this would be greatly helpful.
>
> Thanks,
> Ganesh R
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



java.io.FileOutputStream is not supported by Google App Engine's JRE

2009-04-24 Thread newtoGWT


I am trying to merge my existing code base (web application) with GWT
but the compiler throws

"java.io.FileOutputStream is not supported by Google App Engine's Java
Runtime Environment"

in the existing code.

since my web application uses javax.naming.InitialContext, Context,
FileWriter etc...
i am unable to compile any of the files that uses above classes/
interfaces.

Any suggestion to this would be greatly helpful.

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



Re: Creating GWT application

2009-04-24 Thread newtoGWT

hmmm.. i'll try out that too... Thanks!!

On Apr 22, 9:04 am, Rajeev Dayal  wrote:
> Glad that everything is working for you. As an FYI, if you have a proxy
> server that you can use to hit the Eclipse update site, you can configure
> Eclipse to use it when performing an update or an installation. In Eclipse
> 3.3, go to Windows -> Preferences -> Network Connections (or Eclipse ->
> Preferences -> Network Connections, if on the Mac).
>
> We'll definitely add some more documentation to help out people that are
> suffering with proxy issues.
>
>
>
> On Wed, Apr 22, 2009 at 5:37 AM, newtoGWT  wrote:
>
> > Hi Rajeev,
>
> > Thanks a ton! for your guide on installing the eclipse plugin. it
> > works great!!!
>
> > if these steps are listed as part of "http://code.google.com/eclipse/
> > docs/getting_started.html#installing"
> > this web page,
> > it would help developers who are working behind a firewall or in the
> > cases where ppl facing problems in updating through eclipse.
>
> > >In the future, we'll make this whole process easier by providing a zip of
> > the plugin. -- Really great wud be easier too!!
>
> > >I just had a thought about this - are you behind a proxy?
>
> > offcourse i am working inside a secure network (that has firewall,
> > websense etc) i thinks thats blocking eclipse from installing plugins
> > directly...
>
> > Thanks,
> > Ganesh R
>
> > On Apr 21, 10:11 am, Rajeev Dayal  wrote:
> > > If you can't get Eclipse's install mechanism working, here's how you can
> > > install the plugin manually in Eclipse 3.3:
>
> > > Download the following file and place it in a temporary directory:
>
> > >http://dl.google.com/eclipse/plugin/3.3/site.xml
>
> > > Now, download the following into a directory called *features*,
> > underneath
> > > your temporary directory:
>
> >http://dl.google.com/eclipse/plugin/3.3/features/com.google.appengine
> > ..
>
> > > Finally, download the following into a directory called *plugins*,
> > > underneath your temporary directory:
>
> >http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.appengine.
> > ..
>
> > > If on linux:
> >http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips...
>
> > > If on mac:
> >http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips...
>
> > > If on windows:
> >http://dl.google.com/eclipse/plugin/3.3/plugins/com.google.gwt.eclips...
>
> > > Now, go into Eclipse, and set up a local update site, and point it to the
> > > temporary directory that you created. You should be able to install the
> > > plugin from this "local" update site.
>
> > > In the future, we'll make this whole process easier by providing a zip of
> > > the plugin.
>
> > > On Tue, Apr 21, 2009 at 5:51 AM, newtoGWT  wrote:
>
> > > > "Network connection problems encountered during search.
> > > > Unable to access "http://dl.google.com/eclipse/plugin/3.3";.
> > > > Error parsing site stream. [Premature end of file.]
> > > > Premature end of file.
> > > > Error parsing site stream. [Premature end of file.]
> > > > Premature end of file."
>
> > > > I know this is not the exact stack trace but this is what it shows in
> > > > eclipse when i click on details button.
>
> > > > thanks for your info,http://dl.google.com/eclipse/plugin/3.3/site.xml
> > > > works!
> > > > Is there any downloadable jar file? so that i can directly unzip
> > > > inside eclipse plugins folder...(other than cypal).
>
> > > > On Apr 20, 10:47 am, rdayal  wrote:
> > > > > In your first post, when attempting to install the plugin, you
> > > > > mentioned that "it throws a network exception". Can you copy and
> > paste
> > > > > the stack trace?
>
> > > > > Also, hitting the URLhttp://dl.google.com/eclipse/plugin/3.3directly
> > > > > in the browser will not work, because this is not a browsable
> > > > > directory. If you want to see if the site works via a browser, try
> > > > > hittinghttp://dl.google.com/eclipse/plugin/3.3/site.xml
>
> > > > > On Apr 20, 7:02 am, newtoGWT  wrote:
>
> > > > > > yes you are right Darkflame!!
> > > > > > Its due to firewall... i am unable to connect to server..
> > > > > > i downloaded fromhttp://
> > code.google.com/p/cypal-studio/downloads/list
> > > > > > but the downside of cypal-studio is, it doesn't support GWT6 :(. it
> > > > > > shows whilecreatingGWTModule.- Hide quoted text -
>
> > > > > - Show quoted text -- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~--

Re: Memory Leak in IE7

2009-04-24 Thread alanj

Does anyone know if IE8's "switch to IE7" mode is 100% reliable for
CSS and layout? I'm developing exclusively for IE7 at the moment and
can't afford anything like the time and trauma the IE6 > 7 switch-up
caused to my development, operating or nervous system!

On Apr 24, 3:52 am, Dominik Steiner 
wrote:
> I can recommend to everybody with performance problems on IE6 or IE7
> to download IE8 and use it's javascript profiler in order to check
> your js calls and time they take in order to see bottlenecks.
> For example I found out that in my code (a big application) a lot of
> equalsIgnoreCase() calls were made that slowed down IE7 dramatically.
> I refactored the code where possible to even avoid having to use equals
> () by simply using maps to store the data which was way faster.
>
> HTH
>
> Dominik
>
> On 19 Apr., 16:51, Vitali Lovich  wrote:
>
> > You contradict yourself.  A memory leak by definition does not display a
> > constant memory usage - *the* defining characteristic is that memory used
> > keeps increasing.  What you are describing is heavy memory usage & it is
> > consistent across browsers.
>
> > Thus you have a problem with your application - either it actually does need
> > that much memory, or you are doing some caching of objects somewhere and
> > never freeing that cache.
>
> > Without the code for your app or even knowing what it does, all I can
> > recommend is you first use Firebug to profile your code to find the heavy
> > CPU usage to track down what exactly is causing it - that might help you
> > find where you have heavy memory usage.
>
> > There's also the $199 tool that claims to be able to profile your JS memory
> > usage for you (I've never used it & couldn't find any free 
> > alternativeshttp://www.softwareverify.com/javascript/memory/index.html)
>
> > There's a free tool for IE memory leak detection 
> > (http://www.outofhanwell.com/ieleak/index.php?title=Main_Page) but that
> > probably won't help you as what you have described is not a leak.
>
> > On Sun, Apr 19, 2009 at 6:20 PM, mike177  wrote:
>
> > > Hello,
> > > We have built a very large, complex GWT site and it works great in FF,
> > > Chrome, and Safari (and with limited testing we seem to be ok in IE8
> > > too).  IE7, though, is hit or miss.  I originally thought that our
> > > performance issues were all being caused by IE7's poor JS engine, but
> > > I have started to believe that we have a memory leak issue too.  After
> > > upgrading to GWT 1.6 to see if there was anything there that would fix
> > > the problem, I did some testing and found the following results:
>
> > > IE7
> > > When performing heavy tasks:
> > > * CPU usage :  95-100% (will stick for 10 to 20 seconds sometimes),
> > > * RAM usage :  55% to 70% (most of the time).
> > > * the one trait that is not stereotypical of a memory leak, though, is
> > > that our site does not progressively get worse ultimately resulting in
> > > the browser freezing.  Instead, it gets bad quickly (after 1-2 minutes
> > > of use) and then stays at this poor level until you quit the site.  Go
> > > figure???
>
> > > All Other Browsers
> > > When performing heavy tasks
> > > * CPU usage : 50-75%
> > > * RAM usage :  < 50%
>
> > > So, we seem to have most of the stereotypical indicators of a leak in
> > > IE7 and unfortunately we will have to live with IE7 for another couple
> > > years (not to mention IE6).
>
> > > Does anyone have any thoughts on how to find, isolate, and fix memory
> > > leaks specific to IE7 in GWT code?
>
> > > Below are some of the resources I have dug up.  I did not have much
> > > luck looking for GWT specific information so I am leveraging whatever
> > > I can find.
>
> > > Many thanks for your thoughts and opinions.
>
> > > Regards,
> > > Mike
>
> > > --
>
> > > While these artcles not GWT specific, lots of information can be
> > > gleaned from them:
> > > *http://www.codeproject.com/KB/scripting/leakpatterns.aspx
> > > *http://msdn.microsoft.com/en-us/library/bb250448.aspx
>
> > > There is a JS memory leak detector for IE here:
> > > *http://blogs.msdn.com/gpde/pages/javascript-memory-leak-detector.aspx
> > > Of course, this just confirms that you have a leak, which we do.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Run same application in both web as well as desktop

2009-04-24 Thread Sandeep_GE

Found one option to develop application without RPC and with call back
as well.. using soafaces/universal client.

http://java.dzone.com/articles/gwt-universalclient-look-mom-n-0


On Apr 22, 1:47 pm, Sandeep_GE  wrote:
> Hello,
> I have written a client/server application using GWT & Eclipseand
> developed a fancy UI in GWT which communicates with Multiple servlets/
> servers...its working fine
>
> Now according to our design i want to use the same server code as a
> normal server in desktop application i.e since in server code i need
> to extend my code with RemoteServlet also IDL used in client service
> also needs to extend by RemoteService.
>
> e.g. public interface GreetingService extends RemoteService  ( client
> side stub )
> e.g. public class GreetingServiceImpl extends RemoteServiceServlet
> implements GreetingService ( server side implementation )
>
> Now is there any way to achieve common code by which i can run server
> in both desktop as well as web..
>
> - Thanks
> Sandeep
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Building GWT Apps

2009-04-24 Thread Salvador Diaz

There are ways to ocnfigure maven to play nice with the google eclipse
plugin and keep the source tree clean, but it's a little convoluted.
I'm preparing a post about it but I haven't had the time to finalize
it. Check back in the next 2-3 days for a detailed tutorial.

Cheers,

Salvador

On Apr 24, 1:43 am, "P.G.Taboada"  wrote:
> Broken Link...
>
> http://tinyurl.com/gwtbuildmaven
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: GWT Serialization with CustomFieldSerializer fails because of SerializationPolicy

2009-04-24 Thread Raphaël POCHET

I agree with that, i'm using a generic DTO too with a Map because i don't want to bother to create an
IServiceInterfaceAsync for every RPC method i need. So telling in an
annotation to GWT which objects are likely to travel over http would
be nice.

However if we could provide something more flexible than annotation
config, it would be nice. My RPC service is part of my framework, and
i don't want to have to modify the API to mark the serializable
implemenation DTOs.

On 18 avr, 22:35, fvisticot  wrote:
> +1, a way to specify Object to serialize would be fine !!!
>
> On Apr 17, 10:20 pm, Daniel Kurka  wrote:
>
>
>
> > this is exactly what i was thinking.
> > we need a way to specify the classes that are okay to serialiaze with the
> > service
>
> > 2009/4/17 Vitali Lovich 
>
> > > Hasn't been accepted - just opened.  Anyone can open issues against GWT.
>
> > > That being said, I think there could be room for improvement.  For
> > > instance, if you specify a serializable interface or serializable abstract
> > > class, you should be allowed to enumerate all the various types that can
> > > possibly go across the wire in anannotationso as to provide more
> > > contextual information that the compiler simply doesn't otherwise have
> > > access to at compile time.
>
> > > @Transfers({A.class, B.class, C.class, D.class})
> > > Serializable foo(Serializable[] x);
>
> > > etc. which limits the compiler to only look at A, B, C, & D when it comes
> > > across trying to compile this RPC function.
>
> > > This would solve a lot of issues & make the expressiveness much more
> > > powerful.
>
> > > On Fri, Apr 17, 2009 at 3:18 AM, Salvador Diaz 
> > > wrote:
>
> > >> Frankly I don't see how that issue could be accepted, the fact that
> > >> you have to mark all your serializable objects as Serializable or
> > >> IsSerializable has been there from the beginning. It's related to the
> > >> way the compiler has to know at compile time what objects are allowed
> > >> to travel through RPCs and how they should be serialized. You simply
> > >> cannot expect it to magically detect the types that will be added to
> > >> your  map.
>
> > >> On Apr 16, 10:14 pm, kurka.dan...@googlemail.com wrote:
> > >> > I added my concerns to this issue in the gwt issue tracker:
>
> > >> >http://code.google.com/p/google-web-toolkit/issues/detail?id=3521
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Need fix for GWT 1.6 Jars in Maven Repo

2009-04-24 Thread Salvador Diaz

I don't really think this is a bug, as you shouldn't have to include
gwt-user in your war anyway. That's what the gwt-servlet is for. Does
including the gwt dependencies in your pom in the following way solves
the problem ?

See here for the snippet: http://pastebin.com/m5960979b

I'm curious about this so let me know. Thanks

Salvador

On Apr 23, 11:15 pm, "cyril.lakech"  wrote:
> still the same bug in the 1.6.4 release !
>
> On 4 mar, 14:47, eneveu  wrote:
>
> > I had the same problem yesterday, and I stumbled on this post. Thanks
> > a lot for the explanation.
>
> > I opened an issue 
> > here:http://code.google.com/p/google-web-toolkit/issues/detail?id=3439
>
> > (Will, since your post explained the problem clearly, I took it as a
> > basis in the issue's description (changing/adding some details), I
> > hope you won't mind)
>
> > I wonder if this problem only appears when using maven, or if ant-
> > based builds also suffer from it.
>
> > -en
>
> > On Mar 3, 3:34 pm, Garey  wrote:
>
> > > I am also having this issue.  The workaround isn't hard, but it's
> > > annoying and I would rather not do it for every release.
>
> > > Thanks,
>
> > > g
>
> > > On Feb 26, 10:49 am, Will  wrote:
>
> > > > Not sure who is reposponsible for the jars deployed to maven, but I am
> > > > having issues with the versions deployed there.
>
> > > > The1.6.0 and1.6.1 versions of gwt-dev and gwt-user jars contain the
> > > > source code for thejavax.servletpackage.  The problem is the source
> > > > code has a newer timestamp than the class files. This causes the
> > > >javax.servletclasses to be recompiled and placed in our target.
>
> > > > Can someone fix the deployed jars to either 1) include class files
> > > > having a later timestamp or 2) contain nojavaxsource code.
>
> > > > Not sure of the source code is required, the jars for version 1.5.3
> > > > didn't include anyjavax.servletsources. I'm leaning toward option 2
> > > > since the classpath could contain externaljavax.servletclasses with
> > > > older timestamp than sources bundled in gwt jars.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Wrong order of elements in generated web.xml (GWT 1.6.4)

2009-04-24 Thread stsch

Could it be that the web.xml generated by the webAppCreator-script
(GWT 1.6.4) contains its elements in a wrong order? It contains the
following elements in the following order:

-
-
-

This order of the elements is not accpted by several tools and
application servers when you deploy the file along with your web-
application; the following order is expected:

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



Re: how ho "handle" handlers

2009-04-24 Thread romant

That's what I was thinking about. Thanks for the example.

Cheerio,
Roman



On 24 Dub, 09:28, Vitali Lovich  wrote:
> Well, for one, you could just style it like:
>
> http://www.webappers.com/2007/06/18/simple-round-css-buttons-wii-butt... A
> more generic approach would be to maintain state in your composite.  You're
> probably  going to need click handlers for the style changes (assuming you
> go with a more complicated example).
>
> So something like:
>
> class MyComposite extends Composite implements HasClickHandler {
>   class MyCompositeHandler implements ClickHandler {
>       void addDelegatedClickHandler(ClickHandler h) {
>               // add h to some set or list
>       }
>
>      void removeDelegatedClickHandler(ClickHandler h) {
>      }
>
>      public void onClick(ClickEvent evt) {
>           // handle MyComposite behaviour
>          for (ClickHandler delegated : toDelegate) {
>                   delegated.onClick(evt);
>          }
>      }
>   }
>
> MyCompositeHandler handler;
>
> public MyComposite() {
>   // initialize foo to your composite
>   initWidget(foo);
>
>   handler = new MyCompositeHandler();
>   button.addClickHandler(handler);
>
> }
>
> public HandlerRegistration addClickHandler(ClickHandler h) {
>     handler.addDelegatedClickHandler(h);
>     // return registration with widget that you are adding too.  maybe wrap
> the result in a handler registration that also removes h from the handler
> when it is unregistered.
>
> }
>
> Hope this gives you some ideas (I'm not saying this is the correct or best
> way).  Just one possible solution.
>
> On Fri, Apr 24, 2009 at 2:39 AM, romant  wrote:
>
> > Yes, setEnabled() is the thing which can do the job for a standard gwt
> > button. But consider the situation when you want to implement your own
> > button (with rounded corners let's say) named RButton. You implement
> > it as a new widget which extends Composite class and implements
> > ClickHandler interface to get mouse clicks, but here the method
> > setEnabled() is not available. So how to implement the setEnabled()
> > method in this case? Do you suggest to store the ClickHandler in the
> > RButton class itself and remove it in its setEnabled() method, or is
> > there any better way?
>
> > On 24 Dub, 06:59, Vitali Lovich  wrote:
> > > In general I think you should keep it with the class that does needs to
> > > remove the handler.  I hope you know about setEnabled/setDisabled -
> > that's
> > > the proper way to disable a buttons functionality, not to remove the
> > > handler.  In general, I have only encountered 1 situation where I would
> > be
> > > interested in removing a handler - more often than not, you will be
> > > adding/removing the widget itself which should take care off removing the
> > > handlers to free up memory.
>
> > > On Thu, Apr 23, 2009 at 10:50 AM, romant  wrote:
>
> > > > Hi guys,
> > > > with GWT 1.6 there is the new handler-based approach for managing
> > > > events.
> > > > When I register, let's say, a button handler
>
> > > > HandlerRegistration buttonRegistration = button.addClickHandler(new
> > > > ClickHandler() {...do something...});
>
> > > > I get an instance of HandlerRegistration. Then, if I want to remove
> > > > the button's handler, let's say for a while just to make the button
> > > > functionality temporarily unavailable, I just call
>
> > > > buttonRegistration.removeHandler();
>
> > > > But now the point is where to store the buttonHandler instance. With
> > > > listeners it was easy, you just called button.removeClickListener()
> > > > because the button kept the listener.
>
> > > > If I have a large project with many buttons what is the best approach
> > > > for storing and handling the HandlerRegistration instances of my
> > > > buttons and other widgets? Is there any recommended design pattern?
> > > > This can make a real mess in my application if I do not find some
> > > > general solution of this.
>
> > > > Thanks.
> > > > Roman- Skrýt citovaný text -
>
> > > - Zobrazit citovaný text -
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Insert Element into DOM and receive click events?

2009-04-24 Thread Vitali Lovich
Or just put a simple panel.  Then set the widget of the simple panel to
whatever you want.  That's actually a great approach alex.  Does that work
Ben?

On Fri, Apr 24, 2009 at 3:40 AM, alex.d wrote:

>
> What about making your treeitem-widget an absolutPanel for example,
> put both - your lable and button in it along with a small switch-
> function to make only one of the visible at a time. This may cause
> some perfomance problems but when it's not that much of three items we
> are speaking about, you man not even notice it.
>
> On 24 Apr., 08:48, Ben FS  wrote:
> > > In my existing code, most of my TreeItem content is HTML, so it should
> > > be possible for me to "clone/copy" just the content as a String,
> > > squirrel it away and, after editing, return the node to its normal
> > > state by inserting a newly instantiated HTML object. I'll try this and
> > > see if I can get it to work - but it precludes me from using anything
> > > other than text or HTML in each node.
> >
> > I am now restricting myself to only store textual / markup in each
> > tree node, which makes this workaround possible and gets my code back
> > to a working state with GWT 1.6. It's not ideal, and there are some
> > styling issues, but I'll make do with this for now.
> >
> > > > You could also try appending the button the
> > > > way you've been doing before, but it'll take some tinkering around to
> get it
> > > > hooked up properly and have the click event reach the handler.
> >
> > I'm still interested in how to do this, when you have time to give me
> > some pointers.
> >
> > Do you know whether the "FastTree", as referenced in the issue
> > comments, would work better for what I'm trying to do?
> >
> > Thank you,
> > Ben.
> >
> > > I've done a lot of tinkering already, without success. My tree has a
> > > SelectionHandler, and that seems to keep the ClickHandler from
> > > executing when the Button's Element is appended to the DOM directly. I
> > > read the memory leak / cycle / event listener article, and I tried
> > > adding a call to sinkEvent(Event.ONCLICK), but it didn't work. I'm
> > > basically poking around in the dark ... if you can think of a
> > > workaround, I'd like to try it. I think the relevant conditions are: a
> > > Tree with SelectionHandler, OpenHandler, CloseHandler and onSelection
> > > () should dynamically append a Button with a ClickHandler next to the
> > > TreeItem content (similarly, onSelection() should first remove this
> > > Button from any previously selected nodes).
> >
> > > > If keeping
> > > > clones around proves to be a problem (for example, having to do this
> for
> > > > more than a couple of widgets), let me know and we can dig in deeper
> on the
> > > > manual DOM.appendChild() workaround until Issue #2297 gets a fix.
> >
> > > > Hope that helps,
> > > > -Sumit Chandel
> >
> > > Thanks, you've definitely been a great help.
> >
> > > > On Thu, Apr 23, 2009 at 1:12 PM, Ben FS  wrote:
> >
> > > > > Hi Sumit,
> >
> > > > > > Is there any reason why you couldn't just call
> treeItem.setWidget(b) ?
> > > > > Yes. See issue #2297 that I submitted one year ago.
> > > > > "TreeItem.setWidget deletes state/content of the widget that is
> > > > > replaced "
> > > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=2297
> >
> > > > > In short, when you call TreeItem.setWidget, it deletes the content/
> > > > > state in the DOM of the existing widget. For widgets that only
> store
> > > > > their state in the DOM (such as the Label), this is bad
> > > > > news.
> >
> > > > > By default, when you supply text data to the Tree, it renders this
> > > > > text in each TreeItem as a Label. I want to dynamically modify an
> > > > > individual node (make it editable), and after editing or when a
> > > > > different node is selected, return the node to the original state.
> > > > > Let's say I do this:
> >
> > > > > Widget normal = treeItem.getWidget();  // save this for later
> > > > > treeItem.setWidget(someEditor);
> > > > > // do some editing, then later in another event handler
> > > > > treeItem.setWidget(normal);
> >
> > > > > The debugger will show that, as soon as setWidget executes, the
> text
> > > > > of the original Widget, in variable "normal", has been erased.
> Refer
> > > > > to the issue I linked above to see the TreeItem source code that
> > > > > causes this effect. Again, it only matters for Widgets that store
> > > > > their state in the DOM (I don't know which these are, but I know it
> > > > > includes Label).
> >
> > > > > > That should change the tree item to the button widget and also
> properly
> > > > > register
> > > > > > the click handlers on the button so that the handler is fired all
> the way
> > > > > > out.
> > > > > Yes, and this does work. But I want to be able to make the change
> only
> > > > > temporary, and return the node to its original state after some
> time.
> > > > > I want it to be reversible. I tried various approaches in the past,
> > > > >

Packaging error in gwt-user 1.6.4 with javax servlet classes and java files

2009-04-24 Thread cyril.lakech

Hi,

There is an error in GWT 1.6.4 release distribution. Because of a bad
packaging of the product, there are too much files in the jar. The
javax/servlet classes are in the jar and the java files too. And when
you compile you GWT application, these java files are compiled and gwt
put them in the classes package of the output directory. So the javax/
servlet classes are in the war of the project and all the applications
servers embedded this library already.
So we got a wonderfull linkage error at runtime.

This issue was already discussed here =>
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/e0486a1de1f58c06/d22b7bc2d0b63e1e?lnk=raot

And there is an open and fixed issue here :
http://code.google.com/p/google-web-toolkit/issues/detail?id=3439

But this fix was not release.

There is a workaround : remove all the java files from javax/servlet
of the gwt-user.jar and change all the timestamps of the class file to
a very old date (2004)

When this issue will be fixed in the distribution of gwt-user ?

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



Re: Insert Element into DOM and receive click events?

2009-04-24 Thread alex.d

What about making your treeitem-widget an absolutPanel for example,
put both - your lable and button in it along with a small switch-
function to make only one of the visible at a time. This may cause
some perfomance problems but when it's not that much of three items we
are speaking about, you man not even notice it.

On 24 Apr., 08:48, Ben FS  wrote:
> > In my existing code, most of my TreeItem content is HTML, so it should
> > be possible for me to "clone/copy" just the content as a String,
> > squirrel it away and, after editing, return the node to its normal
> > state by inserting a newly instantiated HTML object. I'll try this and
> > see if I can get it to work - but it precludes me from using anything
> > other than text or HTML in each node.
>
> I am now restricting myself to only store textual / markup in each
> tree node, which makes this workaround possible and gets my code back
> to a working state with GWT 1.6. It's not ideal, and there are some
> styling issues, but I'll make do with this for now.
>
> > > You could also try appending the button the
> > > way you've been doing before, but it'll take some tinkering around to get 
> > > it
> > > hooked up properly and have the click event reach the handler.
>
> I'm still interested in how to do this, when you have time to give me
> some pointers.
>
> Do you know whether the "FastTree", as referenced in the issue
> comments, would work better for what I'm trying to do?
>
> Thank you,
> Ben.
>
> > I've done a lot of tinkering already, without success. My tree has a
> > SelectionHandler, and that seems to keep the ClickHandler from
> > executing when the Button's Element is appended to the DOM directly. I
> > read the memory leak / cycle / event listener article, and I tried
> > adding a call to sinkEvent(Event.ONCLICK), but it didn't work. I'm
> > basically poking around in the dark ... if you can think of a
> > workaround, I'd like to try it. I think the relevant conditions are: a
> > Tree with SelectionHandler, OpenHandler, CloseHandler and onSelection
> > () should dynamically append a Button with a ClickHandler next to the
> > TreeItem content (similarly, onSelection() should first remove this
> > Button from any previously selected nodes).
>
> > > If keeping
> > > clones around proves to be a problem (for example, having to do this for
> > > more than a couple of widgets), let me know and we can dig in deeper on 
> > > the
> > > manual DOM.appendChild() workaround until Issue #2297 gets a fix.
>
> > > Hope that helps,
> > > -Sumit Chandel
>
> > Thanks, you've definitely been a great help.
>
> > > On Thu, Apr 23, 2009 at 1:12 PM, Ben FS  wrote:
>
> > > > Hi Sumit,
>
> > > > > Is there any reason why you couldn't just call treeItem.setWidget(b) ?
> > > > Yes. See issue #2297 that I submitted one year ago.
> > > > "TreeItem.setWidget deletes state/content of the widget that is
> > > > replaced "
> > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=2297
>
> > > > In short, when you call TreeItem.setWidget, it deletes the content/
> > > > state in the DOM of the existing widget. For widgets that only store
> > > > their state in the DOM (such as the Label), this is bad
> > > > news.
>
> > > > By default, when you supply text data to the Tree, it renders this
> > > > text in each TreeItem as a Label. I want to dynamically modify an
> > > > individual node (make it editable), and after editing or when a
> > > > different node is selected, return the node to the original state.
> > > > Let's say I do this:
>
> > > > Widget normal = treeItem.getWidget();  // save this for later
> > > > treeItem.setWidget(someEditor);
> > > > // do some editing, then later in another event handler
> > > > treeItem.setWidget(normal);
>
> > > > The debugger will show that, as soon as setWidget executes, the text
> > > > of the original Widget, in variable "normal", has been erased. Refer
> > > > to the issue I linked above to see the TreeItem source code that
> > > > causes this effect. Again, it only matters for Widgets that store
> > > > their state in the DOM (I don't know which these are, but I know it
> > > > includes Label).
>
> > > > > That should change the tree item to the button widget and also 
> > > > > properly
> > > > register
> > > > > the click handlers on the button so that the handler is fired all the 
> > > > > way
> > > > > out.
> > > > Yes, and this does work. But I want to be able to make the change only
> > > > temporary, and return the node to its original state after some time.
> > > > I want it to be reversible. I tried various approaches in the past,
> > > > and finally got one to work (i.e. appending a Button next to the
> > > > existing Widget, but since TreeItem does not have an "append" method,
> > > > I directly manipulate the DOM to achieve this effect in a reversable
> > > > manner). This approach no longer works in GWT 1.6 - the Button event
> > > > handlers no longer run.
>
> > > > Can you suggest a better approach, pl

Re: Insert Element into DOM and receive click events?

2009-04-24 Thread Vitali Lovich
As a workaround, would removing the TreeItem from the parent tree itself
work?  It's not a general solution since you'd have to append it to the end
of the tree (Tree doesn't appear to support insertion of children into
arbitrary positions) to get it back, but it's what the example you gave in
the issue does, so maybe it's OK for you?

On Fri, Apr 24, 2009 at 2:48 AM, Ben FS  wrote:

>
> > In my existing code, most of my TreeItem content is HTML, so it should
> > be possible for me to "clone/copy" just the content as a String,
> > squirrel it away and, after editing, return the node to its normal
> > state by inserting a newly instantiated HTML object. I'll try this and
> > see if I can get it to work - but it precludes me from using anything
> > other than text or HTML in each node.
> I am now restricting myself to only store textual / markup in each
> tree node, which makes this workaround possible and gets my code back
> to a working state with GWT 1.6. It's not ideal, and there are some
> styling issues, but I'll make do with this for now.
>
> > > You could also try appending the button the
> > > way you've been doing before, but it'll take some tinkering around to
> get it
> > > hooked up properly and have the click event reach the handler.
> I'm still interested in how to do this, when you have time to give me
> some pointers.
>
> Do you know whether the "FastTree", as referenced in the issue
> comments, would work better for what I'm trying to do?
>
> Thank you,
> Ben.
>
>
> > I've done a lot of tinkering already, without success. My tree has a
> > SelectionHandler, and that seems to keep the ClickHandler from
> > executing when the Button's Element is appended to the DOM directly. I
> > read the memory leak / cycle / event listener article, and I tried
> > adding a call to sinkEvent(Event.ONCLICK), but it didn't work. I'm
> > basically poking around in the dark ... if you can think of a
> > workaround, I'd like to try it. I think the relevant conditions are: a
> > Tree with SelectionHandler, OpenHandler, CloseHandler and onSelection
> > () should dynamically append a Button with a ClickHandler next to the
> > TreeItem content (similarly, onSelection() should first remove this
> > Button from any previously selected nodes).
> >
> > > If keeping
> > > clones around proves to be a problem (for example, having to do this
> for
> > > more than a couple of widgets), let me know and we can dig in deeper on
> the
> > > manual DOM.appendChild() workaround until Issue #2297 gets a fix.
> >
> > > Hope that helps,
> > > -Sumit Chandel
> >
> > Thanks, you've definitely been a great help.
> >
> >
> >
> >
> >
> > > On Thu, Apr 23, 2009 at 1:12 PM, Ben FS  wrote:
> >
> > > > Hi Sumit,
> >
> > > > > Is there any reason why you couldn't just call
> treeItem.setWidget(b) ?
> > > > Yes. See issue #2297 that I submitted one year ago.
> > > > "TreeItem.setWidget deletes state/content of the widget that is
> > > > replaced "
> > > >http://code.google.com/p/google-web-toolkit/issues/detail?id=2297
> >
> > > > In short, when you call TreeItem.setWidget, it deletes the content/
> > > > state in the DOM of the existing widget. For widgets that only store
> > > > their state in the DOM (such as the Label), this is bad
> > > > news.
> >
> > > > By default, when you supply text data to the Tree, it renders this
> > > > text in each TreeItem as a Label. I want to dynamically modify an
> > > > individual node (make it editable), and after editing or when a
> > > > different node is selected, return the node to the original state.
> > > > Let's say I do this:
> >
> > > > Widget normal = treeItem.getWidget();  // save this for later
> > > > treeItem.setWidget(someEditor);
> > > > // do some editing, then later in another event handler
> > > > treeItem.setWidget(normal);
> >
> > > > The debugger will show that, as soon as setWidget executes, the text
> > > > of the original Widget, in variable "normal", has been erased. Refer
> > > > to the issue I linked above to see the TreeItem source code that
> > > > causes this effect. Again, it only matters for Widgets that store
> > > > their state in the DOM (I don't know which these are, but I know it
> > > > includes Label).
> >
> > > > > That should change the tree item to the button widget and also
> properly
> > > > register
> > > > > the click handlers on the button so that the handler is fired all
> the way
> > > > > out.
> > > > Yes, and this does work. But I want to be able to make the change
> only
> > > > temporary, and return the node to its original state after some time.
> > > > I want it to be reversible. I tried various approaches in the past,
> > > > and finally got one to work (i.e. appending a Button next to the
> > > > existing Widget, but since TreeItem does not have an "append" method,
> > > > I directly manipulate the DOM to achieve this effect in a reversable
> > > > manner). This approach no longer works in GWT 1.6 - the Button event
> > > > handlers no longer run.

Re: how ho "handle" handlers

2009-04-24 Thread Vitali Lovich
Well, for one, you could just style it like:

http://www.webappers.com/2007/06/18/simple-round-css-buttons-wii-buttons/  A
more generic approach would be to maintain state in your composite.  You're
probably  going to need click handlers for the style changes (assuming you
go with a more complicated example).

So something like:

class MyComposite extends Composite implements HasClickHandler {
  class MyCompositeHandler implements ClickHandler {
  void addDelegatedClickHandler(ClickHandler h) {
  // add h to some set or list
  }

 void removeDelegatedClickHandler(ClickHandler h) {
 }

 public void onClick(ClickEvent evt) {
  // handle MyComposite behaviour
 for (ClickHandler delegated : toDelegate) {
  delegated.onClick(evt);
 }
 }
  }

MyCompositeHandler handler;

public MyComposite() {
  // initialize foo to your composite
  initWidget(foo);

  handler = new MyCompositeHandler();
  button.addClickHandler(handler);
}

public HandlerRegistration addClickHandler(ClickHandler h) {
handler.addDelegatedClickHandler(h);
// return registration with widget that you are adding too.  maybe wrap
the result in a handler registration that also removes h from the handler
when it is unregistered.
}

Hope this gives you some ideas (I'm not saying this is the correct or best
way).  Just one possible solution.

On Fri, Apr 24, 2009 at 2:39 AM, romant  wrote:

>
> Yes, setEnabled() is the thing which can do the job for a standard gwt
> button. But consider the situation when you want to implement your own
> button (with rounded corners let's say) named RButton. You implement
> it as a new widget which extends Composite class and implements
> ClickHandler interface to get mouse clicks, but here the method
> setEnabled() is not available. So how to implement the setEnabled()
> method in this case? Do you suggest to store the ClickHandler in the
> RButton class itself and remove it in its setEnabled() method, or is
> there any better way?
>
>
>
>
>
>
> On 24 Dub, 06:59, Vitali Lovich  wrote:
> > In general I think you should keep it with the class that does needs to
> > remove the handler.  I hope you know about setEnabled/setDisabled -
> that's
> > the proper way to disable a buttons functionality, not to remove the
> > handler.  In general, I have only encountered 1 situation where I would
> be
> > interested in removing a handler - more often than not, you will be
> > adding/removing the widget itself which should take care off removing the
> > handlers to free up memory.
> >
> >
> >
> > On Thu, Apr 23, 2009 at 10:50 AM, romant  wrote:
> >
> > > Hi guys,
> > > with GWT 1.6 there is the new handler-based approach for managing
> > > events.
> > > When I register, let's say, a button handler
> >
> > > HandlerRegistration buttonRegistration = button.addClickHandler(new
> > > ClickHandler() {...do something...});
> >
> > > I get an instance of HandlerRegistration. Then, if I want to remove
> > > the button's handler, let's say for a while just to make the button
> > > functionality temporarily unavailable, I just call
> >
> > > buttonRegistration.removeHandler();
> >
> > > But now the point is where to store the buttonHandler instance. With
> > > listeners it was easy, you just called button.removeClickListener()
> > > because the button kept the listener.
> >
> > > If I have a large project with many buttons what is the best approach
> > > for storing and handling the HandlerRegistration instances of my
> > > buttons and other widgets? Is there any recommended design pattern?
> > > This can make a real mess in my application if I do not find some
> > > general solution of this.
> >
> > > Thanks.
> > > Roman- Skrýt citovaný text -
> >
> > - Zobrazit citovaný text -
> >
>

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