Re: Please help!Compile error

2009-04-13 Thread Yang Lei


I had try, but the problem still happened...


On 4月14日, 下午1时27分, Vitali Lovich  wrote:
> Using java 6 seems to solve the problem for people.
>
>
>
> On Tue, Apr 14, 2009 at 12:41 AM, Yang Lei  wrote:
>
> > Wha't the problem? How can I resolve?
>
> > The error information as following:
> > Compiling module com.everdisk.rms.web.explorer.Explorer
> >   [ERROR] Unexpected internal compiler error
> > java.lang.StackOverflowError
> >        at java.lang.ref.ReferenceQueue.poll(ReferenceQueue.java:82)
> >        at java.io.ObjectStreamClass.processQueue(ObjectStreamClass.java:
> > 2234)
> >        at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:266)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1106)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
> > 326)
> >        at java.util.ArrayList.writeObject(ArrayList.java:570)
> >        at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:
> > 945)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1461)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.defaultWriteFields
> > (ObjectOutputStream.java:1509)
> >        at
> > java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:
> > 1474)
> >        at java.io.ObjectOutputStream.writeOrdinaryObject
> > (ObjectOutputStream.java:1392)
> >        at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:
> > 1150)
> >        at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:
> > 326)
> >        at java.util.ArrayList.writeObject(ArrayList.java:570)
> >        at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
> >        at sun.reflect.DelegatingMethodAccessorImpl.invoke
> > (DelegatingMethodAccessorImpl.java:25)
> >        at java.lang.reflect.Method.invoke(Method.java:597)
> >        at
> > java.io.ObjectStreamClass.invokeWriteObject(ObjectS

Re: Open a local file with GWT

2009-04-13 Thread Arun

HI,

i am new to GWT, I have similar query. I want to open a file which is
place somewhere in server file system (i.e. a directory on server
contains some directory and files in it). I have to represent it in
tree structure and display the file on click of leaf Node.

I am paused at opening a file on click event. I want to open it in a
widget ( every time a new leaf node click on tree a file would be
opened opened in same window/widget replacing the old one).

could any one tell me what approach i should follow?

any link or suggestions are appreciated.

thanks in advance.

--arun.

On Apr 11, 12:54 am, ffs1985  wrote:
> I tried adding a button when the callback success and on click event
> of that button, call to window.open(path,"_blank",""). this didn't
> work, I think that the thing is that the browser doesn't know how toopenthat 
> path. The thing I don't understand is why if Iopena new
> tab on firefox or I Explorer or Chrome wirks without a problem.
>
> Maybe another solution is not to call a rpc to download thefileand
> instead of that make something like an old servlet that make a call to
> download browser. I've trying this thing works since a lot of time and
> I still didn't find a solution.
>
> I hope someone could help me with this,
>
> Thanks,
> Federico
>
> On Apr 7, 10:13 am, Jason Essington  wrote:
>
> > O.K.
>
> > 1) what is pdfLink? is that supposed to be link?
> > 2) if you have any kind of Popup blocker, attempting toopena window  
> > from the callback will fail. if you want toopena window, it has to  
> > happen as a direct result of a user action (onClick, etc)
> > 3) if link is a path to a filesystemfileare you sure it is correct?  
> > (this is sneaky, but just might work)
>
> > 4) Technically not causing a problem but, use generics.
>
> > AsyncCallback cb = new AsyncCallback{
> >    public void onSuccess(String result) ...
>
> > }
>
> > -jason
>
> > On Apr 7, 2009, at 5:04 AM,ffs1985wrote:
>
> > > Hi I'm trying to make a function that let the user download afile
> > > from my application and see it. I could copy thefilefrom server to a
> > > local root but when I've tried toopenit, does it work on hosted mode
> > > but in web mode fails always, no matter what browser I try(IE 7,
> > > Firefox and Chrome).
> > > My code is the next one:
>
> > > private void openDocument(String documentName) {
> > >            final ManagerExportAsync manejador = 
> > > ManagerExport.Util.getInstance
> > > ();
> > >            AsyncCallback callback = new AsyncCallback(){
> > >                    String link;
> > >                    public void onSuccess(final Object result) {
> > >                              link = (String)result;
> > >                              Window.open(pdfLink,"_blank","");
> > >                    }
> > >                    public void onFailure(Throwable caught){}
> > >                    };
>
> > >            manejador.openDocument("User",userId, documentName,callback);
> > >    }
>
> > > The String link result is something like this "file///:C:/test.jpg"
> > > I don't know what it's wrong. I read somewhere that the problem could
> > > be that I'm calling the Window.openinside the callback but I really
> > > don't know what is wrong coul someone give me a hand?
>
> > > Any suggestions?
> > > Thanks!
> > > Federico.
--~--~-~--~~~---~--~~
You received 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] file open in widget

2009-04-13 Thread Vitali Lovich
Local file would obviously be impossible.  You can use requestbuilder to
fetch remote files.

On Tue, Apr 14, 2009 at 2:12 AM, Arun  wrote:

>
> Hi,
>
> I would like to open a file in GWT widget. i.e. Open a file(html/txt)
> on click of button/link/tree node.
>
> Which widget i should use and what approach i should follow?
>
> Thank in advance.
>
> Arun.
> >
>

--~--~-~--~~~---~--~~
You received 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] file open in widget

2009-04-13 Thread Arun

Hi,

I would like to open a file in GWT widget. i.e. Open a file(html/txt)
on click of button/link/tree node.

Which widget i should use and what approach i should follow?

Thank in advance.

Arun.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Mouse ScollKey Click event

2009-04-13 Thread Allahbaksh

Hi,
I want capture teh MouseScroll Key click event. What exactly it is
called. We MouseWheel Scroll click to close the Tab in eclipse or in
the browser. I want to have similar functionality.

What I am trying is in TabPanel add HTML widget for Tab Text and add
MouseWheel Click listner so that we can have eclipse or Mozilla like
TabClose method.

Regards,
Allahbaksh Mohammdali Asadullah

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



Re: Tab Remove Listner

2009-04-13 Thread Allahbaksh Asadullah

Thanks I will try out this.
Regards,
Allahbaksh

On Apr 13, 10:24 pm, Salvador Diaz  wrote:
> TabPanel doesn't raise any TabRemove event (if you look at the javadoc
> athttp://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/g...
> you'll see what events it does raise).
>
> You can extend the standard TabPanel, create the TabRemove event and
> raise it when a tab is removed if you want (override the remove
> methods to do this). I suggest you look at the source code of TabPanel
> to see examples of how an event is raised.
>
> Cheers,
>
> Salvador
>
> On Apr 13, 3:22 pm, Ian Bambury  wrote:
>
> > If you are removing the tab programmatically, can't you just call the
> > routine?
> > Ian
>
> >http://examples.roughian.com
>
> > 2009/4/13 Allahbaksh 
>
> > > Hi All,
> > > How do you add a listner for Tab Remove event. I will remove the Tab
> > > programmatically and want some events to be fired after that.
>
> > > Regards,
> > > Allahbaksh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Designer-> Engineer workflow with GWT

2009-04-13 Thread Lux

So far we have used JSP ad HTML pages for laying out the web page.

First we agree on the basic layout - i.e what data is displayed on a
page, which UI control goes where etc.
Then the java developer would create the server side java code and the
jsp page with the basic controls laid out.
Then we would put the files into SCM and the web designer would add in
their updates.

Now with GWT, we are building a charting wizard as a widget. The
widget is going to be placed in one div tag in a jsp file.
So we cannot follow the method we have following for so long.

One thing that I can think of is : The web deisgner could create a
parallel Mock HTML UI using dreamweaver or so and apply the css styles
to that
And the Java developers could pick the mock up from the SCM and find
the parallels in the code and apply the styles.

I was wondering how other people handle this issue.

On Apr 13, 8:10 pm, Jeff Chimene  wrote:
> On 04/13/2009 04:36 PM, lp wrote:
>
> > We have recently started using GWT to develop a few complex widgets.
>
> > The people who are working on those projectrs are very good Java
> > developers, however they lack css skills.
> > We usually have an in-house web designer take care of the css styling
> > for our products.
>
> > With GWT, I am not sure how to bring about the co-ordination in
> > workflow between the designer and the developer.
> > I was wondering is there is a tried and tested workflow that is being
> > followed in the GWT community
> > to help solve this problem
>
> "Workflow" is a fairly ambiguous term. You'll have to decide how to
> integrate GWT into the work product of your design team. It might be
> hooking onto a series of static pages, or dynamically generating pages
> according to the design rules. GWT is flexible enough to handle a
> variety of implementation environments.
>
> Consider putting the shared files into a source code manager (SCM). GWT
> 1.6 has good support for Ant; which can interact w/ a SCM to pull
> updates from the SCM as they arrive from the design group. There is also
> GWT/Maven expertise floating around this list, so that may also be a
> good fit for your project.
>
> You'll have to describe a bit more of your web design process if you're
> looking to ensure that the design team has sufficient influence over the
> Java development. For example, is there a story board? Does the design
> team create the site look and feel sui generis via a tool like Dreamweaver?

--~--~-~--~~~---~--~~
You received 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, JSP's wont compile.

2009-04-13 Thread Ken

I'm having the same exact problem.
I've tried it on both Mac OS X and Windows.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Put GWT 1.6 Application Online

2009-04-13 Thread barclayal...@gmail.com

How do I put my GWT 1.6 web app online, hosting with my own computer?
I think I'm missing an important keyword.  With Wampserver it was
easy,  I just right click on the icon and select "Put online", point
my browser to http//myip/.

I know of Apache HTTP Server  using Wampp/Xampp.  Is Tomcat  and Jetty
the same? If so where can I go to set these configurations.  I
installed  GWT 1.6 Eclipse plugin.

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: GWT 1.6, JSP's wont compile.

2009-04-13 Thread Ken

I'm having the same exact problem.  I've tried it on both Mac OS X and
Windows.  I'm using Eclipse if that means anything.
--~--~-~--~~~---~--~~
You received 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, JSP's wont compile.

2009-04-13 Thread Ken

I'm having the same exact problem.  I've tried it on both Mac OSX and
Windows.  I'm using Eclipse if that means anything.
--~--~-~--~~~---~--~~
You received 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, JSP's wont compile.

2009-04-13 Thread Ken

I'm having the same exact problem.  I've tried it on both Mac OSX and
Windows.

On Apr 13, 6:46 pm, Adrian  wrote:
> Hi Everyone,
>
> I'm sure that this will be something stupid that I'm missing but I've
> found I cannot get JSP's to compile in hosted mode if they include any
> Java 1.5+ stuff, like generics or for each loops.
>
> For example I'm using the latest Eclipse with the new GWT plugin, if I
> create a new GWT project then add a jsp that has code using generics I
> get this error when I load the jsp:
>
> 2. ERROR in /tmp/Jetty_0_0_0_0_8080_warut4fm1/jsp/org/apache/jsp/
> test_jsp.java (at line 53)
>         new java.util.ArrayList();
>                                 ^^
> Syntax error, parameterized types are only available if source level
> is 1.5
>
> You can see the entire output at:http://pastebin.com/m7f0cd05a
>
> I can't seem to find anyone else having this problem so any advice
> would be great.
>
> Thanks,
> Adrian
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



newbie hosted mode and the application html file question

2009-04-13 Thread Joe Hudson

Hi,

I actually have 2 questions and I'm quite sure I'm just missing
something stupid...

1) When I run in hosted mode (I am using maven gwt to start hosted
mode so maybe this is the issue) the google browser goes to the
hosted.html.  So, if I have a pre-defined layout in my App.html that
is not used.  Is there any way around this?

2) I tried setting a background image on a canvas and I get an error
in the shell console that states:
[ERROR] Unable to find 'images.gwt.xml' on your classpath;
could be a typo, or maybe you forgot to include a classpath entry for
source?

Is there something I can do to allow certain directories to bypass the
whole google application check part?  Thank you very much.

Joe
--~--~-~--~~~---~--~~
You received 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: I just realized that dependency injection is possible with GWT

2009-04-13 Thread Arthur Kalmenson

Why not use Google GIN for your dependency injection needs:
http://code.google.com/p/google-gin/. It's a Guice implementation on
the client side. We're using it on a large project and it's working
out really well.

You can also use GWTMockUtilities.disarm(); to mock out GWT widgets.

--
Arthur Kalmenson



On Fri, Apr 10, 2009 at 11:52 AM, Yves  wrote:
>
> Hello
>
> Reading the documentation for the module xml files, i just realize
> that the tag  allows for dependency injection.
>
> Suppose i need to use different class implementation depending on my
> environment (real class for production, mock for development ...). I
> just have to have two (or more) module xml like this
>
> For production use file FooProd.gwt.xml
>
> 
>  
>    
>  
>  ...
>
> For development use file FooDev.gwt.xml
>
> 
>  
>    
>  
>  ...
>
> Am i wrong?
>
> Regards
>
> >
>

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



Re: Designer-> Engineer workflow with GWT

2009-04-13 Thread Jeff Chimene

On 04/13/2009 04:36 PM, lp wrote:
> We have recently started using GWT to develop a few complex widgets.
>
> The people who are working on those projectrs are very good Java
> developers, however they lack css skills.
> We usually have an in-house web designer take care of the css styling
> for our products.
>
> With GWT, I am not sure how to bring about the co-ordination in
> workflow between the designer and the developer.
> I was wondering is there is a tried and tested workflow that is being
> followed in the GWT community
> to help solve this problem
>

"Workflow" is a fairly ambiguous term. You'll have to decide how to 
integrate GWT into the work product of your design team. It might be 
hooking onto a series of static pages, or dynamically generating pages 
according to the design rules. GWT is flexible enough to handle a 
variety of implementation environments.

Consider putting the shared files into a source code manager (SCM). GWT 
1.6 has good support for Ant; which can interact w/ a SCM to pull 
updates from the SCM as they arrive from the design group. There is also 
GWT/Maven expertise floating around this list, so that may also be a 
good fit for your project.

You'll have to describe a bit more of your web design process if you're 
looking to ensure that the design team has sufficient influence over the 
Java development. For example, is there a story board? Does the design 
team create the site look and feel sui generis via a tool like Dreamweaver?

--~--~-~--~~~---~--~~
You received 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: IncompatibleClassChangeError when launching hosted mode (GWT 1.6 M2)

2009-04-13 Thread grishag

Thanks for that. You were right on the money. I had a Selenium jar on
the classpath that was causing this problem.

