Re: Google Calendar embeded in my webapp

2009-04-29 Thread LFCPD

Ok, thanks anyway :)

On 29 Abr, 18:56, Vitali Lovich  wrote:
> I'm building something like that, but no, there's no official Google
> calendar.  You can tryhttp://code.google.com/p/ftr-gwt-library/.  It has a
> Google Calendar look-alike.  It is kind of a pain to use though & there are
> some bugs.
>
> On Wed, Apr 29, 2009 at 11:20 AM, LFCPD  wrote:
>
> > Hi all,
>
> > I'd like to embed a google calendar into my webapp. Is it possible?
> > The server side of my webapp will add/remove events from that google
> > calendar and anything else. Does exist some Google Calendar widget?
>
> > thanks you all!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-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: Image Bundle fails in GWT 1.6 hosted mode and IE

2009-04-29 Thread Rafiq

But first even in GWT 1.6 hosted mode itself, it blows up. These are
normal size images done for a slide show.

On Apr 29, 7:02 pm, Thomas Broyer  wrote:
> On 29 avr, 13:59, Rafiq  wrote:
>
> > While I expected Image bundle to improve my home page loading
> > experience, it blows up both in GWT 1.6 hosted mode and IE. When i
> > Googled it, It seems, this is an age old problem with GWT and it is
> > recurring again.
>
> AFAICT, this won't be the case anymore in the next 1.6.x release in
> IE7 and IE8 (will still be an issue in IE6).
>
> ...though it depends which problem you're facing (there's also the IE
> limitation about the width of the image bundle, I don't know if it'll
> go away with the removal of AlphaImageLoader for IE7+)
--~--~-~--~~~---~--~~
You received 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: Image size

2009-04-29 Thread alex.d

Shouldn't be this way - i'm using a lot of images and i'm certainly
not setting their sizes manually. Does this occur only with a
flowpanel? Can you make a small example that demonstrates the problem?

On 29 Apr., 16:36, hezjing  wrote:
> Hi
>
> I have the following code snippet,
>
>         Image logo = new Image("images/logo.png");
>         logo.setSize("153px", "14px");
>
> The logo.png has the size of 153 x 14, and I have to specify this size
> before adding to a FlowPanel.
> Otherwise, the image will be resized (scratched to bigger size)
> automatically and become ugly.
>
> Can GWT takes the image size automatically without having us to specify
> them?
> It's going to be tedious with several images.
>
> Thank you!
>
> --
>
> Hez
--~--~-~--~~~---~--~~
You received 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: Scope of GWT

2009-04-29 Thread sperv...@googlemail.com

Hi Neo,

On Apr 28, 10:33 am, Neo  wrote:
> Can GWT be used to develop large enterprise applications ? Or is it
> only limited to small and medium size projects ?

In my experience it can be used for projects of any size. My current
client is developing a large trading application with it, and I've
developed small personal projects with it too.

>
> For any type of project is GWT good enough to be used as a standalone
> framework or is it that it needs to be used along with other similar
> technologies like SmartGWT and GWT Ext ?

As Paul mentioned this is two questions:

Can GWT be used as a standalone framework? Yes of course - but at some
point you may need to communicate with other systems, or a database
etc. at which point you may need other things to help you out. On the
large scale project I've been working on, we have some EMS stuff and
some web services, but no Spring or Hibernate.

Does it need to be used with SmartGWT or GWT Ext? No - these do give
you some nice out of the box widgets and features, but with 1.5 (not
got round to upgrading) these kill download times and compile times.
We also found they didn't give us much in terms of what we really
wanted. Sure they were nice to look at, but when the business says
they don't like the look - you have to re-skin everything anyway.

Cheers
Stuart
--~--~-~--~~~---~--~~
You received 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 with eclipse and java1.6 crashes after running.

2009-04-29 Thread phanidee

hi,
   i just installed Eclipse ganymede 3.4.2 and GWT 1.6.4 eclipse
plugin and eclipse uses
java-6-sun. I dont know why but when i hit green button to run a
window opens up and after
some time, it blacks out and nothing happens. I tried removing the
Built-in server check mark
in run configuration then the gwt browser comes up error message that
"cannot connect to
localhost:8080". is it any problem with built-in server or should i
revert back to java 1.5 for
the gwt to run?

Please help.

-
Phani.

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



"war" folder name in version 1.6.4 configurable?

2009-04-29 Thread Robin

