GWT War File Sizes

2009-09-28 Thread David G

Hi everyone,

I'm currently uploading our latest war files to our server for
deployment. I've noticed even though the JS files are only about
400Kb, all my war files (we have multiple war files for our
deployment) are around 30MB each.

Closer inspection with winzip shows that the majority of this size are
the jars in the lib folder - nearly all of them being GWT client jar
libraries and module libraries. I don't understand why they are needed
in my war files as they are only used for compliation of the client to
JavaScript, not for any servlets.

I haven't been able to Google any answers to why GWT does this or what
would happen if I removed the jars from the deployment, so was
wondering if anyone had an answer to why the war keeps including all
these library jar files, if there is a simple ant script to remove
them from future war files and if I will face any problems with
deployment later on by doing this?

If they jars are just included by default for no reason other than the
build.xml file not being written properly, it would be nice for a
future version of GWT properties file to include an option to remove
these during war file packaging so the wars are only a few hundred Kb
and take minutes to upload over my ADSL connection as opposed to the
hours its taking now!

Just in case, I'm using Netbeans with GWT4NB plugin (just in case its
an issue with that and not GWT)

Thanks,

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



Problems rendering a simple panel!!

2008-10-18 Thread David G

Hi everyone,

I know this works as I've done this extremely simple task on GWT
several times (I am using GWT-Ext but I think this is a GWT issue) but
for some reason, the default GWT project produced in NetBeans works
when I run it. However, as soon as I move the button and the label
into an external class and render it in mainEntryPoint as shown below,
nothing is rendered on my screen. Below is an example of my code:

/* My Panel Class */

public class Space extends Panel {

public void Space () {

final Label label = new Label(Hello, GWT!!!);
final Button button = new Button(Click me!);

button.addClickListener(new ClickListener(){
public void onClick(Widget w) {
label.setVisible(!label.isVisible());
}
});

this.add(label);
this.add(button);
}
}

/* Main Entry Point Class */

public class spacesEntryPoint implements EntryPoint {

/** Creates a new instance of spacesEntryPoint */
public spacesEntryPoint() {
}

/**
The entry point method, called automatically by loading a
module
that declares an implementing class as an entry-point
*/
public void onModuleLoad() {

Space newSpace = new Space();

RootPanel.get().add(newSpace);
}

}

The above code renders nothing, even playing with heights/widths and
viewing the HTML in FireBug shows nothing rendered. If anyone has a
clue on how to fix this extremely annoying issue please let me know!

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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problems rendering a simple panel!!

2008-10-18 Thread David G

I'm kicking myself now...that was obvious! Thanks for pointing it out
Ian and for your quick reply.

On Oct 18, 3:06 pm, Ian Bambury [EMAIL PROTECTED] wrote:
 Get rid of the 'void' and turn the Space() method into a constructor
 Ian

 http://examples.roughian.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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



RunAsynch Rest - when will they be available?

2008-10-09 Thread David G

Hi everyone,

For a while now I've been trying to find an elegant solution to
dynamically load widgets/code into a running GWT application, and
finally I've stumbled across RunAsynch(), which is in the GWT SVN
repository, but has no indication on when it will finally be release
as part of GWT. My usecase for this is to develop a GWT application
that loads widgets/features dynamically at runtime because statically
compiling all the different features (potentially hundreds) would
create a huge application to download with features most users may not
even care for!

Secondly, I want to make use of a REST API (on a different domain/sub-
domain on my server) directly from the GWT client, without the need
for an RPC proxy servlet. This would simplify our development greatly,
but the best I've seen for this is the GWT-Rest module, which is far
from complete.

So my questions are:

1. Does anyone know when RunAsynch() will be part of an official GWT
release? Is it a priority? (This seems like a heavily demanded
feature!)
2. Does anyone know when a full REST API module for GWT will be
available? If not for a while, what is the best way to implement this?

Thanks,

David

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