On Apr 10, 11:48 am, jvictor  wrote:
> If using Eclipse, try moving the GWT jars (or the GWT SDK library if
> you are using the new Eclipse plugin) to the top of your classpath
> order.
>
> Right Click Project -> Properties -> Java Build Path -> Order and
> Export
>
> On Mar 27, 5:42 pm,grishag wrote:
>
> > Hi,
>
> > I started using GWT 1.6.1 M2 recently and things were going quite
> > smoothly until I tried using hosted mode (with -noserver option). I am
> > now getting the following exception. Does anyone know what this
> > actually means? As far as I can tell, HashSessionManager does
> > implemented SessionManager interface (that is indirectly by extending
> > the AbstractSessionManager class).
>
> > Thanks.
>
> > [java] Exception in thread "main"
> > java.lang.IncompatibleClassChangeError: Class
> > org.mortbay.jetty.servlet.HashSessionManager does not implement the
> > requested interface org.mortbay.jetty.SessionManager
> >      [java]     at
> > org.mortbay.jetty.servlet.SessionHandler.setSessionManager
> > (SessionHandler.java:88)
> >      [java]     at org.mortbay.jetty.servlet.SessionHandler.
> > (SessionHandler.java:62)
> >      [java]     at org.mortbay.jetty.servlet.SessionHandler.
> > (SessionHandler.java:53)
> >      [java]     at org.mortbay.jetty.webapp.WebAppContext.
> > (WebAppContext.java:297)
> >      [java]     at com.google.gwt.dev.ServletValidator.create
> > (ServletValidator.java:59)
> >      [java]     at com.google.gwt.dev.ServletValidator.create
> > (ServletValidator.java:43)
> >      [java]     at com.google.gwt.dev.HostedMode.doStartup
> > (HostedMode.java:344)
> >      [java]     at com.google.gwt.dev.HostedModeBase.startUp
> > (HostedModeBase.java:583)
> >      [java]     at com.google.gwt.dev.HostedModeBase.run
> > (HostedModeBase.java:395)
> >      [java]     at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
--~--~-~--~~~---~--~~
You received 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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread Jeff Chimene

On 04/13/2009 02:48 PM, pohl wrote:
> Thank you for your responses.   I see that the build-gwt.xml ANT
> script in my GWT4NB-based project does have a "-noserver" argument in
> the block that invokes GWTShell, so at least one compile step is
> necessary, as per Jeff's observation, to copy those resources to the
> server.
>
> I'm still at a loss in my attempt to understand exactly what
> conditions are necessary to get this much-promised "fast turnaround"
> in hosted mode.   If I stop the debugger and debug my project again
> (even if I make absolutely no changes to the source code) the
> GWTCompiler runs again.   Is this a failing in Netbeans and/or GWT4NB?
>
> Or is my only avenue to try to get the debugger to hot-fix the code
> using the "Apply Code Changes" button (in the Netbeans debugger) and
> then clicking the "refresh" button in hosted mode?
>
> The reason that I ask this last question is that, even if I make a
> trivial change like just changing some text that appears in my
> interface, I get an exception when I click "Apply Code Changes".  (In
> the example below, I merely changed a label on my login panel from
> "Username" to "Usern4me" so that I could visually see that the hotfix
> was applied):
>
> init:
> deps-jar:
> Compiling 1 source file to /Users/pohl/Source/CP/trunk/CPLib/build/
> classes
> Note: /Users/pohl/Source/CP/trunk/CPLib/src/net/nanonation/ui/client/
> widget/LoginPanel.java uses or overrides a deprecated API.
> Note: Recompile with -Xlint:deprecation for details.
> compile-single:
> Classes to be reloaded:
>   net.nanonation.ui.client.widget.LoginPanel$1
>   net.nanonation.ui.client.widget.LoginPanel$2
>   net.nanonation.ui.client.widget.LoginPanel$3
>   net.nanonation.ui.client.widget.LoginPanel$4
>   net.nanonation.ui.client.widget.LoginPanel$5
>   net.nanonation.ui.client.widget.LoginPanel
> The virtual machine does not support this operation: delete method not
> implemented
> /Users/pohl/Source/CP/trunk/CPLib/nbproject/build-impl.xml:475: The
> following error occurred while executing this line:
> /Users/pohl/Source/CP/trunk/CPLib/nbproject/build-impl.xml:237: The
> virtual machine does not support this operation: delete method not
> implemented
> BUILD FAILED (total time: 0 seconds)
>

I don't remember NetBeans well enough to comment on how it interacts w/ 
hosted mode.

Also, remember that GWT does not implement the entire JRE. From the 
looks of the above error, you might be hitting that limitation, i.e. 
"delete method not implemented", 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
-~--~~~~--~~--~--~---



Designer-> Engineer workflow with GWT

2009-04-13 Thread lp

We have recently started using GWT to develop a few complex widgets.

The people who are working on those projectrs are very good Java
developers, however they lack css skills.
We usually have an in-house web designer take care of the css styling
for our products.

With GWT, I am not sure how to bring about the co-ordination in
workflow between the designer and the developer.
I was wondering is there is a tried and tested workflow that is being
followed in the GWT community
to help solve this problem

Thanks
lp

--~--~-~--~~~---~--~~
You received 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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread Jeff Chimene

On 04/13/2009 04:00 PM, Vitali Lovich wrote:
>
>
> On Mon, Apr 13, 2009 at 6:38 PM, Jeff Chimene  > wrote:
>
>
> On 04/13/2009 02:48 PM, pohl wrote:
> > Thank you for your responses.   I see that the build-gwt.xml ANT
> > script in my GWT4NB-based project does have a "-noserver"
> argument in
> > the block that invokes GWTShell, so at least one compile step is
> > necessary, as per Jeff's observation, to copy those resources to the
> > server.
> >
> > I'm still at a loss in my attempt to understand exactly what
> > conditions are necessary to get this much-promised "fast turnaround"
> > in hosted mode.   If I stop the debugger and debug my project again
> > (even if I make absolutely no changes to the source code) the
> > GWTCompiler runs again.   Is this a failing in Netbeans and/or
> GWT4NB?
>
> So change the ant script so that it does what you want it to.  I've 
> never gone the noserver route as I've always used the embedded app 
> server (Jetty in 1.6).
>
>
> >
>
> I'm not a GWT expert, but I'm pretty sure that if you exit hosted
> mode,
> whatever dynamic structures are created to communicate w/ your IDE are
> lost. Hence the need to recompile on the next invocation.
>
> In hosted mode, only the Java code needs to be recompiled - no need to 
> run the Javascript compiler (except the 1 time for resources perhaps 
> in noserver mode as was mentioned, although I've never used that mode).

Yeah, that must be the issue. When using noserver mode, it must be that 
the hosted mode server always wants a restart. ISTR that when I first 
started using GWT, hosted mode would "just work" with a press of the 
reload. Now that I'm using noserver almost exclusively, the reload of 
the hosted mode server is SOP.


--~--~-~--~~~---~--~~
You received 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: Why does standard.css override my own css file

2009-04-13 Thread Thomas Broyer



On 14 avr, 00:25, Jaap  wrote:
> Hi, if add a CSS body statement to the CSS file of my project I see
> with Firebug that the browser actually does take the values from
> standard.css and not from my CSS file.
> Can I change this somehow? Is it intentional? Is this a bug?

See
http://groups.google.fr/group/Google-Web-Toolkit/msg/15c54d6c9e88e5f0
and
http://groups.google.fr/group/Google-Web-Toolkit/msg/3e630a3059303b19

It's neither "intentional" nor a bug, it's just the way it works.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why does standard.css override my own css file

2009-04-13 Thread Vitali Lovich
If in Firebug it gives the element style, then that means your style is
being set explicitly in the code & you have to use !important.  Otherwise,
you've got some other problem.

On Mon, Apr 13, 2009 at 6:50 PM, Jeff Chimene  wrote:

>
> On 04/13/2009 03:31 PM, Jaap wrote:
> > On Apr 14, 12:25�am, Jaap  wrote:
> >
> >> Hi, if add a CSS body statement to the CSS file of my project I see
> >> with Firebug that the browser actually does take the values from
> >> standard.css and not from my CSS file.
> >> Can I change this somehow? Is it intentional? Is this a bug?
> >>
> >>
> > I just noticed this as well with setting the font size of buttons. If
> > you create a new GWT 1.6 project in eclipse and in the CSS file you
> > change the following
> >
> > .sendButton {
> >display: block;
> >font-size: 16pt;
> > }
> >
> > to
> >
> > .sendButton {
> >display: block;
> >font-size: 24pt;
> > }
> >
> > The font size does not change because .gwtButton in standard.css sets
> > the font-size.
> >
> > Any help appreciated
> >
>
> OTOH, !important rules shouldn't be necessary. Perhaps there's something
> else wrong here...
>
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread Vitali Lovich
On Mon, Apr 13, 2009 at 6:38 PM, Jeff Chimene  wrote:

>
> On 04/13/2009 02:48 PM, pohl wrote:
> > Thank you for your responses.   I see that the build-gwt.xml ANT
> > script in my GWT4NB-based project does have a "-noserver" argument in
> > the block that invokes GWTShell, so at least one compile step is
> > necessary, as per Jeff's observation, to copy those resources to the
> > server.
> >
> > I'm still at a loss in my attempt to understand exactly what
> > conditions are necessary to get this much-promised "fast turnaround"
> > in hosted mode.   If I stop the debugger and debug my project again
> > (even if I make absolutely no changes to the source code) the
> > GWTCompiler runs again.   Is this a failing in Netbeans and/or GWT4NB?
>
So change the ant script so that it does what you want it to.  I've never
gone the noserver route as I've always used the embedded app server (Jetty
in 1.6).

>
> >
>
> I'm not a GWT expert, but I'm pretty sure that if you exit hosted mode,
> whatever dynamic structures are created to communicate w/ your IDE are
> lost. Hence the need to recompile on the next invocation.