I am currently trying the new 1.6.4 version of GWT. it's good to have
the new structure similar to the the one used in eclipse web project.

The existing eclipse web project allows to change the name of the
"WebContent" folder (equivalent to the "war" folder in google web app
project).  However, it seems I can not change the name of "war" folder
to other names in google web app project. If i change the default
name, it gives me the error "The web.xml file does not exist" as a
"Google Web App Problem."

Does anyone know if the name is configurable and how? 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: Problems with ImageBundle in IE8 when not in compatibility mode

2009-04-29 Thread Dominik Steiner

Thanks for the tip Thomas,

just to amend/aggragate something i found out that you have to add the
meta tag to the head section before any other elements and the meta
tag i added was



HTH

Dominik

On 15 Apr., 03:56, Thomas Broyer  wrote:
> On 14 avr, 18:41, "toont...@googlemail.com" 
> wrote:
>
> > Greetings,
>
> > Only inIE8with compatibility mode off do I see the images in the
> >ImageBundledisplayed in the right location but other images from the
> > bundle are displayed to the left of the displayed image. In other
> > words it isn't clipping the bundle to the left. In compatibility mode
> > it works fine and it works in IE7, FF3, Opera, and Safari.
>
> > This a problem in 1.6.4 and 1.5.3.
>
> Other things will break inIE8's"super standards" mode.
>
> > I've looked for previous discussions of this and found
>
> >http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
>
> > where Janie says "I'm trying to track down an issue with ImageBundles
> > that I'm having inIE8.  This email is not about that issue... ". But
> > then nothing more about this.
>
> > Suggestions?
>
> AskIE8to use the appropriate mode by including the corresponding
> HTTP response header or  to your HTML host page; e.g.
>
>    
>
> Seehttp://msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx
--~--~-~--~~~---~--~~
You received 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 get internal widget to notify its parent widget when clicked (and have the parent execute something)

2009-04-29 Thread Micky

Hey matttai, did you find a good solution for your issue? I'm trying
to do something similar and have not had much luck. Observer pattern
would seem to be the way to go - "In theory there is no difference
between theory and practice. In practice there is.";)

On Apr 6, 10:12 pm, matttai  wrote:
> Ah that works only if the widget isnestedin 1 object (eg. direct
> parent).
> The widget is dynamically added to various objects and can benested
> at different levels.
>
> Currently i am using a VERY dodge way of this.getParent().getParent
> ().getParent().getParent().doSomething(); :)
> And in that doSomething() it would have something like.
>
> doSomething()
> {
>     widget.someOtherwidget.widget1.widget2.widget3.widget4.doStuff();
>
> }
>
> I am sure there is a better way to do this. Gregor's suggestion of an
> observer pattern sounds about right.
> Although there doesnt seem to be that much information that comes up
> around implementing patterns in google when dealing with events in
> objects unless you specifically look for it.
>
> I'll have a search and come back here if i still have issues.
>
> On Apr 7, 1:11 am, Jason Essington  wrote:
>
> > the easiest way is to create a click handler that holds a reference to  
> > the parent
>
> > the simplest form would look something like:
>
> > myWidget.addClickHandler(new ClickHandler(){
> >    public void onClick(ClickEventevent){
> >      parent.doSomething();
> >    }
>
> > });
>
> > no need to do any sink/unsink mucking about.
>
> > -jason
>
> > On Apr 4, 2009, at 8:51 PM, matttai wrote:
>
> > > As per the title :)
>
> > > How to get internal widget to notify its parent widget when clicked
> > > (and have the parent execute something)?
>
> > > I think it has something to do with sinking and unsinking events but I
> > > haven't been able to find a very good example of doing this.
>
> > > Any help would be appreciated!
>
>
--~--~-~--~~~---~--~~
You received 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: with gwt-maps , How to manually set Marker draging state

2009-04-29 Thread Tail

Thanks Eric,

that can be let marker drag on the map.
mybe I did not clearly describes the point,my mean is marke the Marker
float and show DragCrossImage manually (like use mouse dragging it )
when I create the marker ,