In hosted mode, only the Java code needs to be recompiled - no need to run
the Javascript compiler (except the 1 time for resources perhaps in noserver
mode as was mentioned, although I've never used that mode).

>
> > Or is my only avenue to try to get the debugger to hot-fix the code
> > using the "Apply Code Changes" button (in the Netbeans debugger) and
> > then clicking the "refresh" button in hosted mode?
> >
>
The refresh button is only necessary if you've changed server code &
applying a code change failed (this relaunches your server state, so you'll
want to be careful here that you're server can in fact handle this).

>
> > The reason that I ask this last question is that, even if I make a
> > trivial change like just changing some text that appears in my
> > interface, I get an exception when I click "Apply Code Changes".  (In
> > the example below, I merely changed a label on my login panel from
> > "Username" to "Usern4me" so that I could visually see that the hotfix
> > was applied)
>
I'm not sure if this feature is compatible between Netbeans & GWT.  It is
with Eclipse.

> :
> >
>
> Yeah, I've noticed this too, only I haven't had the impetus to ask it of
> the list. I just assume that the restart is necessary. Maybe some GWT
> pundit knows what we're doing wrong...
>
> Do you know about the  tag? If not, try adding the
> following to your module.gwt.xml file:
> 
>
> using the appropriate browser ID for "value". At least you'll only wait
> for one permutation rather than the (probably) default five. Don't
> forget to remove the tag before compiling for production. I think Vitali
> wrote in some earlier discussion describing how to make this
> set-property a compile-time decision.
>
> >
>

--~--~-~--~~~---~--~~
You received 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: TextArea.setKey() is deprecated: How do I change characters in a TextBox/TextArea on-the-fly now?

2009-04-13 Thread Thomas Broyer



On 13 avr, 05:37, Alexander Orlov  wrote:
> With the setKey(char) method it was possible to change user input in a
> TextArea/TextBox character-wise on-the-fly. Since GWT 1.6 setKey is
> deprecated. What should I use now?
>
> I think of a hack à la:
>
> onKeyPress > getText() and replace the last character according to a
> HashMap > setText(new_Text_With_Replaced_Last_Character)
>
> ...but the performance may be awful with long texts. Is there any
> other way?

Use JSNI to do the equivalent of TextBoxBase.setKey? Or maybe rather
"just" cancelling the event and instead firing a KeyPressEvent at the
event source, with the key you want.

But TextBoxBase.setKey was deprecated for a reason (only worked in IE,
as per the @Deprecated documentation in the JavaDoc), so you should
really find another, better way (I think the cancel + fire another
event is the "blessed" way of doing it now), unless you're only
targetting IE...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Why does standard.css override my own css file

2009-04-13 Thread Jeff Chimene

On 04/13/2009 03:31 PM, Jaap wrote:
> On Apr 14, 12:25�am, Jaap  wrote:
>
>> Hi, if add a CSS body statement to the CSS file of my project I see
>> with Firebug that the browser actually does take the values from
>> standard.css and not from my CSS file.
>> Can I change this somehow? Is it intentional? Is this a bug?
>>
>>  
> I just noticed this as well with setting the font size of buttons. If
> you create a new GWT 1.6 project in eclipse and in the CSS file you
> change the following
>
> .sendButton {
>display: block;
>font-size: 16pt;
> }
>
> to
>
> .sendButton {
>display: block;
>font-size: 24pt;
> }
>
> The font size does not change because .gwtButton in standard.css sets
> the font-size.
>
> Any help appreciated
>

OTOH, !important rules shouldn't be necessary. Perhaps there's something 
else wrong here...

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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, JSP's wont compile.

2009-04-13 Thread Adrian

Hi Everyone,


I'm sure that this will be something stupid that I'm missing but I've
found I cannot get JSP's to compile in hosted mode if they include any
Java 1.5+ stuff, like generics or for each loops.

For example I'm using the latest Eclipse with the new GWT plugin, if I
create a new GWT project then add a jsp that has code using generics I
get this error when I load the jsp:

2. ERROR in /tmp/Jetty_0_0_0_0_8080_warut4fm1/jsp/org/apache/jsp/
test_jsp.java (at line 53)
new java.util.ArrayList();
^^
Syntax error, parameterized types are only available if source level
is 1.5


You can see the entire output at: http://pastebin.com/m7f0cd05a


I can't seem to find anyone else having this problem so any advice
would be great.


Thanks,
Adrian

--~--~-~--~~~---~--~~
You received 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: Why does standard.css override my own css file

2009-04-13 Thread Jeff Chimene

On 04/13/2009 03:31 PM, Jaap wrote:
> On Apr 14, 12:25�am, Jaap  wrote:
>
>> Hi, if add a CSS body statement to the CSS file of my project I see
>> with Firebug that the browser actually does take the values from
>> standard.css and not from my CSS file.
>> Can I change this somehow? Is it intentional? Is this a bug?
>>
>>  
> I just noticed this as well with setting the font size of buttons. If
> you create a new GWT 1.6 project in eclipse and in the CSS file you
> change the following
>
> .sendButton {
>display: block;
>font-size: 16pt;
> }
>
> to
>
> .sendButton {
>display: block;
>font-size: 24pt;
> }
>
> The font size does not change because .gwtButton in standard.css sets
> the font-size.
>
> Any help appreciated
>

I usually solve this using !important rules 
(http://www.w3.org/TR/CSS2/cascade.html#x11). There are other methods, 
e.g. declaring your own classes that build on the GWT.


--~--~-~--~~~---~--~~
You received 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: css for flextable's columns

2009-04-13 Thread Thomas Broyer



On 13 avr, 23:41, denis56  wrote:
> Hello,
>
> have already spent some hours trying to set column width in flextable
> to a fixed width in pixels. Could maybe someone share experiences how
> that is achievable (target browser IE 6). I tried with width attribute
> in css, but its not very responsive, especially when cells are empty.
> Doing that now through putting label with predefined fixed width, but
> that is so ugly and wasteful.

You should "just" have to ensure your CSS for the table has "table-
layout: fixed" (hint: it'll also speed up the rendering of the table,
explicitly telling the browser to not account for the cells' content
width)
I don't think I had a problem with empty cells, but I'm not even sure
I ever had to deal with empty cells...

> And one more thing. I have a HorizontalPanel in one of the flextable
> cells with 3 labels inside, is there a way to apply "overflow:hidden"
> on the last widget? Right now it is being wrapped to the next line,
> although overflow: hidden is set.

Hmm, it probably depends on the size (intrinsic or explicit) of the
HorizontalPanel, if you set the width of the HorizontalPanel with an
absolute unit (pixels, for example), you should IMO put
overflow:hidden on the flextable's cell, *not* the HorizontalPanel's
last cell.
--~--~-~--~~~---~--~~
You received 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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread Jeff Chimene

On 04/13/2009 02:48 PM, pohl wrote:
> Thank you for your responses.   I see that the build-gwt.xml ANT
> script in my GWT4NB-based project does have a "-noserver" argument in
> the block that invokes GWTShell, so at least one compile step is
> necessary, as per Jeff's observation, to copy those resources to the
> server.
>
> I'm still at a loss in my attempt to understand exactly what
> conditions are necessary to get this much-promised "fast turnaround"
> in hosted mode.   If I stop the debugger and debug my project again
> (even if I make absolutely no changes to the source code) the
> GWTCompiler runs again.   Is this a failing in Netbeans and/or GWT4NB?
>

I'm not a GWT expert, but I'm pretty sure that if you exit hosted mode, 
whatever dynamic structures are created to communicate w/ your IDE are 
lost. Hence the need to recompile on the next invocation.
> Or is my only avenue to try to get the debugger to hot-fix the code
> using the "Apply Code Changes" button (in the Netbeans debugger) and
> then clicking the "refresh" button in hosted mode?
>
> The reason that I ask this last question is that, even if I make a
> trivial change like just changing some text that appears in my
> interface, I get an exception when I click "Apply Code Changes".  (In
> the example below, I merely changed a label on my login panel from
> "Username" to "Usern4me" so that I could visually see that the hotfix
> was applied):
>

Yeah, I've noticed this too, only I haven't had the impetus to ask it of 
the list. I just assume that the restart is necessary. Maybe some GWT 
pundit knows what we're doing wrong...

Do you know about the  tag? If not, try adding the 
following to your module.gwt.xml file:


using the appropriate browser ID for "value". At least you'll only wait 
for one permutation rather than the (probably) default five. Don't 
forget to remove the tag before compiling for production. I think Vitali 
wrote in some earlier discussion describing how to make this 
set-property a compile-time decision.

--~--~-~--~~~---~--~~
You received 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: Why does standard.css override my own css file

2009-04-13 Thread Jaap

On Apr 14, 12:25 am, Jaap  wrote:
> Hi, if add a CSS body statement to the CSS file of my project I see
> with Firebug that the browser actually does take the values from
> standard.css and not from my CSS file.
> Can I change this somehow? Is it intentional? Is this a bug?
>
I just noticed this as well with setting the font size of buttons. If
you create a new GWT 1.6 project in eclipse and in the CSS file you
change the following

.sendButton {
  display: block;
  font-size: 16pt;
}

to

.sendButton {
  display: block;
  font-size: 24pt;
}

The font size does not change because .gwtButton in standard.css sets
the font-size.

Any help appreciated

Thanks

Jaap
--~--~-~--~~~---~--~~
You received 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 help to add label to an image

2009-04-13 Thread Jeff Chimene

On 04/13/2009 02:56 PM, Nia wrote:
> Im using a MySQL backend... which has the url of the image.Im
> using PHP/JSON to retrieve the url from the dbis there a way where
> I can save the x and y cooordinates on mouseclick into the db and add
> a marker image on top of my original image at the x and y coords? Does
> that even make sense ;P?
>

Yes. I'd look into imagemagick (http://www.imagemagick.org/). Unless you 
want to keep the coordinates as annotation, drop the db write. 
Communicate via JSON w/ your server side PHP code that invokes 
imagemagick to rewrite the image on the server.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---



Why does standard.css override my own css file

2009-04-13 Thread Jaap

Hi, if add a CSS body statement to the CSS file of my project I see
with Firebug that the browser actually does take the values from
standard.css and not from my CSS file.
Can I change this somehow? Is it intentional? Is this a bug?

Thanks

Jaap
--~--~-~--~~~---~--~~
You received 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: Profiling Hosted Mode Using TPTP

2009-04-13 Thread Superman859

I'm not sure why it is running slow either.  After the brief time that
I have tried to look at it thus far, it seems that memory seems
somewhat ok (in my browser, it sits at 160-170mb usage, and only
really goes up if you generate graph after graph after graph really
fast, but it does go back down if you give it time to clean up).
However, I did notice that after about 10 minutes of usage, the memory
was still at about the same, but the CPU was up around 50% (2.4ghz
dual core) when it had started out much, much lower.  It wasn't really
temporary either for just a second, and seemed to hang up there really
high.  This is what I think is causing the problem.

I understand profiling in Hosted Mode may have some issues arise and
GWT will compile it down to Javascript anyways and the code isn't the
same, but it would still be nice to try and make sure there aren't any
major concerns, as well as being able to profile the code that runs on
the server (which is not compiled).  A lot of RPC calls are made.

-Russell

On Apr 13, 2:52 pm, "flyingb...@gmail.com" 
wrote:
> Well I not sure if this is the case for you or not. In my workflow
> program I did not use rpc and gotten data with json.
>
> The workflow program the data from the json is huge and the program
> became really slow when I am reading the json data into a new class.
>
> What I ended up doing is the class just became calls to the json data
> so it is like a wrapper. Doing that saves the processing time by a
> whole lot. Well not sure what type of program is causing your app to
> run slow.
>
> On Apr 13, 11:20 am, Vitali Lovich  wrote:
>
> > Profiling in hosted mode is kind of a waste of time since there's a lot of
> > expensive stuff that happens that's hosted-mode specific.  You have to be
> > really careful & fully understand how GWT works in hosted mode to be able to
> > glean any kind of meaning.  And even then, it's meaningless because the
> > browser will likely have a very different profile for all but pure data
> > processing code (creating a Label in hosted mode is very different than what
> > happens when you compile the code).
>
> >http://getfirebug.com/js.html.  However, you should compile in DETAILED mode
> > so that the JS makes even a little sense - even then you might find it hard
> > to understand what the profiler is telling you.
>
> > On Mon, Apr 13, 2009 at 1:54 PM, Superman859 
> > wrote:
>
> > > I have gotten to the point where I would like to profile my app to see
> > > why it is running slow, but I'm not quite sure where to begin.
>
> > > I would like to be able to first profile in hosted mode (and later use
> > > a Javascript profiler in web mode).
>
> > > I found a profiler calledTPTPthat seems to be somewhat common and
> > > open source.  I have the plugin installed, but I'm not quite sure how
> > > to get the app to run and profile in Hosted mode.
>
> > > I have used Cypal Studio thus far, and to run it I go to run
> > > configurations - Run As - Hosted mode, which I believe Cypal Studio
> > > had set up automatically.
>
> > > But I do not know how to configure a setup for profiling.  Can someone
> > > provide some guidance on setting on a profiler configuration or some
> > > method of running this in hosted mode so that I can profile it using
> > >TPTP(or any other good free profiler) ?
>
>
--~--~-~--~~~---~--~~
You received 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: debug freeze

2009-04-13 Thread Seven Reeds

Good question,

I will try to resurrect the "broken" code.  It may be a few days
though.  I am trying to meet a deadline.

It was really very trivial as I recall.  I had defined a widget (a
TextBox I think) but had not instantiated it, something like:

public class foo
extends Composite
implements ClickListener,
  ChangeListener,
  TableListener {

...
TextBox myInput;
...
public foo() {
...
do something with "foo"
...
}

I am not a "java" coder.  I am a C/perl/script coder who has picked up
enough java to sort of make GWT go.  I am probably doing everything
contrary to the "Java Way".  So when I send the code I apologize up
front.

For me, this is a fairly "large" project.  I assume that you will want
all of the code?

It is GWT 1.5.3 by the way

Dean...K...

On Mon, Apr 13, 2009 at 4:05 PM, Sumit Chandel  wrote:
> Hi Seven Reeds,
> Any chance we could get a repro code snippet? It would suck if there is an
> existing hosted mode issue that would crash on a null object without any
> useful message as to what's gone wrong. This is the first time I've seen
> this kind of error though, so it might have been a fluke incident or it
> could have something to do with the recent switch to Jetty in hosted mode.
> Thanks,
> -Sumit Chandel
>
> On Wed, Apr 8, 2009 at 8:20 AM, Seven Reeds  wrote:
>>
>> Correct, the hosted mode log showed the "creation" of various widgets
>> but there was no "null pointer" messages.  I had sprinkled
>> "Window.alert()" messages all over the place to narrow down the issue
>> and eventually found the line.  Starring at the line made no sense
>> because it was a rational statement... except that I had not
>> initialized the object.  On a whim I stuck a try/catch block around
>> the line and it shouted out that the object was null.
>>
>> go figure.
>>
>> On Wed, Apr 8, 2009 at 4:08 AM, Vitali Lovich  wrote:
>> > And the hosted mode log didn't print any exceptions?  Weird.
>>
>>
>
>
> >
>

--~--~-~--~~~---~--~~
You received 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 help to add label to an image

2009-04-13 Thread Nia

Im using a MySQL backend... which has the url of the image.Im
using PHP/JSON to retrieve the url from the dbis there a way where
I can save the x and y cooordinates on mouseclick into the db and add
a marker image on top of my original image at the x and y coords? Does
that even make sense ;P?

Nia


On Apr 13, 5:48 pm, Jeff Chimene  wrote:
> On 04/13/2009 02:19 PM, Nia wrote:
>
> > yes...im trying to build an image annotation tool..
>
> If want to manipulate the images solely on the client side, you have few
> choices. HTML 5 provides the machinery to manipulate images solely on
> the client, but support for HTML 5 is not widespread. For an example of
> what's possible, seehttp://www.chromeexperiments.com/
>
> There are Javascript image processing libraries available; such
> libraries rely on server-side support via AJAX. If you expand your
> horizon to include AJAX or Java, then you will certainly have more options.
--~--~-~--~~~---~--~~
You received 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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread pohl

Thank you for your responses.   I see that the build-gwt.xml ANT
script in my GWT4NB-based project does have a "-noserver" argument in
the block that invokes GWTShell, so at least one compile step is
necessary, as per Jeff's observation, to copy those resources to the
server.

I'm still at a loss in my attempt to understand exactly what
conditions are necessary to get this much-promised "fast turnaround"
in hosted mode.   If I stop the debugger and debug my project again
(even if I make absolutely no changes to the source code) the
GWTCompiler runs again.   Is this a failing in Netbeans and/or GWT4NB?

Or is my only avenue to try to get the debugger to hot-fix the code
using the "Apply Code Changes" button (in the Netbeans debugger) and
then clicking the "refresh" button in hosted mode?

The reason that I ask this last question is that, even if I make a
trivial change like just changing some text that appears in my
interface, I get an exception when I click "Apply Code Changes".  (In
the example below, I merely changed a label on my login panel from
"Username" to "Usern4me" so that I could visually see that the hotfix
was applied):

init:
deps-jar:
Compiling 1 source file to /Users/pohl/Source/CP/trunk/CPLib/build/
classes
Note: /Users/pohl/Source/CP/trunk/CPLib/src/net/nanonation/ui/client/
widget/LoginPanel.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
compile-single:
Classes to be reloaded:
 net.nanonation.ui.client.widget.LoginPanel$1
 net.nanonation.ui.client.widget.LoginPanel$2
 net.nanonation.ui.client.widget.LoginPanel$3
 net.nanonation.ui.client.widget.LoginPanel$4
 net.nanonation.ui.client.widget.LoginPanel$5
 net.nanonation.ui.client.widget.LoginPanel
The virtual machine does not support this operation: delete method not
implemented
/Users/pohl/Source/CP/trunk/CPLib/nbproject/build-impl.xml:475: The
following error occurred while executing this line:
/Users/pohl/Source/CP/trunk/CPLib/nbproject/build-impl.xml:237: The
virtual machine does not support this operation: delete method not
implemented
BUILD FAILED (total time: 0 seconds)







--~--~-~--~~~---~--~~
You received 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 help to add label to an image

2009-04-13 Thread Jeff Chimene

On 04/13/2009 02:19 PM, Nia wrote:
> yes...im trying to build an image annotation tool..
>

If want to manipulate the images solely on the client side, you have few 
choices. HTML 5 provides the machinery to manipulate images solely on 
the client, but support for HTML 5 is not widespread. For an example of 
what's possible, see http://www.chromeexperiments.com/

There are Javascript image processing libraries available; such 
libraries rely on server-side support via AJAX. If you expand your 
horizon to include AJAX or Java, then you will certainly have more options.



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



css for flextable's columns

2009-04-13 Thread denis56

Hello,

have already spent some hours trying to set column width in flextable
to a fixed width in pixels. Could maybe someone share experiences how
that is achievable (target browser IE 6). I tried with width attribute
in css, but its not very responsive, especially when cells are empty.
Doing that now through putting label with predefined fixed width, but
that is so ugly and wasteful.

And one more thing. I have a HorizontalPanel in one of the flextable
cells with 3 labels inside, is there a way to apply "overflow:hidden"
on the last widget? Right now it is being wrapped to the next line,
although overflow: hidden is set.

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



Re: Wrapping Around GData JS API With GWT

2009-04-13 Thread Sumit Chandel
Hi Bobby,
Please check out replies inlined below:

1. I couldn't find a GData Library for GWT, did i miss it (i already
> checked with the GData group)? I know GData has the Java API, but that
> (probably) won't compile to JavaScript. However, GData also has a JS
> API (the JS docs are here
> http://code.google.com/apis/gdata/jsdoc/1.8/index.html),
> so at a minimum we could wrap the JS API in a very thin GWT library -
> i'm wondering if this already exists or if it's planned as an addition
> to the list of GWT Google API Libraries (http://code.google.com/
> webtoolkit/googleapilibraries.html).


There currently aren't any plans to provide GData bindings in the GALGWT
project, but as you may know, the project is open source and we would
welcome any contributions if you were planning on creating bindings for the
GData JS library.


> 2. In the scenario where you have an existing JS library that you want
> to make use of in GWT, what's the best, thinnest, way to to create a
> Java wrapper to the JS library? For example, we could create a Java
> class per JS class. The Java class could keep a reference to the
> native JSObject, and define the same properties and methods that the
> JS class provides but which delegate to the JS implementation via
> JSNI. The problem with this is that after compiling to JS, we end up
> with a JS wrapper around a JS object. Is there a better implementation
> approach that will avoid this?


I think the easiest way to wrap the objects in the GData JS library is to
not actually wrap them, but overlay them with JavaScript Overlay Types (link
below). This is the technique that is used for the existing Google APIs that
have bindings in the GALGWT project and would be the easiest and best way to
provide support for GData bindings as well. The greatest thing about the
overlay technique is that there is zero overhead to pay for overlaying the
JS object. The one-to-one nature of the binding also makes it somewhat
intuitive for developers to follow documentation on the proper API as they
use it in their GWT project through GALGWT, so there's yet another win by
choosing the overlay strategy.

JavaScript Overlay Types:
http://code.google.com/webtoolkit/doc/1.6/DevGuideCodingBasics.html#DevGuideOverlayTypes

Hope that helps,
-Sumit Chandel


>
>
> >
>

--~--~-~--~~~---~--~~
You received 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] Unknown argument: -server

2009-04-13 Thread Sumit Chandel
Hi Isaac,
You've come to the right place for GWT Eclipse plug-in support! We don't
have an official support forum for the Eclipse plug-in just yet. Given the
various Google APIs that might be included in the plug-in, it seems best to
report issues on the forum corresponding to the API / plug-in feature for
which you experienced issues, so well done :-)

Now then, about the issue you're experiencing - a couple of questions to
help troubleshoot:

1) Does the warning message that pops up prevent you from running hosted
mode? Or are you able to run it while having the warning message displayed
as you use hosted mode?

2) What type of application are you running? (GWT or GWT + GAE)

The fact that it's complaining about a -server argument tells me that this
is a project configured with the AppEngine nature, but the fact that
GWTShell is being used tells me that it's using GWT 1.5, which according to
how the plug-in was designed, should be impossible unless there's a bug on
our end. In any case, let me know your config and maybe we can figure out
what's going on.

Cheers,
-Sumit Chandel

On Wed, Apr 8, 2009 at 4:02 PM, Isaac Truett  wrote:

>
> Preface: I see posts related to the plugin on this list and on GAE,
> but I can't find an official support forum or issue tracker. If such a
> thing does exist, do please redirect me there.
>
> I'm using the plugin with two Eclipse projects. Same version of
> Eclipse. Same workspace, even. One of them is working fine so far, the
> other gives me this when I Run As -> Web Application:
>
> WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> removed in a future release.
> Use 'com.google.gwt.dev.HostedMode' instead.
> (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM arg.)
> Unknown argument: -server
> Google Web Toolkit 1.6.4
>
> (GWTShell syntax help omitted)
>
> I've searched the entire project for "-server" and can't find it
> anywhere. It brings to mind the -server argument for java.exe but
> there's nothing in the launch configuration's arguments tab, VM or
> program. The other project, the one that works, gives the deprecation
> warning but not the unknown argument error.
>
> Anyone know where that errant argument might be coming from?
>
> 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: Need help to add label to an image

2009-04-13 Thread Nia

yes...im trying to build an image annotation tool..

Nia

On Apr 13, 5:06 pm, Jeff Chimene  wrote:
> On 04/13/2009 01:59 PM, Nia wrote:
>
> > Hey..
>
> > Im very new to gwt...using it for the first time infact... Im trying
> > to build a script that will add a marker to an image on mouseclick.
>
> > Im guessing I have to get the x and y coordinates on mouse click but
> > Im clueless about wht should be done next.
>
> > My image is NOT A MAP. Its just a normal image..
>
> Do you want to rewrite the image with the label?
--~--~-~--~~~---~--~~
You received 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 help to add label to an image

2009-04-13 Thread Jeff Chimene

On 04/13/2009 01:59 PM, Nia wrote:
> Hey..
>
> Im very new to gwt...using it for the first time infact... Im trying
> to build a script that will add a marker to an image on mouseclick.
>
> Im guessing I have to get the x and y coordinates on mouse click but
> Im clueless about wht should be done next.
>
> My image is NOT A MAP. Its just a normal image..
>

Do you want to rewrite the image with the label?

--~--~-~--~~~---~--~~
You received 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: debug freeze

2009-04-13 Thread Sumit Chandel
Hi Seven Reeds,
Any chance we could get a repro code snippet? It would suck if there is an
existing hosted mode issue that would crash on a null object without any
useful message as to what's gone wrong. This is the first time I've seen
this kind of error though, so it might have been a fluke incident or it
could have something to do with the recent switch to Jetty in hosted mode.

Thanks,
-Sumit Chandel

On Wed, Apr 8, 2009 at 8:20 AM, Seven Reeds  wrote:

>
> Correct, the hosted mode log showed the "creation" of various widgets
> but there was no "null pointer" messages.  I had sprinkled
> "Window.alert()" messages all over the place to narrow down the issue
> and eventually found the line.  Starring at the line made no sense
> because it was a rational statement... except that I had not
> initialized the object.  On a whim I stuck a try/catch block around
> the line and it shouted out that the object was null.
>
> go figure.
>
> On Wed, Apr 8, 2009 at 4:08 AM, Vitali Lovich  wrote:
> > And the hosted mode log didn't print any exceptions?  Weird.
>
> >
>

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



Need help to add label to an image

2009-04-13 Thread Nia

Hey..

Im very new to gwt...using it for the first time infact... Im trying
to build a script that will add a marker to an image on mouseclick.

Im guessing I have to get the x and y coordinates on mouse click but
Im clueless about wht should be done next.

My image is NOT A MAP. Its just a normal image..

any help?



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---



Saving Pojo object to binary format (writeObject from outputStream)

2009-04-13 Thread fvisticot

My client application is retrieving Pojo from the server.
This Pojo implements Serializable and there is no pb to display this
object on the browser.
I would like to persist the Pojo in the Gears browser database. For
doing that, i need to:

1. serialize my Pojo in Binary
How to do that ?? (I wanted to use writeObject method from an
outputStream BUT ByteArrayOutputStream is not available with GWT ???)
2. store the binary data in the Gears database.
3. when needed, read the data, unserialize with readObject...

Is there a solution to serialize/unserialize a POJO ? How to retrieve
the Binary data ??
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread Jeff Chimene

On 04/13/2009 01:24 PM, Vitali Lovich wrote:
> No, you don't need it for hosted mode.  The only reason to have that 
> would be to ensure that you are actually writing compilable code (just 
> because it runs under hosted mode doesn't mean it'll compile to 
> Javascript).
>
> Generally though, you don't do that since you want a fast turnaround 
> to hack & test.  The Eclipse projects that GWT creates certainly don't.

If you're using -noserver, you do need at least one compile step to 
generate the .nocache and other static files. Hosted mode is available 
after moving those compilation results (including all images and other 
html) to your server. It's not necessary to repeat the compilation each 
time. You will need to repeat these recompile/copy steps if there's a 
change to the GWT version.

See 
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html#How_do_I_use_my_own_server_in_hosted_mode_instead_of_GWT%27s
for more information.

>
> On Mon, Apr 13, 2009 at 3:31 PM, pohl  > wrote:
>
>
> I have a basic question about what is required in the build process in
> order to invoke hosted mode.  I'm trying to speed up my compilation
> times, and I noticed that the Java-2-Javascript compiler is running
> even in the case when I'm debugging in hosted mode.
>
> Now I'm not using the same tools as y'all...no Eclipse for me.   I'm
> using Netbeans (and the GWT4NB plugin) and I thought that, perhaps,
> the ANT scripts could be made more optimal by leaving out the
> com.google.gwt.dev.GWTCompiler step.
>
> So, does it have to be there in that case?  If so, what does it
> accomplish?  It's my understanding that hosted mode is interacting
> with Java objects...so I have a hard time imagining what purpose it
> could serve.
>
>
>
> >


--~--~-~--~~~---~--~~
You received 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: ImageBundle too wide to display in IE7 under Vista

2009-04-13 Thread Vitali Lovich
Try it & see if narrowing the ImageBundle solves the issue.  If that's the
case, file a bug since that's not something you should be worrying about, &
something the generator should know in the GWT code so as to automagically
solve the problem for you.  And if it can't (which is unlikely), then there
should at least be a note in the Javadoc.

On Mon, Apr 13, 2009 at 3:48 PM, Mark McCall  wrote:

>
> Any takers?
>
> On Apr 8, 9:03 am, markmccall  wrote:
> > I recently encountered an issue where the contents of an ImageBundle
> > were not being displayed at all, but only under Vista and IE7.  Using
> > XP with IE6, IE7, FireFox 2, FireFox 3 the contents of the ImageBundle
> > displayed with no problems.  There are second hand reports that it
> > worked under Vista and IE8, but I have not seen it myself.
> >
> > I ruled out file size as the limiting factor sense I have other
> > ImageBundles that worked properly, yet their file size was larger than
> > the offending ImageBundle.  After some experimenting it APPEARS that
> > IE7 under Vista imposes a limit of 2048 pixels for the width of a PNG
> > that is being displayed using the AlphaImageLoader Filter.  As soon as
> > the ImageBundle width exceeds 2048 pixels, it fails to appear.
> >
> > The obvious work around was to break up the ImageBundle to reduce it's
> > width.
> >
> > Has anybody else encountered this?  Is this something that I should
> > have already known about?
> >
> > Thanks,
> > Mark McCall
> >
>

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



resizable iframe?

2009-04-13 Thread Prashant Gupta
is it possible to make an iframe resizable using GWT or YUI?

--~--~-~--~~~---~--~~
You received 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: does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread Vitali Lovich
No, you don't need it for hosted mode.  The only reason to have that would
be to ensure that you are actually writing compilable code (just because it
runs under hosted mode doesn't mean it'll compile to Javascript).

Generally though, you don't do that since you want a fast turnaround to hack
& test.  The Eclipse projects that GWT creates certainly don't.

On Mon, Apr 13, 2009 at 3:31 PM, pohl  wrote:

>
> I have a basic question about what is required in the build process in
> order to invoke hosted mode.  I'm trying to speed up my compilation
> times, and I noticed that the Java-2-Javascript compiler is running
> even in the case when I'm debugging in hosted mode.
>
> Now I'm not using the same tools as y'all...no Eclipse for me.   I'm
> using Netbeans (and the GWT4NB plugin) and I thought that, perhaps,
> the ANT scripts could be made more optimal by leaving out the
> com.google.gwt.dev.GWTCompiler step.
>
> So, does it have to be there in that case?  If so, what does it
> accomplish?  It's my understanding that hosted mode is interacting
> with Java objects...so I have a hard time imagining what purpose it
> could serve.
> >
>

--~--~-~--~~~---~--~~
You received 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: ImageBundle too wide to display in IE7 under Vista

2009-04-13 Thread Mark McCall

Any takers?

On Apr 8, 9:03 am, markmccall  wrote:
> I recently encountered an issue where the contents of an ImageBundle
> were not being displayed at all, but only under Vista and IE7.  Using
> XP with IE6, IE7, FireFox 2, FireFox 3 the contents of the ImageBundle
> displayed with no problems.  There are second hand reports that it
> worked under Vista and IE8, but I have not seen it myself.
>
> I ruled out file size as the limiting factor sense I have other
> ImageBundles that worked properly, yet their file size was larger than
> the offending ImageBundle.  After some experimenting it APPEARS that
> IE7 under Vista imposes a limit of 2048 pixels for the width of a PNG
> that is being displayed using the AlphaImageLoader Filter.  As soon as
> the ImageBundle width exceeds 2048 pixels, it fails to appear.
>
> The obvious work around was to break up the ImageBundle to reduce it's
> width.
>
> Has anybody else encountered this?  Is this something that I should
> have already known about?
>
> Thanks,
> Mark McCall
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



does com.google.gwt.dev.Compiler need to run prior to hosted mode?

2009-04-13 Thread pohl

I have a basic question about what is required in the build process in
order to invoke hosted mode.  I'm trying to speed up my compilation
times, and I noticed that the Java-2-Javascript compiler is running
even in the case when I'm debugging in hosted mode.

Now I'm not using the same tools as y'all...no Eclipse for me.   I'm
using Netbeans (and the GWT4NB plugin) and I thought that, perhaps,
the ANT scripts could be made more optimal by leaving out the
com.google.gwt.dev.GWTCompiler step.

So, does it have to be there in that case?  If so, what does it
accomplish?  It's my understanding that hosted mode is interacting
with Java objects...so I have a hard time imagining what purpose it
could serve.
--~--~-~--~~~---~--~~
You received 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 use slf4j on hosted mode

2009-04-13 Thread Célio

Solved.

If you need to use slf4j in your server classes, you must "promote"
slf4j classes to system classes.  You do that by configuring the
WebAppContext just like this:






java.
javax.servlet.
javax.xml.
org.mortbay.
org.xml.
org.w3c.
org.apache.commons.logging.
org.apache.log4j.


org.slf4j.







You should put this file at /war/WEB-INF/jetty-web.xml.  For more
information, see http://docs.codehaus.org/display/JETTY/jetty-web.xml

Cheers,

Célio


On Apr 13, 11:34 am, Célio  wrote:
> I have just migrated our gwt app from 1.5 to 1.6.  Everything is fine
> except that slf4j classes can't be loaded on hosted mode.  We actually
> use slf4j in our web app to log our own stuff.  The problem is that
> the hosted mode class loader don't allow server classes to be loaded
> from the outside world.  It checks the class name against a list of
> server classes that jetty hard-codes somewhere, and that list contains
> the org.slf4f package.
>
> WebAppClassLoaderExtension.findClass(String name) {
>       @Override
>       protected Class findClass(String name) throws
> ClassNotFoundException {
>           ...
>           // Don't allow server classes to be loaded from the outside.
>           if (isServerPath(name)) {
>             throw e;
>           }
>           ...
>       }
>
> }
>
> isServerPath is defined by the subclass:
>
> public class WebAppClassLoader
> {
>     public boolean isServerPath(String name)
>     {
>         ...
>         String[] server_classes = _context.getServerClasses();
>         // if the name is in the list, return true (basically).
>
> }
>
> Where _context is a:
>
> public class WebAppContext extends Context
> {
>     ...
>     private String[] _serverClasses = {"-
> org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty.", "org.slf4j."};
>                                                              // TODO
> hide all mortbay classes
>     ...
>     public String[] getServerClasses()
>     {
>         return _serverClasses;
>     }
>
> }
>
> Does anybody know how to workaround this issue?
>
> Cheers,
>
> Célio
--~--~-~--~~~---~--~~
You received 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 import samples of GWT into Eclipse

2009-04-13 Thread Jeff Chimene

On 04/13/2009 03:05 AM, carlesla wrote:
> Thanks a lot, Vitali.
>
> You're rihgt : webAppCreator creates the eclipse project , and it
> doesn't need  -ecllipse option like in applicationCreator.
>
> The only problem now is I would like import the Showcase sample, but
> webAppCreator command doesn't accept 'Showcase' because it  does not
> appear be a valid fully-qualified Java class name. ( I've tried this
> command : webAppCretaor Showcase -ignore
> com.google.gwt.samples.showcase.client.Showcase )
>
> thanks a lot
>
> carles
>
I just tried this on Eclipse 3.4
1) Create a project named "Showcase"
 file > new > project

2) Import the Showcase files
 right-click on the project name
 > Import
 > File System
 > From Directory (browse to your eclipse samples installation)
 > Showcase (select the directory in the left panel)
 > Into folder (Showcase should be the default value)

This will import the source into your workspace. Use build.xml to build 
the project. The build will fail as the gwt-servlet.jar is in a shared 
directory which doesn't get brought into the project via this method.

--~--~-~--~~~---~--~~
You received 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: Profiling Hosted Mode Using TPTP

2009-04-13 Thread flyingb...@gmail.com

Well I not sure if this is the case for you or not. In my workflow
program I did not use rpc and gotten data with json.

The workflow program the data from the json is huge and the program
became really slow when I am reading the json data into a new class.

What I ended up doing is the class just became calls to the json data
so it is like a wrapper. Doing that saves the processing time by a
whole lot. Well not sure what type of program is causing your app to
run slow.