On Apr 29, 6:52 pm, Eric Ayers  wrote:
> Hi,
> When you create the marker, you can set the dragging  behavior by passing a
> MarkerOptions object in the constructor.  Then, if you want to turn dragging
> on/off use marker.setDraggingEnabled();
>
> See the javadoc 
> athttp://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
>
> As an aside, there are a few changes in the next release that add support
> for GDraggableObject, which allows you to create custom objects (not just
> Markers) and make them draggable on the map.
>
> Hope that helps,
> -Eric.
>
> On Wed, Apr 29, 2009 at 6:26 AM, Tail  wrote:
>
> > In my project, A Custom control button on the map canvas, it named
> > "Add New Position".
> > When I click the "Add New Position" button, I add a Marker  on the
> > map, Marker's LatLng onchaned by mousemove on map. How to make Marker
> > draging state,let it float and show DragCrossImage.
>
> --
> Eric Z. Ayers - GWT Team - Atlanta, GA USAhttp://code.google.com/webtoolkit/
--~--~-~--~~~---~--~~
You received 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 Compile Project problem in Eclipse

2009-04-29 Thread Guidobot

Has anyone else had this problem?

I compile a project from Eclipse, which works, but a browser does not
show pop-up (running the JS).

Oddly, all works fine if I Compile/Browse from the GWT host. On the
otherhand, 'ant build' has a similar problem (it compiles but does not
launch a browser).

Feels like I'm missing some setting somewhere? Perhaps Vista related?

Any sugestions would be much appreciated.
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



changing tooltip (title) has no immediate effect in web mode

2009-04-29 Thread r a f t

hello,

i've an image map like widget divided into regions. i listen for mouse
move events, find the region mouse pointer is in and update cursor and
tooltip (title) accordingly.

this works very well on hosted mode. but on web mode changing tooltip
has no immediate effect. new value (or null) only displayed after
browser closes the previous tooltip and opens a new one: for example
move the mouse out of widget and take it back, or wait for a while
until tooltip disappears and move mouse again

any ideas how to handle this situation ?

this is ubuntu, i have tested the app in firefox 3 and mozilla 5 (sea
monkey)

regards,
r a f t
--~--~-~--~~~---~--~~
You received 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 project runs slow in Hosted mode

2009-04-29 Thread chrisM

I migrated a project from GWT 1.5 to 1.6 with extreme slowness in
hosted mode - compiling and running in web mode performed the same
with no performance hits.
I was using the GXT and  gwt-google-maps modules.

I went from 5 second to over 60 seconds to do a simple refresh in
hosted mode. It has nothing to do with hardware as hosted mode ran
idle for over 40 seconds doing nothing before even the smallest bleep
on my Quad core.

When I moved all files within the /public directory out into
the war project directory structure, I got hosted mode to at least
preform approx. the same as GWT 1.5. At a minimum my hardware
resources are actually being used now when I refresh the hosted mode
browser. I never had any explanation why a seemingly simple static
file copy for  ~1MB of static files hung hosted mode for 40 seconds.

If you have anything in any /public directory I would move it.



On Apr 29, 3:01 am, Peter Muessig 
wrote:
> Hi,
>
> I cannot imagine that this is a hardware issue!
>
> Since I switched to GWT 1.6.4 I had the same expierience with a 2GHz
> Core2Duo and 4GB RAM machine. When I start to use JS wrappers like
> SmartGWT or GWText the startup of the Hosted Mode and the GWT
> application becomes "very slow".
--~--~-~--~~~---~--~~
You received 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: Communicate w/ existing GWT-RPC service

2009-04-29 Thread Adligo

I would suggest importing the GWT jar(s) into your java client and
actually have it serialize (de serialize) the Java Objects to a Http
Request and Response using the RPC format.   Java is can then act like
a browser and send the Http Request and get the Http Response all over
Http (Https).  Take a look at the GWT source code RPC and
RemoteServiceServlet class you can see how RPC does this serverside
(its the reverse of what your trying to accomplish).

Cheers,
Scott

On Apr 29, 7:47 am, "Marcelo Emanoel B. Diniz"
 wrote:
> To simple reuse the services classes and the vo classes I would
> separate them in a diferent module...
> export them...(with the .java) and reuse on another module... the main
> point in my opinion would be to
> configurate the service url...
>
> On Apr 28, 3:30 pm, JoeB  wrote:
>
> > I get the general idea, but I'm a little unclear on implementing the
> > non-GWT interface in parallel to GWT-RPC.  The beauty of GWT-RPC is
> > that the ValueObjects I create in my client package are automatically
> > serialized/deserialized by GWT, and my client code and server code are
> > developed with the same Java class.  If I want to make the same
> > ValueObjects accessible via a different interface (e.g. REST, SOAP,
> > etc), then that means I'll have to transform them into some protocol
> > on the wire (e.g. convert to XML or JSON).  The tricky part is that
> > the ValueObject classes are defined in the GWT client package, but
> > they need to be modified in some way to perform this server-side
> > transformation for a different interface, and that transformation code
> > shouldn't leak into the GWT client.  I guess what I'm saying is that
> > it seems like a problem that the ValueObjects are defined in the
> > client package because they need to be used for a non-GWT interface in
> > the server.  Know what I mean?
>
> > -- 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: How to change character encoding to UTF-8

2009-04-29 Thread Thomas Broyer



On 29 avr, 21:19, "lazins...@gmail.com"  wrote:
> You are right. I have mixed them all. Thanks for clarify. So right now
> my problem is how to call servlet thru spring :) My application has
> some servlets and I would like to call them via spring.

"via Spring" ?!

You mean having your servlets being "dependency injected" by Spring ?
If so, probably the Spring document will be enough, or the Spring
mailing list / user group / forum.
E.g. http://andykayley.blogspot.com/2008/06/how-to-inject-spring-beans-into.html

Otherwise, well, it's just a RequestBuilder. RequestBuilder is a low-
level API to make HTTP calls; if you understand HttpServlet's
HttpRequest/HttpResponse, then RequestBuilder shouldn't be hard to
comprehend too.

>
> On 29 Kwi, 16:08, Thomas Broyer  wrote:
>
>
>
> > On 29 avr, 13:45, "lazins...@gmail.com"  wrote:
>
> > > I am trying to call ordinary servlet via spring (I am using gwt-sl
> > > library and GWTHandler class) and requestbuilder in GWT (POST method).
>
> > AFAICT from the GWT-SL docs, GWTHandler is not an "ordinary servlet",
> > it is based on GWT-RPC; which means you should use GWT-RPC and not a
> > "plain old^^^low-level RequestBuilder".
>
> > An "ordinary servlet" would be called as you'd expect; GWT-RPC expects
> > a particular request payload (method arguments, serialized in GWT-RPC
> > special format, hence the Content-Type: text/x-gwt-rpc)
>
> > The GWT-SL docs are quite clear on how to write the client-side GWT
> > code to work with GWTHandler (i.e. GWT-RPC).
--~--~-~--~~~---~--~~
You received 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 (Multiple Pages Implementation)

2009-04-29 Thread Vince

Hello,

I just started out with GWT and currently building a prototype that is
intended as an enterprise "skeleton" application. The intent is to use
GWT with Struts 2.0 (via a plugin). I now have the basic structure of
the application and I have 3 simple pages that are facilitated by
DeckPanels. Then it suddenly occurred to me... Having several panels
(DeckPanels) to simulate pages in an enterprise web system could be
trouble in performance and possibly maintenance (?).

So I turned to the internet for some information and came upon
suggestions ranging from embedded GWTs in JSPs using markups (Reminds
me of YUI but that's another story) to multiple launching point HTMLs
and matching EntryPoint classes.

That said, and based on several informative readings, I come to the
point of asking these questions to anybody who could provide me with
an objective opinion and strong recommendation if possible. Simply put
- Help!

1. What is Google's recommended paging approach (The way I understand
it is via DeckPanels)?
2. How efficient is using a DeckPanel to accommodate several pages
(Any number of pages in mind it could "safely" support)?
3. With an enterprise web app comprising of numerous screens (and when
I say numerous please imagine our trusty old Eclipse editor's
interface), would DeckPanels be recommendable?
4. What's a suitable alternative to DeckPanels (I would appreciate any
recommendations)?

I would appreciate any feedback, assistance and most importantly added
knowledge on my part.

Thanks,
Vince

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



How to use the new WAR file to deploy a simple web application.

2009-04-29 Thread Danny

While I am not new to GWT, I am a bit new to the WAR file concept.  Up
to now, I was content to roll my own when deploying my WEB
application.  I use Tomcat to serve both static and dynamic web page
content under a directory/file configuration at my web hosting service
something like:

webapps
   ROOT
   GWT/
   GWT cashe files
   my .nocache.js file
   index.html   (my home page)
   index.css (my css file)
   other public files
   servlet
   WEB-INF
  classes  (my servlets)
  lib (external .jar files needed by my servlets)

My web hosting service currently points http:/my-domain-name.com/  to
Tomcat's .../webapps/ROOT.  I  could roll my own and merge ROOT/ with
servlet/.  But, can I use GWT's WAR concept to do this for me?  I can
see how to do this with WAR, but the WAR's module name gives me
another level that I do not need.  If I name my GWT module ROOT, would
this work, or does someone have a better idea.