On Apr 13, 11:20 am, Vitali Lovich  wrote:
> Profiling in hosted mode is kind of a waste of time since there's a lot of
> expensive stuff that happens that's hosted-mode specific.  You have to be
> really careful & fully understand how GWT works in hosted mode to be able to
> glean any kind of meaning.  And even then, it's meaningless because the
> browser will likely have a very different profile for all but pure data
> processing code (creating a Label in hosted mode is very different than what
> happens when you compile the code).
>
> http://getfirebug.com/js.html.  However, you should compile in DETAILED mode
> so that the JS makes even a little sense - even then you might find it hard
> to understand what the profiler is telling you.
>
> On Mon, Apr 13, 2009 at 1:54 PM, Superman859 wrote:
>
>
>
> > I have gotten to the point where I would like to profile my app to see
> > why it is running slow, but I'm not quite sure where to begin.
>
> > I would like to be able to first profile in hosted mode (and later use
> > a Javascript profiler in web mode).
>
> > I found a profiler called TPTP that seems to be somewhat common and
> > open source.  I have the plugin installed, but I'm not quite sure how
> > to get the app to run and profile in Hosted mode.
>
> > I have used Cypal Studio thus far, and to run it I go to run
> > configurations - Run As - Hosted mode, which I believe Cypal Studio
> > had set up automatically.
>
> > But I do not know how to configure a setup for profiling.  Can someone
> > provide some guidance on setting on a profiler configuration or some
> > method of running this in hosted mode so that I can profile it using
> > TPTP (or any other good free profiler) ?
--~--~-~--~~~---~--~~
You received 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 and GXT

2009-04-13 Thread Nick Powers
Not a problem, I just happen to be messing around with the same thing this
week.

On Mon, Apr 13, 2009 at 10:33 AM, Paul Grenyer wrote:

>
> Hi Nick
>
> > I was able to get a MessageBox to pop-up. I put the following in my
> > *.gwt.xml file:
> >
> >  > 
> > 
> > ...
> >  > 
> > 
> > 
> > ...
> >
> > I added a "js" folder under the WAR folder. In that folder, I copied
> > the entire contents of EXT zip file.
> > Of course, I put the gwtext.jar in the war/WEB-INF/lib folder and
> > added it to my build path.
>
> This was almost the final piece of the puzzle! When I did the above it
> worked in hosted mode, but not when deployed to TomCat. I was able to
> get it working, however, with a minor modification:
>
> 
> 
> 
>
> I suspect the the "root" directory (i.e. that accessed by starting the
> url with /) for a TomCat app is different to Jetty/hosted mode. So,
> adding ../ to the start of the url makes it relative to the rest of
> the GWT JavaScript (in my case the masterplan directory) for the
> application.
>
> Anyway, it seems to be working perfectly now, I just need to try a
> more complex example and blog it.
>
> Thanks Nick! If I ever get the chance I'll happily buy you a beer.
>
> (Now I just need to work out why Hibernate is giving rows from a table
> twice and I'll have had a very successful weekend!).
>
> --
> Thanks
> Paul
>
> Paul Grenyer
> e: paul.gren...@gmail.com
> w: http://www.marauder-consulting.co.uk
> b: paulgrenyer.blogspot.com
>
> >
>

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



Re: Profiling Hosted Mode Using TPTP

2009-04-13 Thread Vitali Lovich
Profiling in hosted mode is kind of a waste of time since there's a lot of
expensive stuff that happens that's hosted-mode specific.  You have to be
really careful & fully understand how GWT works in hosted mode to be able to
glean any kind of meaning.  And even then, it's meaningless because the
browser will likely have a very different profile for all but pure data
processing code (creating a Label in hosted mode is very different than what
happens when you compile the code).

http://getfirebug.com/js.html.  However, you should compile in DETAILED mode
so that the JS makes even a little sense - even then you might find it hard
to understand what the profiler is telling you.

On Mon, Apr 13, 2009 at 1:54 PM, Superman859 wrote:

>
> I have gotten to the point where I would like to profile my app to see
> why it is running slow, but I'm not quite sure where to begin.
>
> I would like to be able to first profile in hosted mode (and later use
> a Javascript profiler in web mode).
>
> I found a profiler called TPTP that seems to be somewhat common and
> open source.  I have the plugin installed, but I'm not quite sure how
> to get the app to run and profile in Hosted mode.
>
> I have used Cypal Studio thus far, and to run it I go to run
> configurations - Run As - Hosted mode, which I believe Cypal Studio
> had set up automatically.
>
> But I do not know how to configure a setup for profiling.  Can someone
> provide some guidance on setting on a profiler configuration or some
> method of running this in hosted mode so that I can profile it using
> TPTP (or any other good free profiler) ?
> >
>

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



Profiling Hosted Mode Using TPTP

2009-04-13 Thread Superman859

I have gotten to the point where I would like to profile my app to see
why it is running slow, but I'm not quite sure where to begin.

I would like to be able to first profile in hosted mode (and later use
a Javascript profiler in web mode).

I found a profiler called TPTP that seems to be somewhat common and
open source.  I have the plugin installed, but I'm not quite sure how
to get the app to run and profile in Hosted mode.

I have used Cypal Studio thus far, and to run it I go to run
configurations - Run As - Hosted mode, which I believe Cypal Studio
had set up automatically.

But I do not know how to configure a setup for profiling.  Can someone
provide some guidance on setting on a profiler configuration or some
method of running this in hosted mode so that I can profile it using
TPTP (or any other good free profiler) ?
--~--~-~--~~~---~--~~
You received 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: upload file : gwt api + gwt ext api

2009-04-13 Thread Salvador Diaz

I think you should try asking the same question in the gwt-ext forum
(if it exists) or directly to the gwt-ext developers (the javadoc for
fileUpload clearly states that "This widget must be used with
FormPanel if it is to be submitted to a server." so it doesn't look
like you can, but I don't really know gwt-ext).

Cheers,

Salvador

On Apr 13, 12:34 pm, loudo  wrote:
> Hello,
>
> Can i use the class FileUpload (gwt 
> api)http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?o...
> with the FormPanel (gwt ext api)http://www.gwt-ext.com/docs/2.0.4/?
>
> I ask this question because i have not foud an object FIleUpload in
> the gwt ext api.
>
> 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: Regarding an Uncaught Exception Displaying

2009-04-13 Thread Salvador Diaz

It looks like you're having several problems and they might be
unrelated, you should try to explain your setup a little more clearly
(for instance, what are those fusion charts you're talking about and
how do you call them from your gwt code ?).

As for the display differences between Firefox and IE, I've
encountered similar issues when widgets are displayed in an
AbsolutePanel: if you don't set the size of the absolutePanel (ie:
absolutePanel.setSize("100%", "100%")) the widgets will be visible in
Firefox but not in IE, so make sure you're setting the size of the
absolutePanel.

Cheers,

Salvador

On Apr 13, 12:11 pm, shajeer kt  wrote:
> Hii,
>
>    Where can i get OOPHM plugin.. Whether i have to add the jar file to my
> existing project. Or adding that plugin directly to Internet Explorer
> Browser . Please any one tell me,what should i do??
>
> On Sun, Apr 12, 2009 at 8:23 AM, shajeer kt  wrote:
> > So what may be the reason it is working perfectly in mozilla firefox and
> > not in IE.
> >   Whether Mozilla firefox already have this OOPHM plugin .
> >        Could any one give me more informations regarding OOPHM with respect
> > to my issue.?
>
> > On Sat, Apr 11, 2009 at 3:44 PM, Vitali Lovich  wrote:
>
> >> It looks like you start your code in hosted mode, but then hit the page
> >> using a regular browser.  You cannot run HostedMode code against a regular
> >> browser without the OOPHM plugin for obvious reasons.  In HostedMode, your
> >> code runs ins a regular JVM with GWT code that acts as a communication 
> >> layer
> >> between the browser & native Java code.  But without the hosted mode 
> >> browser
> >> or the OOPHM plugin, there's nothing for it to communicate with.
>
> >> So what you are seeing here is perfectly expected.  Either use the
> >> HostedMode browser or build from trunk & use the OOPHM plugin according to
> >> the instructions on the wiki.  Or run the regular browser against the
> >> compiled code.
>
> >> Those are your options.
>
> >> On Sat, Apr 11, 2009 at 8:28 AM, babu  wrote:
>
> >>> Dear all,
>
> >>> I am currently facing a problem in which i am not able to understand
> >>> the reason. This problem is happening only in hosted mode and when
> >>> using IE.In Mozilla firefox it is working fine.
> >>> I am currently having an application in GWT containing Some grids and
> >>> some  drill down charts using fusion charts . If i clicked on a fusion
> >>> chart the other drill down chart is loading.When i clicked the second
> >>> one,the third drill down chart is loading.Its working perfect.
> >>> Now if i took another page then tried the above procedures in hosted
> >>> mode or in IE, All the charts are going to an invinsible mode . I can
> >>> see only a white screen which contains nothing . Only i can view the
> >>> back,forward,refresh,stop button and the url.
>
> >>> Now if i again load the application and took the page that gone blank
> >>> before it will work fine,but the other page which was working fine
> >>> will be going to the blank page which i told above.
>
> >>> In GWT development shell i was getting an uncaught Exception which is
> >>> attached below.( Even i am getting this exception rarely,Not every
> >>> time )
>
> >>> [source][ERROR] Uncaught exception escaped
>
> >>> java.lang.NullPointerException: null
> >>> at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
> >>> (JavaScriptHost.java:91)
> >>> at com.google.gwt.http.client.XMLHTTPRequest.getBrowserSpecificFailure
> >>> (XMLHTTPRequest.java)
> >>> at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
> >>> (Request.java:248)
> >>> at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
> >>> (Request.java:226)
> >>> at com.google.gwt.http.client.Request.fireOnResponseReceived
> >>> (Request.java:217)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>> at sun.reflect.NativeMethodAccessorImpl.invoke
> >>> (NativeMethodAccessorImpl.java:39)
> >>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
> >>> (DelegatingMethodAccessorImpl.java:25)
> >>> at java.lang.reflect.Method.invoke(Method.java:585)
> >>> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
> >>> 103)
> >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
> >>> (IDispatchImpl.java:126)
> >>> at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
> >>> (IDispatchProxy.java:155)
> >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
> >>> 294)
> >>> at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
> >>> (IDispatchImpl.java:194)
> >>> at org.eclipse.swt.internal.ole.win32.COMObject.callback6
> >>> (COMObject.java:117)
> >>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
> >>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
> >>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
> >>> at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
> >>> at com.google.gwt.dev.GWTS

Re: Reading content form a website

2009-04-13 Thread Vitali Lovich
Unless you use the importing script trick.

On Mon, Apr 13, 2009 at 11:41 AM, FKereki  wrote:

>
> Also, when working with client-side code, keep in mind the "Same
> Origin Policy"; you won't be able to read from a different URL.
>
> Good luck!
> >
>

--~--~-~--~~~---~--~~
You received 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: Tab Remove Listner

2009-04-13 Thread Salvador Diaz

TabPanel doesn't raise any TabRemove event (if you look at the javadoc
at 
http://google-web-toolkit.googlecode.com/svn/javadoc/1.6/com/google/gwt/user/client/ui/TabPanel.html
you'll see what events it does raise).

You can extend the standard TabPanel, create the TabRemove event and
raise it when a tab is removed if you want (override the remove
methods to do this). I suggest you look at the source code of TabPanel
to see examples of how an event is raised.

Cheers,

Salvador

On Apr 13, 3:22 pm, Ian Bambury  wrote:
> If you are removing the tab programmatically, can't you just call the
> routine?
> Ian
>
> http://examples.roughian.com
>
> 2009/4/13 Allahbaksh 
>
>
>
> > Hi All,
> > How do you add a listner for Tab Remove event. I will remove the Tab
> > programmatically and want some events to be fired after that.
>
> > Regards,
> > Allahbaksh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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 and GXT

2009-04-13 Thread Paul Grenyer

Hi All

> Anyway, it seems to be working perfectly now, I just need to try a
> more complex example and blog it.

My "more complex" example worked first time and my blog entry is here:
http://paulgrenyer.blogspot.com/2009/04/setting-up-gwt-ext-for-gwt-16-with.html

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



upload file : gwt api + gwt ext api

2009-04-13 Thread loudo

Hello,

Can i use the class FileUpload (gwt api)
http://google-web-toolkit.googlecode.com/svn/javadoc/1.5/index.html?overview-summary.html
with the FormPanel (gwt ext api) http://www.gwt-ext.com/docs/2.0.4/ ?

I ask this question because i have not foud an object FIleUpload in
the gwt ext api.

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



Can't use slf4j on hosted mode

2009-04-13 Thread Célio

I have just migrated our gwt app from 1.5 to 1.6.  Everything is fine
except that slf4j classes can't be loaded on hosted mode.  We actually
use slf4j in our web app to log our own stuff.  The problem is that
the hosted mode class loader don't allow server classes to be loaded
from the outside world.  It checks the class name against a list of
server classes that jetty hard-codes somewhere, and that list contains
the org.slf4f package.

WebAppClassLoaderExtension.findClass(String name) {
  @Override
  protected Class findClass(String name) throws
ClassNotFoundException {
  ...
  // Don't allow server classes to be loaded from the outside.
  if (isServerPath(name)) {
throw e;
  }
  ...
  }
}

isServerPath is defined by the subclass:

public class WebAppClassLoader
{
public boolean isServerPath(String name)
{
...
String[] server_classes = _context.getServerClasses();
// if the name is in the list, return true (basically).
}

Where _context is a:

public class WebAppContext extends Context
{
...
private String[] _serverClasses = {"-
org.mortbay.jetty.plus.jaas.", "org.mortbay.jetty.", "org.slf4j."};
 // TODO
hide all mortbay classes
...
public String[] getServerClasses()
{
return _serverClasses;
}
}


Does anybody know how to workaround this issue?

Cheers,

Célio

--~--~-~--~~~---~--~~
You received 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 - Jetty - Hosted Mode - how to provide JVM parameter "-javaagent"

2009-04-13 Thread EZhulenev

I have the same problem. How is it possible to use spring-agent in
hosted 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
-~--~~~~--~~--~--~---



Two clients one session

2009-04-13 Thread davidst...@gmail.com

Hi.
While trying to test my app, i open two clients in Hosted Mode.
After i log, i return to the client the session id

HttpSession session = getThreadLocalRequest().getSession(true);
session.setAttribute( "userId", id );
return session.getId();

The problem is, that GWT does not open new session for the second
client, but
"reuses" the session that was opened for the previous one.

Does any body have any idea why does it happens ?
Does it depend on the mode ?
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
-~--~~~~--~~--~--~---



erro while try to do "Store data in the datastore" Example

2009-04-13 Thread @lex

Hi, I would like some help to resolve this problem at the example of
GWT using Gdatastore:
 http://code.google.com/webtoolkit/tutorials/1.6/appengine.html#data


All application run well following the getting start tutorial, so when
I try to improve using data store at this implementation an erro
occurs because stockService is not declare yet.
I tryed to force the declaration using "StockService stockService =
GWT.create(StockService.class);" but another erro is get with the
method getStocks.

  private void loadStocks() {
stockService = GWT.create(StockService.class);
stockService.getStocks(new AsyncCallback() {
  public void onFailure(Throwable error) {
  }
  public void onSuccess(String[] symbols) {
displayStocks(symbols);
  }
});
  }