Thanks,

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



Re: What's Wrong???

2009-04-29 Thread Sumit Chandel
Hi happyosaka,
The website seems to be password protected, so I can't access it. But even
if I could, you will need to provide much more detail about the issue you're
experiencing in order for anyone to understand what the problem is and
suggest potential solutions.

>From the very limited information so far, it seems like the error is
occurring on the server-side, and that your inquiry would best be served on
the Google App Engine group (again with more details about the problem).

Google App Engine forum:
http://groups.google.com/group/google-appengine?pli=1

Regards,
-Sumit Chandel

On Mon, Apr 27, 2009 at 8:27 AM, happyosaka  wrote:

>
> http://osakacliff2.appspot.com/
>
>
> Error: Server Error
> The server encountered an error and could not complete your request.
>
> If the problem persists, please report your problem and mention this
> error message and the query that caused it.
>
> >
>

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

2009-04-29 Thread lazins...@gmail.com

You are right. I have mixed them all. Thanks for clarify. So right now
my problem is how to call servlet thru spring :) My application has
some servlets and I would like to call them via spring.

On 29 Kwi, 16:08, Thomas Broyer  wrote:
> On 29 avr, 13:45, "lazins...@gmail.com"  wrote:
>
> > I am trying to call ordinary servlet via spring (I am using gwt-sl
> > library and GWTHandler class) and requestbuilder in GWT (POST method).
>
> AFAICT from the GWT-SL docs, GWTHandler is not an "ordinary servlet",
> it is based on GWT-RPC; which means you should use GWT-RPC and not a
> "plain old^^^low-level RequestBuilder".
>
> An "ordinary servlet" would be called as you'd expect; GWT-RPC expects
> a particular request payload (method arguments, serialized in GWT-RPC
> special format, hence the Content-Type: text/x-gwt-rpc)
>
> The GWT-SL docs are quite clear on how to write the client-side GWT
> code to work with GWTHandler (i.e. GWT-RPC).
--~--~-~--~~~---~--~~
You received 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
-~--~~~~--~~--~--~---



Receiving Java Exit Code when Building with GWT 1.6

2009-04-29 Thread Patrick

Hello,
I'm trying to run a build using com.google.gwt.dev.Compiler in GWT 1.6
with JDK 1.5.0_17 and Ant 1.6.5.  The build has been failing with an
exit code of -1073741819.  I haven't been able to find any more
information, even when setting the logLevel to SPAM, beyond a line
like the one below:

BUILD FAILED
C:\view\tools\applicationbuild\build.xml:515: The following error
occurred while executing this line:
C:\view\tools\applicationbuild\build.xml:496: Java returned:
-1073741819

There does not appear to be an associated exception error unless one
is getting caught in the background.  Can anyone offer any suggestions
for how to further debug the issue or what possible causes there may
be?

Thanks.

Patrick

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



ClassCastException in JsValueGlue.java:125

2009-04-29 Thread mlgm

Hi,

I'm developing a GWT application which I recently ported to GWT 1.6.4
and the Google Eclipse Plugin (Eclipse 3.4.2). The ported application
works fine under Linux (hosted and web mode), but when I start it in
hosted mode under Windows XP, I get the following stacktrace.

The application starts with an RPC call in onModuleLoad() and
depending on the answer it creates the user interface in onSuccess()
of the AsyncCallback. This seems to get finished, but afterwards, when
the event processing loop should take over, errors start to appear
immediately. It seems that an exception is created on each mouse
event, because when I just move the mouse over the window, I get one
Exception after the other.

I have no idea what could cause those exceptions, but figure as it
works ok in Linux it might be a GWT problem? Any ideas what I can do?
What information should I provide in an issue report?

Here's the stacktrace:

java.lang.ClassCastException
at java.lang.Class.cast(Unknown Source)
at com.google.gwt.dev.shell.JsValueGlue.get(JsValueGlue.java:
125)
at
com.google.gwt.dev.shell.ie.SwtOleGlue.convertVariantsToObjects
(SwtOleGlue.java:57)
at com.google.gwt.dev.shell.ie.IDispatchImpl.callMethod
(IDispatchImpl.java:119)
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)

Thanks

Michael

--~--~-~--~~~---~--~~
You received 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: unused code in "compiled" javascript