  private void displayStocks(String[] symbols) {
for (String symbol : symbols) {
  displayStock(symbol);
}
  }

If there is no mistake I would like to know where I can download the
caomplete example with datastore workings.

Ty.

--~--~-~--~~~---~--~~
You received 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.StackOverflowError with GWT

2009-04-13 Thread Andy

Well, Alex is right - I just upgraded to Java 1.6 and everything
works.

...plus the JavaScript now compiles lightning fast!!!
--~--~-~--~~~---~--~~
You received 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: problems upgrading an existing project to 1.6.x

2009-04-13 Thread pohl

I was able to work around this.   My original solution (in comment #8
of the issue mentioned above)
did not need to be altered at all.   This  time all I needed to do was
replace the older GWTx-20070605.jar
with the newer gwtx-1.5.2.jar

Their change in the naming scheme didn't make it obvious to me that
the latter was newer, but I guess it is.


--~--~-~--~~~---~--~~
You received 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: Loading an image using GWT 1.6.4

2009-04-13 Thread Fabrício Cabral

On Mon, Apr 13, 2009 at 6:37 AM, Magius  wrote:
> Hi,

Hi,

> you have to use GWT.getModuleBaseURL() to reference module related
> resources.
> If you have generic images you can put them in 'war/images' and access
> them as indicated above.

Ah, ok! Thank you very much,

-- 
--fx

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



Announcement: Google Charts for GWT

2009-04-13 Thread Carl Scott

Hi friends,

Haven't been around the forums for a bit, but I've been keeping up!
Anyway, I've noticed a few discussions regarding this so I wanted to
share.

If you've been looking to use the Google Charts API for your GWT
application, I've been working on a open-source solution.  Check the
details, sample app, and source here:

http://gogocarl.blogspot.com/2009/04/google-charts-for-gwt.html

Essentially, this provides a wrapper for the Google Charts API.  Very
lightweight, but provides lots of options and customizations.  I am
well-aware of the other viable chart options for GWT that exist, but
note that this is not meant to compete this those.  Other chart
implementations tend to have dependencies such as Ext or Flash,
whereas this is directly based on the Google Charts API, which simply
yields a static image, nothing else necessary!  If you want something
dynamic with glitz and glamour, you want one of those
implementations.

To learn more about the Google Charts API:
http://code.google.com/apis/chart/

Anyway, hope this is useful to some, have a great day!

--
Carl Scott
Software Developer, Solertium Corporation
--~--~-~--~~~---~--~~
You received 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: problems upgrading an existing project to 1.6.x

2009-04-13 Thread pohl

A minor breakthrough, but still no resolution.  I googled for the
above error message and found this old issue in the GWT tracking
system.I had even commented in that thread!


http://code.google.com/p/google-web-toolkit/issues/detail?id=923

So this appears to be something GWTx related that bit  me on the 1.4.x
-> 1.5.x transition too.
--~--~-~--~~~---~--~~
You received 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: Reading content form a website

2009-04-13 Thread FKereki

Also, when working with client-side code, keep in mind the "Same
Origin Policy"; you won't be able to read from a different URL.

Good luck!
--~--~-~--~~~---~--~~
You received 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: problems upgrading an existing project to 1.6.x

2009-04-13 Thread pohl

Have there been any tweaks to generics in Java since version 1.5?
Maybe the newer GWT depends upon a newer version of Java itself, and
I'm using a JRE that's too old?

fnord:pohl$ java -version
java version "1.5.0_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-
b06-284)
Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)

--~--~-~--~~~---~--~~
You received 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: '$wnd.Ext.StatusBar' is null or not an object

2009-04-13 Thread Paul Grenyer

Again, take a look at my other thread. Nick has solved the problem for
us. I suspect you'll have to modify your maven script to get gxt-2.0.2
as well..

On Sun, Apr 12, 2009 at 4:39 PM, Payam  wrote:
>
> I am using Maven to get the libraries. Here is what I have in my
> pom.xml for gwt-ext:
>
>        
>            gwtext
>            http://www.gwt-ext.com/maven2/
>        
>
>                
>                        com.gwtext
>                        gwtext
>                        2.0.5
>                
>
> The rest of my setup is included in my posts above.
>
> Hope this helps. Please let me know whether you run into the same
> issue when setting it up this way.
>
> Payam
>
> On Apr 12, 11:01 am, "Paul Grenyer"  wrote:
>> Hi
>>
>> No worries, although I haven't been any help yet.
>>
>> I obviously have my environment configured incorrectly. Would you be so kind 
>> as to describe your setup in detail so I can make mine the same, please?
>>
>> Sent from my BlackBerry® wireless device
>>
>> -Original Message-
>> From: Payam 
>>
>> Date: Sun, 12 Apr 2009 07:06:34
>> To: Google Web Toolkit
>> Subject: Re: '$wnd.Ext.StatusBar' is null or not an object
>>
>> Thanks for your reply. I took a look at your posting and the entire
>> thread. The only js file I can find with the downloaded gwt-ext jar is
>> GwtExt.jar. All the postings related to this that I have found talk
>> about other javascript files (like gwt-all.jar, etc.) that I cannot
>> find in my downloaded 2.0.5 jar. Any other thoughts?
>>
>> Thanks,
>> Payam
>>
>> On Apr 12, 4:57 am, Paul Grenyer  wrote:
>> > Hi
>>
>> > Take a look at my latest post to the "GWT 1.6 and GXT" thread I
>> > started yesterday. It might help you get a bit further.
>>
>> > --
>> > Thanks
>> > Paul
>>
>> > Paul Grenyer
>> > e: paul.gren...@gmail.com
>> > w:http://www.marauder-consulting.co.uk
>> > b: paulgrenyer.blogspot.com
> >
>



-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: GWT 1.6 and GXT

2009-04-13 Thread Paul Grenyer

Hi Nick

> I was able to get a MessageBox to pop-up. I put the following in my
> *.gwt.xml file:
>
>  
> 
> ...
>  
> 
> 
> ...
>
> I added a "js" folder under the WAR folder. In that folder, I copied
> the entire contents of EXT zip file.
> Of course, I put the gwtext.jar in the war/WEB-INF/lib folder and
> added it to my build path.

This was almost the final piece of the puzzle! When I did the above it
worked in hosted mode, but not when deployed to TomCat. I was able to
get it working, however, with a minor modification:





I suspect the the "root" directory (i.e. that accessed by starting the
url with /) for a TomCat app is different to Jetty/hosted mode. So,
adding ../ to the start of the url makes it relative to the rest of
the GWT JavaScript (in my case the masterplan directory) for the
application.

Anyway, it seems to be working perfectly now, I just need to try a
more complex example and blog it.

Thanks Nick! If I ever get the chance I'll happily buy you a beer.

(Now I just need to work out why Hibernate is giving rows from a table
twice and I'll have had a very successful weekend!).

-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: problems upgrading an existing project to 1.6.x

2009-04-13 Thread pohl

The GWTCompiler class appears to be a simple wrapper for handling the
old-style arguments, so it shouldn't be causing the problem.   I'm not
sure I have time to perform that experiment, and I'm pretty sure it
would bear no fruit.

Indeed it does look like there's an old gwt-user.jar in my
environment, doesn't it.  That was my first thought, too.  I've
scrubbed my machine very carefully, with no change in the observable
symptoms.   I've compared file sizes/dates on all the jars.

But, looking closer, it actually seems like the opposite in some
ways.  Consider these errors:

[ERROR] Errors in 'jar:file:/Users/pohl/Source/CP/trunk/
Libraries/GWT_Packaged/gwt-user.jar!/com/google/gwt/emul/java/util/
Collections.java'
   [ERROR] Line 647: The type Enumeration is not generic;
it cannot be parameterized with arguments 
   [ERROR] Line 649: The type Enumeration is not generic;
it cannot be parameterized with arguments 
   [ERROR] Line 677: The type Enumeration is not generic;
it cannot be parameterized with arguments 


What it's actually saying is that Collections.java has a generic
parameter in it, but the compiler is complaining that it is not
allowed.   So this means that the gwt-user.jar is using generics more
than the compiler thinks it should...so it's almost as if I have a
newer gwt-user.jar but an older gwt-dev-mac.jar.

However, the GWTCompiler deprecation message clearly proves
otherwise:  obviously I'm invoking the 1.6.4 compiler.   I'm
perplexed.


--~--~-~--~~~---~--~~
You received 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: DialogBox Offset Width is allways 400

2009-04-13 Thread JensS

Oh thank you very much that's it.
I forgot that from the sample of eclipse the css was allready set.
--~--~-~--~~~---~--~~
You received 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 eclipse3.4 launch GWT hosted mode with deprecated com.google.gwt.dev.GWTShell

2009-04-13 Thread Jason Essington

yup, the plugin looks for two things, first you must be using the GWT  
1.6.x libs, and second, you must have a [project]/war/WEB-INF/web.xml  
file.

as Isaac said:
if you are missing the web.xml you'll have to add it, then disable gwt  
for that project, refresh the project (so the war/WEB-INF/web.xml file  
appears in eclipse) then re-enable gwt for that project. That should  
switch the launcher to using HostedMode rather than GWTShell.

-jason

On Apr 13, 2009, at 7:51 AM, Kelvin wrote:

>
> of course it works if I launch the Hosted Mode by general java
> application and choose "com.google.gwt.dev.HostedMode" as Main class.
> But I have to configurate source path/class path etc. So I would like
> to launch with GWT eclipse plugin if possible :P
>
> On Apr 13, 8:03 pm, Salvador Diaz  wrote:
>> You might want to check your launch configuration (Click on the Debug
>> icon in the toolbar, then "Debug configurations..." then "Java
>> application" then the name of your launcher ) and make sure that
>> you're using com.google.gwt.dev.HostedMode as the main class (in the
>> "Main" tab)
>>
>> On Apr 11, 4:15 am, Kelvin  wrote:
>>
>>> Thanks for you advice.
>>
>>> My orginal project is a eclipse dynamic web project(WST), I rename  
>>> the
>>> "WebContent" folder to "war" and modify the .classpath file to make
>>> sure that the WST sense the change and fit the GWT 1.6 war layout.
>>
>>> Then I enable the GWT nature and launch the Hosted Mode, It still
>>> launched with GWT 1.5 GWTShell.
>>
>>> Strange...
>>
>>> On Apr 10, 10:36 pm, Isaac Truett  wrote:
>>
 As I understand it, thepluginhas to detect that you're using the  
 new
 war layout in order to use the new hosted mode. You should be  
 able to
 convince it of this by adding war/web-inf/web.xml. You will also  
 need
 to disable the GWT nature, refresh the project (F5) and re-enable  
 the
 GWT nature.
>>
 On Fri, Apr 10, 2009 at 10:31 AM, Kelvin   
 wrote:
>>
> I installed Googlepluginfor eclipse3.4 and enable gwt nature for  
> an
> existing GWT project.
>>
> However, it always launch hosted mode with deprecated
> 'com.google.gwt.dev.GWTShell'
>>
> WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> removed in a future release.
> Use 'com.google.gwt.dev.HostedMode' instead.
> (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM
> arg.)
>>
> But I wonder why then I created a brand new GWT project with  
> Google
> plugin, It can be launched with 'com.google.gwt.dev.HostedMode'.
>>
> Sorry for posting the question here as I cannot find a group for
> Google EclipsePlugin:P
> >


--~--~-~--~~~---~--~~
You received 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 and GXT

2009-04-13 Thread Paul Grenyer

Hi

I've done some more playing and simplified my code:

> 1. created a GWT 1.6 project with the plugin.
> 2. Added gwtext.jar to war/web-inf/lib and to my project dependancies
> 3. Added the following to my .gwt.xml file:
>
> 
> ...
> 
>
> 4. Modified my entry point to show a simple dialogbox:

public class Metallica implements EntryPoint
{

public void onModuleLoad()
{
Panel mainPanel = new Panel();

mainPanel.setTitle("Hello World!");
mainPanel.setHeight(300);
mainPanel.setWidth(500);

RootPanel.get().add(mainPanel);

}
}

I now get the same problem as Payam (even in hosted mode):

[ERROR] Unable to load module entry point class
com.metallica.client.Metallica (see associated exception for details)
com.google.gwt.core.client.JavaScriptException: (TypeError):
'$wnd.Ext.StatusBar' is null or not an object
 number: -2146823281
 description: '$wnd.Ext.StatusBar' is null or not an object
at com.gwtext.client.widgets.Component.checkExtVer(Native Method)
at com.gwtext.client.widgets.Component.(Component.java:108)
at com.metallica.client.Metallica.onModuleLoad(Metallica.java:15)

Someone must have GWT-EXT working with GWT 1.6?


-- 
Thanks
Paul

Paul Grenyer
e: paul.gren...@gmail.com
w: http://www.marauder-consulting.co.uk
b: paulgrenyer.blogspot.com

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



Re: GWT 1.6 and GXT

2009-04-13 Thread Nick

I was able to get a MessageBox to pop-up. I put the following in my
*.gwt.xml file:



...



...

I added a "js" folder under the WAR folder. In that folder, I copied
the entire contents of EXT zip file.
Of course, I put the gwtext.jar in the war/WEB-INF/lib folder and
added it to my build path.

I then used the same code you did and got a message box pop-up,
including the verification text.

It's interesting to note that I was unable to make this work by
putting the javascript and css declarations inside the static HTML
file as seems to be the standard in 1.6.

-Nick

On Apr 13, 4:27 am, Paul Grenyer  wrote:
> Hi All
>
> Sorry to keep perpetuating this, but I didn't like the widgets in GXT
> as much as GWT-EXT, so I'm back on with GWT-GXT.
>
> I've:
>
> 1. created a GWT 1.6 project with the plugin.
> 2. Added gwtext.jar to war/web-inf/lib and to my project dependancies
> 3. Added the following to my .gwt.xml file:
>
> 
> ...
> 
>
> 4. Modified my entry point to show a simple dialogbox:
>
> MessageBox.confirm("Confirm", "Are you sure you want to do that?", new
> MessageBox.ConfirmCallback()
> {
>     public void execute(String btnID)
>     {
>         System.out.println("Button Click : " + Format.format("You
> clicked the {0} button", btnID));
>         }
>
> });
>
> When I run the app in hosted mode (even following a compile),
> everything loads ok but I get the following erro when I click the
> button that should show the dialog box:
>
> [ERROR] Uncaught exception escaped
> java.lang.ExceptionInInitializerError: null
>         at com.gwtext.client.widgets.MessageBox.(MessageBox.java:67)
>         at 
> com.masterplan.client.MasterPlan$1MyHandler.onClick(MasterPlan.java:95)
>         at 
> com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54)
>         at 
> com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
>         at 
> com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
>         at 
> com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
>         at 
> com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:178)
>         at com.google.gwt.user.client.ui.Widget.fireEvent(Widget.java:52)
>         at 
> com.google.gwt.event.dom.client.DomEvent.fireNativeEvent(DomEvent.java:116)
>         at com.google.gwt.user.client.ui.Widget.onBrowserEvent(Widget.java:90)
>         at com.google.gwt.user.client.DOM.dispatchEventImpl(DOM.java:1320)
>         at com.google.gwt.user.client.DOM.dispatchEventAndCatch(DOM.java:1299)
>         at com.google.gwt.user.client.DOM.dispatchEvent(DOM.java:1262)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>         at java.lang.reflect.Method.invoke(Unknown Source)
>         at 
> com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
>         at 
> com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod(IDispatchImpl.java:126)
>         at 
> com.google.gwt.dev.shell.ie.IDispatchProxy.invoke(IDispatchProxy.java:155)
>         at 
> com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:294)
>         at 
> com.google.gwt.dev.shell.ie.IDispatchImpl.method6(IDispatchImpl.java:194)
>         at 
> org.eclipse.swt.internal.ole.win32.COMObject.callback6(COMObject.java:117)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>         at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>         at 
> com.google.gwt.dev.SwtHostedModeBase.processEvents(SwtHostedModeBase.java:235)
>         at 
> com.google.gwt.dev.HostedModeBase.pumpEventLoop(HostedModeBase.java:558)
>         at com.google.gwt.dev.HostedModeBase.run(HostedModeBase.java:405)
>         at com.google.gwt.dev.HostedMode.main(HostedMode.java:232)
> Caused by: com.google.gwt.core.client.JavaScriptException:
> (TypeError): '$wnd.Ext' is null or not an object
>  number: -2146823281
>  description: '$wnd.Ext' is null or not an object
>         at com.gwtext.client.core.Ext.setBlankImageUrl(Native Method)
>         at com.gwtext.client.core.JsObject.(JsObject.java:37)
>         at com.gwtext.client.widgets.MessageBox.(MessageBox.java:67)
>         at 
> com.masterplan.client.MasterPlan$1MyHandler.onClick(MasterPlan.java:95)
>         at 
> com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:54)
>         at 
> com.google.gwt.event.dom.client.ClickEvent.dispatch(ClickEvent.java:1)
>         at 
> com.google.gwt.event.shared.HandlerManager$HandlerRegistry.fireEvent(HandlerManager.java:65)
>         at 
> com.google.gwt.event.shared.HandlerManager$HandlerRegistry.access$1(HandlerManager.java:53)
>         at 
> com.google.gwt.event.shared.HandlerManager.fireE