2009-04-29 Thread Sumit Chandel
Hi zbo,
As mentioned above, there is some amount of boiler plate code that does get
included in your GWT application when using the RootPanel and other
associated widgets. Once this boiler plate is in place though, the rest of
your application reuses it and the curve plotting code size versus number of
lines of code starts flattening out.

That said, using standard GWT widgets is ideal when you are on your way to
build a fairly large Ajax application. However, if you're instead planning
on developing a small scale application that will have some Ajax features,
you should probably look into using GWT at a lower level (i.e. using the DOM
API). At that level, you can only code exactly what you need for your
application while still having the benefit of automatic cross-browser
support and strong typing.

DOM API:
http://code.google.com/webtoolkit/doc/1.6/DevGuideUserInterface.html#DevGuideAccessingDOM

Hope that helps,
-Sumit Chandel

On Mon, Apr 27, 2009 at 12:02 AM, Jason Morris  wrote:

>
> Actually HashMap and many of the Collections classes /are/ used in that
> simple bit on code.
>
> The Widget classes and Event management make heavy use of the Collections
> classes. RootPanel alone
> uses a HashMap, and HashSet (which in turn use AbstractSet, etc.),
> RootPanel also uses the Window
> class with uses ArrayList and Collections.
>
> So basically by using RootPanel.get().add() you've effectively made use of
> a large chunk of the
> Collections classes, parts of the Event system, etc.
>
> The compiler is fairly good at removing unused code, but theres only so far
> it can go. The fact is:
> in a fairly complex GWT application you're likely to be using that code
> anyways.
>
> I assume you're compressing your compiled code before shipping it out to
> the browser, and setting
> the cache headers correctly, since once the user has the code (the .cache.*
> files) they never need
> to download them again (the name will change if the content of the file is
> changed).
>
> Hope that explains the behavior a bit ;)
> // J
>
> Vitali Lovich wrote:
> > The GWT compiler is supposed to remove all unused code.  If you believe
> > that there's code in there that is unused, or can be removed, I would
> > recommend filing a bug.  Hopefully a GWT developer would be able to
> > provide more information about this particular question.
> >
> > On Sun, Apr 26, 2009 at 5:03 PM, zbo  > > wrote:
> >
> >
> > Hello,
> >
> >   I am working on reducing the compiled js size of a relatively
> > complex GWT application.  I've been looking at the detailed output of
> > the compile process, and find quite a few blocks of code that seem to
> > be included no matter what.  To test things and get a better
> > understanding of the GWT compile process, I build a trivial GWT app:
> >
> >onModuleLoad() {
> >RootPanel.get().add(new Label("placeholder");
> >}
> >
> >  Detailed output of this app was approximately 105k in size, and
> > filled with code I would expect (management of GWTEvents, onLoad
> > methods, String handling, etc) but also a lot of code that I wouldn't
> > expect (Hashmap, HashSet, AbstractSet, Set, Collections, etc.)  My
> > question - is this entirely necessary, and if not, how do I avoid
> > having all of this code included a final compile of a real app?
> >
> > -Z
> >
> >
> >
> >
> > >
>
> >
>

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



Re: gwttestcase with external javascript

2009-04-29 Thread Ricardo Rocha

Ok forget this.

I was confused regarding the public path. For some reason i thought
the public path had changed to the war directory with 1.6, and was
putting all image & js files there and referencing using '/'. Putting
it into 'public' underneath the module definition package makes it
work.

The error i was getting must be related to the servlet container
trying to load everything under '/'.

Thanks and sorry about this.

Ricardo

On Apr 29, 6:23 pm, Ricardo Rocha  wrote:
> Hi Thomas.
>
> Thanks for your reply, but i still didn't manage to get it working.
>
> On Apr 29, 12:23 pm, Thomas Broyer  wrote:
>
>
>
> > On 28 avr, 18:50, "rocha.po...@gmail.com" 
> > wrote:
>
> > > Hi.
>
> > > I apologize if this was already asked before, but i couldn't find
> > > anything in the archives or in the docs.
>
> > > I'm using an external javascript library, using JSNI for accessing the
> > > native javascript from my GWT java code.
>
> > > I include these libraries in my host page using the  tag. My
> > > question is regarding GWTTestCase(s). It seems that a www-test
> > > directory gets created with some specific hosted.html page, which i
> > > guess is the host page being used to run the tests.
>
> > > How do i make the external javascript library i want to use available
> > > to the test case?
>
> > Reference them in your test module's gwt.xml using a