CCH/Wolters Kluwer has launched IntelliConnect - GWT based Web Application

2009-04-13 Thread Anthony O


For those looking for a pretty significant product built using GWT
please check out:

http://tax.cchgroup.com/default

Click on the IntelliConnect demo video.

This was a large development effort a few years in the making.

Anthony O
--~--~-~--~~~---~--~~
You received 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: DialogBox Offset Width is allways 400

2009-04-13 Thread Geraldo Lopes

Check the .css, it contains definition that seems to interfere.


On 12 abr, 15:35, JensS  wrote:
> Hello,
> I am using GWT Version 1.6.4 (Subversion 1...@5191).
> I am having a problem with using the DialogBox i would like to center
> the dialog, the dialog is shown but not in the center of the screen
> ( horizontal ). So I looked up the offset width of the dialog box but
> it is allways 400 also if I change the widget or set the size with the
> method setSize.
> I could only test it offline and the described problem did not occured
> in any of the samples from google, I copyed some but there the problem
> occured also.
> So it would be nice if anyone could approve the described problem or
> could tell me what I am doing wrong.
> Kind Regards
> Jens
--~--~-~--~~~---~--~~
You received 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 eclipse3.4 launch GWT hosted mode with deprecated com.google.gwt.dev.GWTShell

2009-04-13 Thread Kelvin

of course it works if I launch the Hosted Mode by general java
application and choose "com.google.gwt.dev.HostedMode" as Main class.
But I have to configurate source path/class path etc. So I would like
to launch with GWT eclipse plugin if possible :P

On Apr 13, 8:03 pm, Salvador Diaz  wrote:
> You might want to check your launch configuration (Click on the Debug
> icon in the toolbar, then "Debug configurations..." then "Java
> application" then the name of your launcher ) and make sure that
> you're using com.google.gwt.dev.HostedMode as the main class (in the
> "Main" tab)
>
> On Apr 11, 4:15 am, Kelvin  wrote:
>
> > Thanks for you advice.
>
> > My orginal project is a eclipse dynamic web project(WST), I rename the
> > "WebContent" folder to "war" and modify the .classpath file to make
> > sure that the WST sense the change and fit the GWT 1.6 war layout.
>
> > Then I enable the GWT nature and launch the Hosted Mode, It still
> > launched with GWT 1.5 GWTShell.
>
> > Strange...
>
> > On Apr 10, 10:36 pm, Isaac Truett  wrote:
>
> > > As I understand it, thepluginhas to detect that you're using the new
> > > war layout in order to use the new hosted mode. You should be able to
> > > convince it of this by adding war/web-inf/web.xml. You will also need
> > > to disable the GWT nature, refresh the project (F5) and re-enable the
> > > GWT nature.
>
> > > On Fri, Apr 10, 2009 at 10:31 AM, Kelvin  wrote:
>
> > > > I installed Googlepluginfor eclipse3.4 and enable gwt nature for an
> > > > existing GWT project.
>
> > > > However, it always launch hosted mode with deprecated
> > > > 'com.google.gwt.dev.GWTShell'
>
> > > > WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> > > > removed in a future release.
> > > > Use 'com.google.gwt.dev.HostedMode' instead.
> > > > (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM
> > > > arg.)
>
> > > > But I wonder why then I created a brand new GWT project with Google
> > > >plugin, It can be launched with 'com.google.gwt.dev.HostedMode'.
>
> > > > Sorry for posting the question here as I cannot find a group for
> > > > Google EclipsePlugin:P
--~--~-~--~~~---~--~~
You received 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: Tab Remove Listner

2009-04-13 Thread Ian Bambury
If you are removing the tab programmatically, can't you just call the
routine?
Ian

http://examples.roughian.com


2009/4/13 Allahbaksh 

>
> Hi All,
> How do you add a listner for Tab Remove event. I will remove the Tab
> programmatically and want some events to be fired after that.
>
> Regards,
> Allahbaksh
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---



Tab Remove Listner

2009-04-13 Thread Allahbaksh

Hi All,
How do you add a listner for Tab Remove event. I will remove the Tab
programmatically and want some events to be fired after that.

Regards,
Allahbaksh
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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
-~--~~~~--~~--~--~---



setting html of iframe

2009-04-13 Thread Prashant Gupta
is there any way to set html inside a GWT Frame or an iframe

--~--~-~--~~~---~--~~
You received 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.StackOverflowError with GWT

2009-04-13 Thread Rockster

This is what I do and it fails

The sysproperty doesn't have any effect.

Hope to hear from you guys soon (again, I'm using jdk1.5/winxp).


















On Apr 13, 11:24 am, Vitali Lovich  wrote:
> Heap space isn't his problem - he's running out of stack.  Also, GWTCompiler
> is 1.5 - he's using 1.6 (from what I gather, because this wasn't an issue
> with 1.5) where it is just Compiler.
>
> Can you try to just keep increasing the stack size?  Also, can you post the
> ant task you are using - maybe you're passing in the options incorrectly.
>
> On Mon, Apr 13, 2009 at 4:52 AM, Shawn Brown 
> wrote:
>
>
>
>
>
> > What about using something like:
>
> >  >  classname="com.google.gwt.dev.GWTCompiler">
> >                        
> > ...
>
> > Shawn
--~--~-~--~~~---~--~~
You received 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 eclipse3.4 launch GWT hosted mode with deprecated com.google.gwt.dev.GWTShell

2009-04-13 Thread Salvador Diaz

You might want to check your launch configuration (Click on the Debug
icon in the toolbar, then "Debug configurations..." then "Java
application" then the name of your launcher ) and make sure that
you're using com.google.gwt.dev.HostedMode as the main class (in the
"Main" tab)

On Apr 11, 4:15 am, Kelvin  wrote:
> Thanks for you advice.
>
> My orginal project is a eclipse dynamic web project(WST), I rename the
> "WebContent" folder to "war" and modify the .classpath file to make
> sure that the WST sense the change and fit the GWT 1.6 war layout.
>
> Then I enable the GWT nature and launch the Hosted Mode, It still
> launched with GWT 1.5 GWTShell.
>
> Strange...
>
> On Apr 10, 10:36 pm, Isaac Truett  wrote:
>
> > As I understand it, thepluginhas to detect that you're using the new
> > war layout in order to use the new hosted mode. You should be able to
> > convince it of this by adding war/web-inf/web.xml. You will also need
> > to disable the GWT nature, refresh the project (F5) and re-enable the
> > GWT nature.
>
> > On Fri, Apr 10, 2009 at 10:31 AM, Kelvin  wrote:
>
> > > I installed Googlepluginfor eclipse3.4 and enable gwt nature for an
> > > existing GWT project.
>
> > > However, it always launch hosted mode with deprecated
> > > 'com.google.gwt.dev.GWTShell'
>
> > > WARNING: 'com.google.gwt.dev.GWTShell' is deprecated and will be
> > > removed in a future release.
> > > Use 'com.google.gwt.dev.HostedMode' instead.
> > > (To disable this warning, pass -Dgwt.nowarn.legacy.tools as a JVM
> > > arg.)
>
> > > But I wonder why then I created a brand new GWT project with Google
> > >plugin, It can be launched with 'com.google.gwt.dev.HostedMode'.
>
> > > Sorry for posting the question here as I cannot find a group for
> > > Google EclipsePlugin:P
--~--~-~--~~~---~--~~
You received 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 set icon of tree nodes via CSS

2009-04-13 Thread salvador.ce
Check the size of the image, it should be 16 x 16.

:)

<><><><><>


2009/4/13 Vitali Lovich 

> try using Firebug to determine that you're CSS properties are actually
> being used.
>
> On Mon, Apr 13, 2009 at 6:47 AM, Mark RG Itol  wrote:
>
>>
>> Hi guys,
>> Any ideas so far? :)
>>
>> On Apr 8, 5:04 pm, Mark RG Itol  wrote:
>> > Hi guys, would like to follow up on this one. Do you have any ideas?
>> > Thanks a lot. :)
>> >
>> > On Apr 2, 6:47 pm, Mark RG Itol  wrote:
>> >
>> >
>> >
>> > > Hi guys,
>> >
>> > > I am using GWT's Treepanel and I need to set different icons for my
>> > > TreeNodes.
>> > > I tried using TreeNode.setIconCls(String) but it doesn't seem to work.
>> > > My style names are contained in a CSS file and I am also using these
>> > > style names
>> > > in setting the icons of menu items (using setIconCls()) and they work
>> > > (the icons appear on the menu items).
>> >
>> > > Below are some code snippets:
>> >
>> > > Java:
>> > > TreeNode configNode = new TreeNode("+ New");
>> > > configNode.setUserObject(-1L);
>> > > configNode.setIconCls("new");
>> > > parentNode.appendChild(configNode);
>> >
>> > > CSS:
>> > > .new{background-image:url(../images/payroll/new.png);}
>> >
>> > > I don't know what I'm missing here -- the codes I've seen in the GWT
>> > > demo are using the same implementation (setIconCls).
>> >
>> > > Thank you in advance. :)
>> >
>> > > Best regards,
>> > > Mark
>>
>>
>
> >
>


-- 
Carlos Salvador
Consultor BI / SAP BW BPS
021-8426-8120
011-9579-7865

--~--~-~--~~~---~--~~
You received 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 & Maven2 - A real how-to?

2009-04-13 Thread Salvador Diaz

I just posted a more or less detailed description and a link to a
project sample in this thread:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/791832a0e177e87e/d1b21249e3fcfb7c#d1b21249e3fcfb7c

On Mar 30, 9:52 am, Sam Brodkin  wrote:
> jv, try this:
>
> http://code.google.com/p/gwt-maven2-starter-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
-~--~~~~--~~--~--~---



Re: GWT 1.6 with Maven and build system questions/survey...

2009-04-13 Thread Salvador Diaz

I work in a smallish-medium agile environment (12 developers for 3
teams, ~6 GWT 1.5 projects, of which 3 are actively developed during
an iteration) and we happily use maven to manage our projects'
lifecycles.

We used to compile our GWT app with the gwt-maven-plugin hosted at
google code but we recently moved to the mojo one (the merge between
the 2 plugins is finished as far as I can tell in version 1.1-
SNAPSHOT). The configuration is simpler and environment-agnostic (no
need to specify one profile for each OS, the plugin detects the OS and
sets up the correct dependencies automatically). We use the maven
project structure:
* sources in src/main/java
* unit tests sources in src/test/java
* resources in src/main/resources (including GWT module configuration,
html, css and image files, as well as text bundles (for localization
and such))
* war related files in src/main/webapp (currently only WEB-INF/
web.xml)

We set the GWT compiler to output files to target/gwt and then the war
plugin assembles the war file merging src/main/webapp and the gwt
compiler output. The resulting war is immediately deployable on a
tomcat.

We code in eclipse and let the m2eclipse plugin configure the project.
For debugging we create an eclipse launcher manually for each OS
(normally there's a goal in the gwt-maven-plugin to create a launcher
but we haven't tested it as the launcher doesn't change much over
time), and we add the following to the classpath: the project, the
maven classpath, the src/main/resources folder and the OS specific gwt-
dev jar

It all integrates very nicely and once the project is set up we rarely
think about configuration or building the project (as this is managed
automatically by a hudson build manager which polls the svn and builds
the war and deploys it when necessary). We can really concentrate in
coding with this setup.

I'm currently investigating the effort needed to migrate from GWT
1.5.3 to 1.6.4 and I have encountered some issues, mainly with the new
project structure and the hostedMode configuration. The new hosted
mode works quite differently, it now outputs the resource files
declared in the Module.gwt.xml file to a folder named like the module
(the location of this folder defaults to a folder named war at the
root of the project, but it can be configured with the argument -war)
and it now expects to find the WEB-INF folder and associated web.xml
file on that war folder. Currently I haven't managed to call RPC's due
to this change, but I guess I could configure the maven resources
plugin to copy the WEB-INF folder to the war folder during the process-
resources phase. I'll let you know if this works.

Cheers,

Salvador

PS: If you're interested in the project configuration I described
here, you can check out one of my pet projects at 
http://code.google.com/p/hellagwt/.
If you need any help with maven-gwt integration, I'll be glad to
answer any questions in this thread.

On Apr 12, 8:51 pm, olivier nouguier 
wrote:
> On Sun, Apr 12, 2009 at 7:35 PM, Daniel Kurka
> wrote:
>
> > Currently we are trying to update our buildsystem from gwt 1.5 + gwt-maven
> > from google code
>
> > We are trying to use the trunk of gwt-maven from codehaus since those two
> > plugins are merging.
>
> > We were able to sucessfully compile a gwt project, but we still have some
> > open issues.
>
> > Has anyone a working installation of GWT 1.6 and Maven?
>
> Yes (mac os x, during week) linux && zindozs during week.
>
>
>
> --
>    “There are two ways of constructing a software design: One way is to make
> it so simple that there are obviously no deficiencies, and the other way is
> to make it so complicated that there are no obvious deficiencies. The first
> method is far more difficult.”
>
>    Sir Charles Anthony Richard Hoare
--~--~-~--~~~---~--~~
You received 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.4: Exception in DriverManager.getConnection

2009-04-13 Thread martin

Ok, I solved the problem  ;-)

Go to the project's properties and uncheck "Use Google App Engine".
Additionally, as vitali mentioned, the mysql-connector jar has to be
in the war/WEB-INF/lib directory.
Cheers,

Martin.

On Apr 12, 3:16 pm, IvanRdz  wrote:
> I have the same problem and I am sure it´s due to Jetty and security
> settings as you have mentioned. Are you using google plugin?
>
> On Apr 11, 7:59 pm, martin  wrote:
>
> > Ok, I am still stuck :-(
> > Anybody got Mysql working with GWT 1.6.4? It worked fine for GWT 1.5
> > for me, but something seems to have changed with GWT 1.6.4.
> > Maybe it is due to Jetty and security settings, since I get a
> > "java.security.AccessControlException"... All I did was to add the "/
> > usr/share/java/mysql-connector-java-5.1.6.jar" to the referenced
> > libraries.
>
> > Please help me out!
> > Thanks,
> > Martin.
--~--~-~--~~~---~--~~
You received 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 set icon of tree nodes via CSS

2009-04-13 Thread Vitali Lovich
try using Firebug to determine that you're CSS properties are actually being
used.

On Mon, Apr 13, 2009 at 6:47 AM, Mark RG Itol  wrote:

>
> Hi guys,
> Any ideas so far? :)
>
> On Apr 8, 5:04 pm, Mark RG Itol  wrote:
> > Hi guys, would like to follow up on this one. Do you have any ideas?
> > Thanks a lot. :)
> >
> > On Apr 2, 6:47 pm, Mark RG Itol  wrote:
> >
> >
> >
> > > Hi guys,
> >
> > > I am using GWT's Treepanel and I need to set different icons for my
> > > TreeNodes.
> > > I tried using TreeNode.setIconCls(String) but it doesn't seem to work.
> > > My style names are contained in a CSS file and I am also using these
> > > style names
> > > in setting the icons of menu items (using setIconCls()) and they work
> > > (the icons appear on the menu items).
> >
> > > Below are some code snippets:
> >
> > > Java:
> > > TreeNode configNode = new TreeNode("+ New");
> > > configNode.setUserObject(-1L);
> > > configNode.setIconCls("new");
> > > parentNode.appendChild(configNode);
> >
> > > CSS:
> > > .new{background-image:url(../images/payroll/new.png);}
> >
> > > I don't know what I'm missing here -- the codes I've seen in the GWT
> > > demo are using the same implementation (setIconCls).
> >
> > > Thank you in advance. :)
> >
> > > Best regards,
> > > Mark
> >
>

--~--~-~--~~~---~--~~
You received 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 with Maven and build system questions/survey...

2009-04-13 Thread Gabriel Guerrero

I use maven and GWT, and I just moved to GWT 1.6.4 they are published
I think in maven central repo, I use the antrun plugin to compile and
run the HostedMode in debug mode, I choose the antrun becase at the
time I started the project the maven gwt plugins where not mature
enough and I had not moved because the antrun is very simple and had
worked very well for me, by the way for those interested in using the
maven structure for GWT 1.6.4 , you have to pass -war /src/main/webapp
to the Compiler and HostedMode app to use the default maven structure

Cheers
Gabriel

On Apr 9, 4:03 pm, Benju  wrote:
> I am curious if anybody using Maven+GWT has tried moving to GWT 1.6
> yet.  I noticed there is no public repository containing the 1.6
> realease only RC, Beta, and Milestones.  I can always manually deploy
> GWT to our internal repository but it's a bit of a pain.
>
> Also, if anybody is using GWT+Maven who prefers the Codehaus plugin
> and who the Google Code GWT-Maven plugin?  From what I understand
> these two Maven plugins are merging in the long term so that only the
> Codehaus plugin will be actively developed.
>
> Finally I would also like to post the following question to the GWT
> community.  What do you use for setting up your builds?  I've always
> been of the opinion that a good build system is of cardinal
> importance, especially on larger projects.  At this time I have seen
> the following options...
>
> Hand written Ant file
> -Calling the GWT compiler directly
> -Maven
>     -with the codehaus plugin (http://mojo.codehaus.org/gwt-maven-
> plugin/)
>     -with the Google Code GWT-Maven plugin (http://code.google.com/p/
> gwt-maven/)
> -Intellij Idea's built in GWT support
> -eclipse with special GWT support (I believe some plugins exist
> including the recently released Google one)
> -Netbeans gwt4NB (https://gwt4nb.dev.java.net/)
--~--~-~--~~~---~--~~
You received 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 set icon of tree nodes via CSS

2009-04-13 Thread Mark RG Itol

Hi guys,
Any ideas so far? :)

On Apr 8, 5:04 pm, Mark RG Itol  wrote:
> Hi guys, would like to follow up on this one. Do you have any ideas?
> Thanks a lot. :)
>
> On Apr 2, 6:47 pm, Mark RG Itol  wrote:
>
>
>
> > Hi guys,
>
> > I am using GWT's Treepanel and I need to set different icons for my
> > TreeNodes.
> > I tried using TreeNode.setIconCls(String) but it doesn't seem to work.
> > My style names are contained in a CSS file and I am also using these
> > style names
> > in setting the icons of menu items (using setIconCls()) and they work
> > (the icons appear on the menu items).
>
> > Below are some code snippets:
>
> > Java:
> > TreeNode configNode = new TreeNode("+ New");
> > configNode.setUserObject(-1L);
> > configNode.setIconCls("new");
> > parentNode.appendChild(configNode);
>
> > CSS:
> > .new    {background-image:url(../images/payroll/new.png);}
>
> > I don't know what I'm missing here -- the codes I've seen in the GWT
> > demo are using the same implementation (setIconCls).
>
> > Thank you in advance. :)
>
> > Best regards,
> > Mark
--~--~-~--~~~---~--~~
You received 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: Regarding an Uncaught Exception Displaying

2009-04-13 Thread shajeer kt
Hii,

   Where can i get OOPHM plugin.. Whether i have to add the jar file to my
existing project. Or adding that plugin directly to Internet Explorer
Browser . Please any one tell me,what should i do??

On Sun, Apr 12, 2009 at 8:23 AM, shajeer kt  wrote:

> So what may be the reason it is working perfectly in mozilla firefox and
> not in IE.
>   Whether Mozilla firefox already have this OOPHM plugin .
>Could any one give me more informations regarding OOPHM with respect
> to my issue.?
>
>
>
> On Sat, Apr 11, 2009 at 3:44 PM, Vitali Lovich  wrote:
>
>> It looks like you start your code in hosted mode, but then hit the page
>> using a regular browser.  You cannot run HostedMode code against a regular
>> browser without the OOPHM plugin for obvious reasons.  In HostedMode, your
>> code runs ins a regular JVM with GWT code that acts as a communication layer
>> between the browser & native Java code.  But without the hosted mode browser
>> or the OOPHM plugin, there's nothing for it to communicate with.
>>
>> So what you are seeing here is perfectly expected.  Either use the
>> HostedMode browser or build from trunk & use the OOPHM plugin according to
>> the instructions on the wiki.  Or run the regular browser against the
>> compiled code.
>>
>> Those are your options.
>>
>>
>> On Sat, Apr 11, 2009 at 8:28 AM, babu  wrote:
>>
>>>
>>> Dear all,
>>>
>>> I am currently facing a problem in which i am not able to understand
>>> the reason. This problem is happening only in hosted mode and when
>>> using IE.In Mozilla firefox it is working fine.
>>> I am currently having an application in GWT containing Some grids and
>>> some  drill down charts using fusion charts . If i clicked on a fusion
>>> chart the other drill down chart is loading.When i clicked the second
>>> one,the third drill down chart is loading.Its working perfect.
>>> Now if i took another page then tried the above procedures in hosted
>>> mode or in IE, All the charts are going to an invinsible mode . I can
>>> see only a white screen which contains nothing . Only i can view the
>>> back,forward,refresh,stop button and the url.
>>>
>>> Now if i again load the application and took the page that gone blank
>>> before it will work fine,but the other page which was working fine
>>> will be going to the blank page which i told above.
>>>
>>> In GWT development shell i was getting an uncaught Exception which is
>>> attached below.( Even i am getting this exception rarely,Not every
>>> time )
>>>
>>> [source][ERROR] Uncaught exception escaped
>>>
>>> java.lang.NullPointerException: null
>>> at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject
>>> (JavaScriptHost.java:91)
>>> at com.google.gwt.http.client.XMLHTTPRequest.getBrowserSpecificFailure
>>> (XMLHTTPRequest.java)
>>> at com.google.gwt.http.client.Request.fireOnResponseReceivedImpl
>>> (Request.java:248)
>>> at com.google.gwt.http.client.Request.fireOnResponseReceivedAndCatch
>>> (Request.java:226)
>>> at com.google.gwt.http.client.Request.fireOnResponseReceived
>>> (Request.java:217)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke
>>> (NativeMethodAccessorImpl.java:39)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke
>>> (DelegatingMethodAccessorImpl.java:25)
>>> at java.lang.reflect.Method.invoke(Method.java:585)
>>> at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:
>>> 103)
>>> at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
>>> (IDispatchImpl.java:126)
>>> at com.google.gwt.dev.shell.ie.IDispatchProxy.invoke
>>> (IDispatchProxy.java:155)
>>> at com.google.gwt.dev.shell.ie.IDispatchImpl.Invoke(IDispatchImpl.java:
>>> 294)
>>> at com.google.gwt.dev.shell.ie.IDispatchImpl.method6
>>> (IDispatchImpl.java:194)
>>> at org.eclipse.swt.internal.ole.win32.COMObject.callback6
>>> (COMObject.java:117)
>>> at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
>>> at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:1925)
>>> at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2966)
>>> at com.google.gwt.dev.GWTShell.pumpEventLoop(GWTShell.java:720)
>>> at com.google.gwt.dev.GWTShell.run(GWTShell.java:593)
>>> at com.google.gwt.dev.GWTShell.main(GWTShell.java:357)[/source]
>>>
>>>
>>> But when i compiled and run it in a Mozilla FireFox browser. it is
>>> working fine and there is no problem at all.
>>> Only in hosted mode and IE i am facing the problem.
>>>
>>> When i asked the fusion chart Forum they replied as it may be a GWT
>>> issue.
>>>
>>> What may be the reason for this bug ?  Any body faced such an
>>> exception before ?
>>> Somebody please 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 

Re: How to import samples of GWT into Eclipse

2009-04-13 Thread carlesla

Thanks a lot, Vitali.

You're rihgt : webAppCreator creates the eclipse project , and it
doesn't need  -ecllipse option like in applicationCreator.

The only problem now is I would like import the Showcase sample, but
webAppCreator command doesn't accept 'Showcase' because it  does not
appear be a valid fully-qualified Java class name. ( I've tried this
command : webAppCretaor Showcase -ignore
com.google.gwt.samples.showcase.client.Showcase )

thanks a lot

carles

On Apr 13, 11:27 am, Vitali Lovich  wrote:
> webAppCreator, from what I remember, automatically creates the ant tasks,
> eclipse project, & eclipse launch files.
>
> On Mon, Apr 13, 2009 at 4:09 AM, carlesla  wrote:
>
> > Hi ,
>
> > I've got the same problem.
>
> > In older versions wiht de command word applicationCreator and the
> > option -eclipse -ignore I could resolve this problem, but not now with
> > te webAppCreator command because the option -eclipse doesn't exists.
>
> > Thanks anybody can help us
>
> > Carles
>
> > On Apr 13, 1:22 am, Jaap  wrote:
> > > I've just installed gwt and appengine eclipse plugins and now would
> > > like to import the sample projects ( located in the samples directory
> > > into eclipse )
>
> > > The README.txt in all the samples say the following
>
> > > ---
> > > If you use Eclipse, you can simply import the generated project into
> > > Eclipse.
> > > We've tested against Eclipse 3.3 and 3.4.  Later versions will likely
> > > also
> > > work, earlier versions may not.
>
> > > In Eclipse, go to the File menu and choose:
>
> > >   File -> Import... -> Existing Projects into Workspace
>
> > >   Browse to the directory containing this file,
> > >   select "Hello".
>
> > >   Be sure to uncheck "Copy projects into workspace" if it is checked.
>
> > >   Click Finish.
>
> > > You can now browse the project in Eclipse.
> > > 
> > > However I cannot click the Finish button because Eclipse does not
> > > recognize the project. I think it's because it's missing eclipse
> > > project files.
>
> > > How can I get this to work?
>
> > > Thanks
>
> > > Jaap
--~--~-~--~~~---~--~~
You received 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: Type was not included in the set of types which can be serialized by this SerializationPolicy

2009-04-13 Thread denis56

looks fine to me,

i had the same message popping up before and it turned up to be
because of missing no-argument constructor in the classes (pretty
misleading). In contrast the class you have posted has one. Maybe your
module.gwt.xml contains the cause, are you listing the right directory
(when not using default) with the  tag?



On Apr 10, 6:08 am, PeteF  wrote:
> Hi all,
>
> I am getting the exception "TableVO was not included in the set of
> types which can be serialized by this SerializationPolicy or its Class
> object could not be loaded. For security purposes, this type will not
> be serialized."  and I do not understand why. Here is the structure of
> my TableVO class:
>
> public class TableVO implements Ancestor, Serializable{
>
>         private String name;
>
>         public TableVO () {
>
>         }
>
>         public String getName() {
>                 return name;
>         }
>
>         public void setName(String name) {
>                 this.name = name;
>         }
>
> }
>
> I am using gwt 1.6.0 and JDK 1.5.
>
> Any help/hint would be 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
-~--~~~~--~~--~--~---



Re: Loading an image using GWT 1.6.4

2009-04-13 Thread Magius

Hi,

you have to use GWT.getModuleBaseURL() to reference module related
resources.
If you have generic images you can put them in 'war/images' and access
them as indicated above.


On Apr 13, 8:20 am, Fabrício Cabral  wrote:
> On Sun, Apr 12, 2009 at 11:03 AM, hezjing  wrote:
> > Hi Fabrício,
>
> Hi Hez!
>
> > I saved my images in war/images directory, and here is how I create the
> > Image:
> > Image img = new Image("images/test-1.jpg")
>
> It worked fine but I don't know if is it the "right way" because the GWT 1.6
> documentation says we should use GWT.getModuleBaseURL() to locate
> our static resources like images, css files, etc.
>
> So, you or anyone knows where I should put my static resources to access
> them via GWT.getModuleBaseURL() .
>
> Thank you very much,
>
> --
> --fx
--~--~-~--~~~---~--~~
You received 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 import samples of GWT into Eclipse

2009-04-13 Thread Vitali Lovich
webAppCreator, from what I remember, automatically creates the ant tasks,
eclipse project, & eclipse launch files.

On Mon, Apr 13, 2009 at 4:09 AM, carlesla  wrote:

>
> Hi ,
>
> I've got the same problem.
>
> In older versions wiht de command word applicationCreator and the
> option -eclipse -ignore I could resolve this problem, but not now with
> te webAppCreator command because the option -eclipse doesn't exists.
>
> Thanks anybody can help us
>
> Carles
>
> On Apr 13, 1:22 am, Jaap  wrote:
> > I've just installed gwt and appengine eclipse plugins and now would
> > like to import the sample projects ( located in the samples directory
> > into eclipse )
> >
> > The README.txt in all the samples say the following
> >
> > ---
> > If you use Eclipse, you can simply import the generated project into
> > Eclipse.
> > We've tested against Eclipse 3.3 and 3.4.  Later versions will likely
> > also
> > work, earlier versions may not.
> >
> > In Eclipse, go to the File menu and choose:
> >
> >   File -> Import... -> Existing Projects into Workspace
> >
> >   Browse to the directory containing this file,
> >   select "Hello".
> >
> >   Be sure to uncheck "Copy projects into workspace" if it is checked.
> >
> >   Click Finish.
> >
> > You can now browse the project in Eclipse.
> > 
> > However I cannot click the Finish button because Eclipse does not
> > recognize the project. I think it's because it's missing eclipse
> > project files.
> >
> > How can I get this to work?
> >
> > Thanks
> >
> > Jaap
> >
>

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



  1   2   >