How to handle bad url on images ?

2009-12-16 Thread Ista Pouss
Hi,

I make a new Image(url) with a bad url, and I see nothing (of course)
in the browser. I should want a cool error message, but I don't see
any exception in this case, and if I put a LoadHandler I have no
onLoad event ?

How to do that ?

Thanks.

--

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




Re: How do GWT webpages (HTML) map to java files.

2009-12-16 Thread Saeed
This question is very important for me to get started with GWT please

Basically page navigation

On Dec 17, 12:43 pm, Saeed  wrote:
> bump :(
>
> On Dec 16, 10:05 pm,Saeed wrote:
>
> > I would like to know how webpages map to specific Java methods please
> > like in Struts we have struts.xml and JSF we have faces-config.xml
>
> > What if we have a 10 page site and user wants to jump to page 5. How
> > do we get aroundEntryPointin this case.
>
> > Thanks

--

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




Re: How do GWT webpages (HTML) map to java files.

2009-12-16 Thread Saeed
bump :(

On Dec 16, 10:05 pm, Saeed  wrote:
> I would like to know how webpages map to specific Java methods please
> like in Struts we have struts.xml and JSF we have faces-config.xml
>
> What if we have a 10 page site and user wants to jump to page 5. How
> do we get aroundEntryPointin this case.
>
> Thanks

--

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




Re: Migration Problem (From 1.5 to 2.0)

2009-12-16 Thread Haydar
Hi Keith,
Thanks for your answer.
I have managed to overcome this problem. Now it's working.
But now another problem occured. My System consists of two projects.
One for log-in and user roles etc. The other one has the screens.
Now I can login to the system but I can't see any of the screens, no
screens come to the view.
What can be the problem?

Thanks again...
Haydar

On 16 Aralık, 18:10, Keith Platfoot  wrote:
> Hi Haydar,
>
> Since version 1.6, GWT projects have a new canonical structure that includes
> a top-level directory named "war", where GWT expects to find your
> publicly-served HTML/CSS, as well as various configuration files (including
> the web.xml with your servlet declarations, inside a WEB-INF directory).
>  Seehttp://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#NewFe...
> a good overview of the structural changes between 1.5 and 1.6.  This
> doc
> on GWT project organization may also be 
> helpful:http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjec...
> .
>
> Hope this helps.
>
> Keith
>
>
>
> On Wed, Dec 16, 2009 at 9:19 AM, Haydar  wrote:
> > Hi,
>
> > I had a project in GWT 1.5 and I decided to migrate to GWT 2.0
>
> > In my project I had my servlet declarations in gwt.xml file. But I
> > think GWT 2.0
> > looks for them in web.xml.
> > I have done what is told on gwt site about migrating and then ran my
> > project in devmode.
> > But it gives me this warning:
>
> > "00:00:03,032 [WARN] Module declares 1  declaration(s), but a
> > valid 'web.xml' was not found at 'D:\projects\myworkspace\myproject\war
> > \WEB-INF\web.xml' "
>
> > When I look at that path I can't even find a WEB-INF folder. It
> > doesn't create it, pretends as it is created and looks for an xml file
> > which is not in a non-existing folder.
> > I couldn't understand the problem.
>
> > I can't even see my first page in the application. Should I create a
> > web.xml which contains my servlet definitions? How can I do this? What
> > must I have done wrong? Can anyone please help me?
>
> > Thanks in advance...
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com > cr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: Increased compile resource performance[excluding draftCompile] with single perm

2009-12-16 Thread Gerhard Davids
Hi,

Thanks for all the responses.
The build tips surely helps Lukas.

Yeah the whole 2m stack space issue may have been resolved but to be
perfectly honest I don't feel safe yet.
I have found that I will have to resort to upgrading to a 64bit os and
or JVM.
I dont really need the EC2 as I have a very decent build server that
can handle the load.

Its just a shlep(and slow) to commit to our source control and get
from the server etc.. etc..

I'll post my experience once I have upgraded to 64 bit.

Thanks again for the responses.


On Dec 15, 4:06 pm, Lukas Herman  wrote:
> SOYC option on large project takes immense amount of memory and hdd
> space. However, runAsync splitting is compiled properly without -
> draftCompile switch.
> I have ended with -Xmx32768m java memory for GWT Compiler using -soyc
> command line switch (i guess 8GB+ is sufficient). The generated files
> took over 2GB space on the hdd, and it took over 40 minutes to
> finish.
> There are 130 split points.
> Normal, production build takes less than 2 minutes per iteration.
>
> Hope this helps.
>
> Lucas
>
> On 15 pro, 10:05, Gerhard Davids  wrote:
>
>
>
> > Hi Folks,
>
> > I'm currently sitting with my hair in my hands.
>
> > Before I ask my question I'll provide some info on the work I'm doing
> > related to the question:
>
> > I am working on massive(MASSIVE) enterprise GWT[2.0] application.
> > The app currently consists of 3 java projects of which one is GWT(with
> > entry point) and the other two are common type of lib's used by the
> > main GWT app. The app also uses Ext-gwt[GXT]
>
> > Now when compiling we use 2.1gig of Xmx and 2m of Xss -> Build Server.
> > This takes about 30 minutes on our build server(get it now? MASSIVE!)
>
> > Righto, so here's the question :
>
> > How can I speed up my local machine memory footprint?
> > I have set the project to compile only one permutation (ie8).
> > I provide 2m Xss and 1500(+/-) Xmx This still fails with
> > OutOfMemoryException and I cant provide it with more due to my x86 OS.
> > With GWT 1.7 i was still able to pull of a build locally albeit slow.
>
> > DraftCompile is not an option as I want to do IE performance testing
> > with gwt 2.0 as well as soyc and runAsync.
>
> > On the up side... I do get a partial soyc but i can't pump my war onto
> > apache because the compile never finishes.
> > I've read around and it seems i cant split the 3 projects as GWT
> > compilable modules that work as one.
>
> > Any ideas?

--

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




Re: feature request: gwt.codesvr param should be stored in cookie

2009-12-16 Thread haole
> it would be nice if the plugin looked for the gwt.codesvr query param
> and, when present in the request URL, stored the code server IP
> address in a cookie. the server should look for value in both the
> query param and the cookie.

i meant to say:

the plugin should look for this value in the query param and in the
cookie (not 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




feature request: gwt.codesvr param should be stored in cookie

2009-12-16 Thread haole
i am using GWT developer plugin v1.0.7263 in chrome 4.0.249.30 with
eclipse v3.5.1/app engine sdk 1.3.0 and web toolkit sdk 2.0.0 on
vista.

after copy-and-pasting the initial URL into chrome, i see a module on
that page load in the development mode view in eclipse, as expected.

when i click on a link or the module makes a call to
Window.Location.assign() to take me to another page, the gwt.codesvr
query param is lost.

in order to debug modules on subsequent pages, i have to manually add
the gwt.codesvr param to the URL each time. this is annoying.

it would be nice if the plugin looked for the gwt.codesvr query param
and, when present in the request URL, stored the code server IP
address in a cookie. the server should look for value in both the
query param and the cookie.

please consider adding this to an upcoming release. the development
plugin is virtually unusable since it requires manually adding the
gwt.codesvr query param to the URL each time you go to another page
(module).

--

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




Re: Cached version of nocache.js is loaded on IE8

2009-12-16 Thread Thomas Broyer


On 17 déc, 02:14, PeteLachall  wrote:
> This 
> document:http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html
> (under the section "The .nocache.js File") claims that nocache.js
> appends "an HTTP GET parameter on the end of file name containing a
> unique timestamp. The browser interprets this as a dynamic HTTP
> request, and thus should not load the file from cache."

It actually says that *gwt.js* appends such a "HTTP GET parameter",
but gwt.js is actually dead since 1.4:
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-4&t=FAQ_GWTApplicationFiles
http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5&t=ReleaseNotes_1_5_BreakingChanges

That's a documentation bug (the doc for 1.4 had some errors, and it
wasn't really kept up-to-date for 1.5->1.7, but AFAICT the 2.0 doc has
been updated, maybe even rewritten)

--

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




Re: Cached version of nocache.js is loaded on IE8

2009-12-16 Thread PeteLachall
This document: 
http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.html
(under the section "The .nocache.js File") claims that nocache.js
appends "an HTTP GET parameter on the end of file name containing a
unique timestamp. The browser interprets this as a dynamic HTTP
request, and thus should not load the file from cache."

Is this no longer the case in GWT 1.7? Or perhaps it just doesn't work
in IE8?

--

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




Re: Cached version of nocache.js is loaded on IE8

2009-12-16 Thread Thomas Broyer

On 16 déc, 23:55, PeteLachall  wrote:
> In IE8, I'm getting a blank page for my GWT 1.7 app on every other
> attempt to load it. If I go to View->Style->No Style, I can see a 404
> error for an old cache.html page. This leads me to believe that the
> browser is loading a cached version of nocache.js. Is anyone else
> seeing this? Isn't there supposed to be some magic in nocache.js to
> prevent this from happening? Any suggestions for preventing this on
> the server-side (using Tomcat 6)? Is a servlet filter the way to go?
> If so, does anyone understand why it is necessary (just an IE8 bug,
> maybe)?

There's no magic within *.nocache.js. It's name ("nocache") has
nothing special, except that it tells *you* to configure your server
to send appropriate "no-cache" headers (see "Perfect Caching" at the
bottom of
http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html
)

--

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




Re: Should onbeforeunload work in GWT JSNI?

2009-12-16 Thread Thomas Broyer


On 16 déc, 18:42, Damon Lundin  wrote:
> I have a need to implement a "Are you sure you want to leave?"
> functionality that can prevent the user from leaving the page (the
> same thing Gmail does) when there is unsaved data.  All the
> documentation I've read says that you can do this by returning a
> string from the window.onbeforeunload method.  This works if I embed
> raw javascript in my html page, but it doesn't seem to work when I
> make a native GWT method to do that same thing.

In GWT, use Window.addWindowClosingHandler and setMessage on the
Window.ClosingEvent.

--

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




Re: Eclipse Plugin for GWT 2.0 release

2009-12-16 Thread Henry
Is there a way in the Dev Mode plugin to set the "war" directory
to something else?

What class is the DevMode plugin running... is it DevMode or is it
GWTShell?

thx,
H

On Dec 11, 9:37 am, Rajeev Dayal  wrote:
> Thanks for the feedback. Please feel free file any suggestions for
> improvement in the issue
> tracker -
> we'd appreciate it!
>
> 2009/12/11 István Szoboszlai 
>
> > Hello Rajeev,
>
> > Actually I think it is good, but I liked it when it was a separate
> > window. Of course you can drag the development mode tab to be a
> > separate window.
>
> > I liked the tabbing in the normal oophm window better, and there was a
> > way to restart jetty (perhaps I just did not find it yet in Eclipse
> > plugin.
>
> As pointed out by Jonas, there is a way to restart the server from the
> Development Mode View. When you mention that you prefer the tabbing, do you
> mean the organization of the tabs? Or do you just prefer the navigation
> style of using tabs as opposed to the breadcrumb layout? Keep in mind that
> you can switch the layout of the Development Mode View by clicking on the
> arrow in the upper-right hand corner of the view.
>
> > I also liked, that the debug info and the http request log was in a
> > separate window.
>
> That is the case in the Development Mode View as well - the Server messages
> are logged to stdout. However, we only log HTTP requests that result in an
> error. If you want to see the HTTP log messages in the Development Mode
> View, turn the log level up to TRACE in your launch configuration.
>
>
>
> > Actually I really like gwt 2.0 and also the eclipse plugin rocks! The
> > UiBinder support is awesome!
>
> Glad to hear it.
>
>
>
> > Best - István
>
> > On Thu, Dec 10, 2009 at 5:43 PM, Rajeev Dayal  wrote:
> > > If you want to use the Development Mode UI provided by GWT, define the
> > > USE_REMOTE_UI environment variable for the launch configuration, and set
> > its
> > > value to false. You can do this via the Environment tab for the launch
> > > configuration.
> > > If you don't mind, can you tell us why you're not a fan of the
> > Development
> > > Mode View in Eclipse?
> > > 2009/12/10 István Szoboszlai 
>
> > >> Hello!
> > >> I have tried the new GWT 2.0 release, and it looks very god!
> > >> My only problem is with the eclipse plugin.
> > >> Do you know how to debug the project using the normal devmode window
> > >> instead of the "Development Mode" tab in eclipse? I don't really like
> > the
> > >> new tab:)
> > >> Is there a command line argument to use the nomral devmode window?
> > >> Any answer is really appreciated:)
> > >> Thanks in advance
> > >> - István Szoboszlai | inepex.com
>
> > >> --
>
> > >> You received this message because you are subscribed to the Google
> > Groups
> > >> "Google Web Toolkit" group.
> > >> To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > >> To unsubscribe from this group, send email to
> > >> google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > >> For more options, visit this group at
> > >>http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
>
> > > You received this message because you are subscribed to the Google Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to google-web-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.
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--

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




Re: GWT 2.0 + Mac OS X Leopard + Eclipse 3.5.1 + Java 6: NSConditionLock unlock error messages?

2009-12-16 Thread Jim Douglas
Hmm.  Ok, I think I have a vague idea what's happening, but I don't
know why.  When I start my GWT Web App from Eclipse, the command line
includes -XstartOnFirstThread.  If I copy that entire command line and
run it from a command shell -- but omit -XstartOnFirstThread -- then
those errors go away, and some strange application problems that I've
been trying to track down also go away.

So the next question is -- why would the GWT Eclipse Plugin be setting
that flag, and how can I convince it to stop?  I see references to it
here:

http://code.google.com/p/google-web-toolkit/wiki/UsingOOPHM

But I don't see how to disable that option.

On Dec 16, 12:28 pm, Jim Douglas  wrote:
> GWT 2.0 seems to be working ok here, but I've been noticing floods of
> these error messages in the console:
>
> 2009-12-16 12:17:55.552 java[25151:13b03] *** -[NSConditionLock
> unlock]: lock ( '(null)') unlocked when
> not locked
> 2009-12-16 12:17:55.553 java[25151:13b03] *** Break on _NSLockError()
> to debug.
>
> Does anyone know what that means, and what I should do about it?

--

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




Re: Using GWT 2.0 where do Exception go?

2009-12-16 Thread mxmtycoder
When you run the project, you get a new view called "Development
Mode"
that first shows the development mode url so you can copy/paste on a
supported browser.

If for some reason you don't see the "Development Mode" tab, then
click menu Window=>Show View => Other => Google => Development Mode

After you paste the url on a supported browser with the plugin
installed,
you will see the log for each browser session.
(Tip: click the View Menu => Layout => Tree as I found the breadcrumb
layout hard to use)

There you can see all the logs messages you sent with GWT.log or other
log mechanisms and the exceptions and error messages.

GWT 2.0 rocks by the way!!

hope that helps,
Pablo


On Dec 16, 4:01 pm, karim  wrote:
> While using 1.7 all the Exceptions were displayed in "HostMode"
> window. I have migrated to GWT 2.0 and it looks great, however I do
> not know where to locate exceptions generated by JavaScript.
> I am using Eclipse plus GWT plugin and FireFox, Chrome and 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Cached version of nocache.js is loaded on IE8

2009-12-16 Thread PeteLachall
In IE8, I'm getting a blank page for my GWT 1.7 app on every other
attempt to load it. If I go to View->Style->No Style, I can see a 404
error for an old cache.html page. This leads me to believe that the
browser is loading a cached version of nocache.js. Is anyone else
seeing this? Isn't there supposed to be some magic in nocache.js to
prevent this from happening? Any suggestions for preventing this on
the server-side (using Tomcat 6)? Is a servlet filter the way to go?
If so, does anyone understand why it is necessary (just an IE8 bug,
maybe)?

--

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




Re: Developing a plugin based application

2009-12-16 Thread Marco Visonà
Hi Eric

thanks for your immediate response.
I figured out your technique. I'll try to apply your suggetions
tomorrow.

Bye
Marco

On 16 Dic, 22:51, Eric Ayers  wrote:
> Hi Marco,
>
> You don't want deferred binding in this case.  Deferred binding is for the
> case where you want to choose from only one of several options to be present
> at run time (like what language or browser-type).
>
> Just pretend like this is a plain Java App and you are constrained from
> using reflection.  You probably want to do something clever like create an
> object that wraps the class to be instantiated and includes an interface to
> a factory that returns layer instances.  Fill an array with these wrappers,
> pass it into your code, then at the appropriate time the code can iterate
> through the array and invoke the factory method on each one.
>
>
>
> On Wed, Dec 16, 2009 at 4:09 PM, Marco Visonà  wrote:
> > I'll try to be a bit more clear.
> > I have an abstract class called Layer an a set of classes that inherit
> > from it. There is a method in my code where i declare new instances of
> > my layer in a manner like the following:
> > new SensorsLayer(param1, param2);
> > new TestLayer(param1,param2,param3)
>
> > and so on (both the classes inherit from Layer). Each layer basically
> > fills a panel with specific widgets and event handlers.
> > In this situation somebody that develops a new layer subclass has to
> > instantiate it in the same point of the application, but that position
> > is supposed to be a "core" position of my application, so I would like
> > other programmers wouldn't put their hands on it.
>
> > So let's say I had an array containing the class names of the layers
> > (that I could read from whatever source).If there were some technique
> > to call the right constructor for each layer basing on the class name,
> > I would be done, because the instantiation could be executed through
> > an iteration on the array elements,  at each round creating the
> > running layer object.
>
> > Bye
>
> > Marco
>
> > On 16 Dic, 16:24, Eric Ayers  wrote:
> > > Hi Marco,
>
> > > Could you explain more of the intent of what you are looking for?
>
> > > I'm not sure what the intent of the plugin based architecture is.  If it
> > is
> > > to enable third party developers to be able to link into a pre-compiled
> > GWT
> > > app, its going to be quite difficult.  Normally, GWT obfuscates the
> > symbols,
> > > so the symbols  in JavaScript change between two different compiles.
>
> > > If you wanted two GWT modules compiled at separate times to talk to each
> > > other, you would need to develop a layer that uses straight JavaScript
> > that
> > > would mediate between them.  Your JavaScript property names would not be
> > > obfuscated and you could use a JavaScript overlay to create an interface
> > > back into your Java code.
>
> > > If the idea is that you will re-compile the entire application, then
> > simple
> > > deferred binding will probably do what you want.
>
> > > -Eric.
>
> > > On Wed, Dec 16, 2009 at 9:36 AM, Marco Visonà 
> > wrote:
> > > > Anybody has any idea?
>
> > > > On 15 Dic, 10:21, Marco Visonà  wrote:
> > > > > Hello I'm working to develop a plugin-based application but I'm a bit
> > > > > confused on how to achieve my goal. I'm using GWT 2.0, GWT-Ext 2.0.6
> > > > > and Google Maps API for GWT 1.0.4.
>
> > > > > My plugins are classes that create new layers or markers on a google
> > > > > map widget and fill a GWT Ext panel.
> > > > > I wrote an abstract base class, called Layer, that every plugin
> > > > > inheriths from.
>
> > > > > So my goal is to load at runtime those plugins from their class
> > names,
> > > > > read from an XML file similar to the following:
>
> > > > > 
> > > > > 
> > > > > 
>
> > > > > I think I have to use Deferred Binding to achieve this goal but I'm a
> > > > > bit confused on how to use it.
>
> > > > > So definitely, what I would like to do, is to load at runtime a list
> > > > > of classes
> > > > > from a string representation of their name. Do you have any advice
>
> > > > > Thank you in advance for any answer
>
> > > > > Greets
>
> > > > > Marco
>
> > > > --
>
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "Google Web Toolkit" group.
> > > > To post to this group, send email to
> > google-web-tool...@googlegroups.com.
> > > > To unsubscribe from this group, send email to
> > > > google-web-toolkit+unsubscr...@googlegroups.com
> > 
>
> > > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> > > --
> > > Eric Z. Ayers
> > > Google Web Toolkit, Atlanta, GA USA
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
>

Re: development mode isn't updating

2009-12-16 Thread darkflame
The webpage itself has no redirects, it stays at the same url, and I
still see the query in the bar.
Looking at firebug net tag I see;
http://www.darkflame.co.uk/sharespace/firebug.jpg
The get for the *.js does not have the query at the end, but the page
is correctly specified as the referer..is that correct?

My code does have other requests in it further down, however, the very
first line of my gwt code is to write to the firebug console ( Log.info
("version X") ) so I can see if the codes updated or not long before
these requests are made.

When that screenshot was taken, on the console page it showed
"version 5" as the first line in the log, when in my code I changed it
to version 6 hours ago. (and stoped and rerun development mode a few
times too inbetween).

On Dec 16, 4:02 pm, Rajeev Dayal  wrote:
> On Tue, Dec 15, 2009 at 4:31 PM, darkflame  wrote:
> > > Hi,
>
> > > Sorry to hear that you're having troubles.
>
> > thanks, I really appreciate all your help.
>
> > > No, they should not be. 1723 is the web server port, but 9997 is the code
> > > server port. The web server port is just that - a port on the web server
> > > which is used to serve up the page you are requesting (MyAppl...html).
> > The
> > > code server port is a port that is opened on the development mode server
> > for
> > > incoming browser connections.
>
> > Ok, thanks, that clears that up.
>
> > > > I wanted to leave it on  by it kept telling me I had another
> > > > session active. If I change it to any fixed number it always tells me
> > > > that after the first time; so sessions arnt being closed correctly. So
> > > > I had to tick "automatically select unused port" from the eclipse run
> > > > options. Which gives random port numbers that work, but my application
> > > > just dosnt update.
>
> > > If you have it at a fixed number, you need to make sure you've terminated
> > > the existing launch configuration before you try running it again. This
> > will
> > > not be done for you automatically, which is why you're always going to
> > get
> > > this error message if you run a launch with a fixed number twice in a
> > row.
> > > If you want to run multiple launches at the same time, then you have to
> > use
> > > the option to select a random port number.
>
> > Normally I press the red square in eclipse to close things, which I
> > assumed should terminate everything.
> > Is there something else I should do?
>
> Which red square are you hitting? The one in the Debug perspective, or the
> one in the Development Mode View? Either way, that should be sufficient.
>
>
>
>
>
> > > However, that should definitely not prevent an update from occurring.
> > > Perhaps you are running into problems because you're connecting to an
> > > existing development mode session. Note that it is always possible to
> > > connect to an existing running session, even if you've started a new
> > session
> > > from a launch configuration - all that really matters is the URL that you
> > > paste into the browsers.
>
> > > Be sure that all other development mode servers are terminated before
> > > starting a new one. To verify this, look at the Debug view in Eclipse, or
> > > take a look at the java processes are running on your machine.
>
> > Ah, that worked though, using the Debug view I can terminate sessions
> > and relaunch, seems to work eachtime now.
>
> > > > Lastly;
> > > > When using eclipse I have two run configurations, both were
> > > > automatically generated, and I'm not sure which to use.
>
> > > > 1. Has it popping up separately see;
> > > >http://www.lostagain.nl/tempspace/config1.jpg
> > > > 2. Has the development mode appearing in a eclipse panel at the bottom
> > > > see;
> > > >http://www.lostagain.nl/tempspace/config2.jpg
>
> > > > The one were it pops up separately I often cant run as the  port
> > > > is used and I cant find where to change it (though when it does run,
> > > > the code still dosnt update without a recompile).
>
> > > Use the second one. That is the one that uses the view integrated with
> > > Eclipse.
>
> > Ok, I'll use that from now on.
> > cheers.
>
> > > > So, it seems multiple problems for me, but by far and away the most
> > > > annoying is not being able to preview changes without recompiling.
>
> > > This should definitely not have to be the case. Please report back any
> > > problems that you run into so that we can get you up and running without
> > > having to perform recompilations to see your changes.
>
> > Well, its still not updateing.
> > I've definitely got no other sessions running, the url bar is now;
> >http://localhost:/MyApplication.html?gwt.codesvr=192.168.178.22:9997
>
> > Wheres the server being hosted? just the war directory?
> > The line in the running html pointing to my code is;
> > 
>
> > Looking at that file in my  War/MyApplication directory, the time of
> > the update seems to be from a few hours agowhen I last compiled,
> > not when I last changed the code or ran deve

Using GWT 2.0 where do Exception go?

2009-12-16 Thread karim
While using 1.7 all the Exceptions were displayed in "HostMode"
window. I have migrated to GWT 2.0 and it looks great, however I do
not know where to locate exceptions generated by JavaScript.
I am using Eclipse plus GWT plugin and FireFox, Chrome and 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: can i send http request to a subdomain from gwt

2009-12-16 Thread Mohamed Mansour
You would have to let your backend (tomcat, php, etc) to do the
request for you, and your backend/frontend belong to the same domain
(level). JavaScript cannot be cross domain, it should be part of the
same domain.

So make sure you let your backend request content and pass it to GWT
(through whatever means)

On Dec 15, 11:57 am, ben fenster  wrote:
> i want to use apache to handle static content and php and use tomct
> for comet
> sop restriction prevent me from accessing another domain or even
> another port but would it prevent me from sending a request to a
> subdomain?

--

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




Re: Developing a plugin based application

2009-12-16 Thread Eric Ayers
Hi Marco,

You don't want deferred binding in this case.  Deferred binding is for the
case where you want to choose from only one of several options to be present
at run time (like what language or browser-type).

Just pretend like this is a plain Java App and you are constrained from
using reflection.  You probably want to do something clever like create an
object that wraps the class to be instantiated and includes an interface to
a factory that returns layer instances.  Fill an array with these wrappers,
pass it into your code, then at the appropriate time the code can iterate
through the array and invoke the factory method on each one.

On Wed, Dec 16, 2009 at 4:09 PM, Marco Visonà  wrote:

> I'll try to be a bit more clear.
> I have an abstract class called Layer an a set of classes that inherit
> from it. There is a method in my code where i declare new instances of
> my layer in a manner like the following:
> new SensorsLayer(param1, param2);
> new TestLayer(param1,param2,param3)
>
> and so on (both the classes inherit from Layer). Each layer basically
> fills a panel with specific widgets and event handlers.
> In this situation somebody that develops a new layer subclass has to
> instantiate it in the same point of the application, but that position
> is supposed to be a "core" position of my application, so I would like
> other programmers wouldn't put their hands on it.
>
> So let's say I had an array containing the class names of the layers
> (that I could read from whatever source).If there were some technique
> to call the right constructor for each layer basing on the class name,
> I would be done, because the instantiation could be executed through
> an iteration on the array elements,  at each round creating the
> running layer object.
>
> Bye
>
> Marco
>
>
> On 16 Dic, 16:24, Eric Ayers  wrote:
> > Hi Marco,
> >
> > Could you explain more of the intent of what you are looking for?
> >
> > I'm not sure what the intent of the plugin based architecture is.  If it
> is
> > to enable third party developers to be able to link into a pre-compiled
> GWT
> > app, its going to be quite difficult.  Normally, GWT obfuscates the
> symbols,
> > so the symbols  in JavaScript change between two different compiles.
> >
> > If you wanted two GWT modules compiled at separate times to talk to each
> > other, you would need to develop a layer that uses straight JavaScript
> that
> > would mediate between them.  Your JavaScript property names would not be
> > obfuscated and you could use a JavaScript overlay to create an interface
> > back into your Java code.
> >
> > If the idea is that you will re-compile the entire application, then
> simple
> > deferred binding will probably do what you want.
> >
> > -Eric.
> >
> >
> >
> > On Wed, Dec 16, 2009 at 9:36 AM, Marco Visonà 
> wrote:
> > > Anybody has any idea?
> >
> > > On 15 Dic, 10:21, Marco Visonà  wrote:
> > > > Hello I'm working to develop a plugin-based application but I'm a bit
> > > > confused on how to achieve my goal. I'm using GWT 2.0, GWT-Ext 2.0.6
> > > > and Google Maps API for GWT 1.0.4.
> >
> > > > My plugins are classes that create new layers or markers on a google
> > > > map widget and fill a GWT Ext panel.
> > > > I wrote an abstract base class, called Layer, that every plugin
> > > > inheriths from.
> >
> > > > So my goal is to load at runtime those plugins from their class
> names,
> > > > read from an XML file similar to the following:
> >
> > > > 
> > > > 
> > > > 
> >
> > > > I think I have to use Deferred Binding to achieve this goal but I'm a
> > > > bit confused on how to use it.
> >
> > > > So definitely, what I would like to do, is to load at runtime a list
> > > > of classes
> > > > from a string representation of their name. Do you have any advice
> >
> > > > Thank you in advance for any answer
> >
> > > > Greets
> >
> > > > Marco
> >
> > > --
> >
> > > You received this message because you are subscribed to the Google
> Groups
> > > "Google Web Toolkit" group.
> > > To post to this group, send email to
> google-web-tool...@googlegroups.com.
> > > To unsubscribe from this group, send email to
> > > google-web-toolkit+unsubscr...@googlegroups.com
> 
> >
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-web-toolkit?hl=en.
> >
> > --
> > Eric Z. Ayers
> > Google Web Toolkit, Atlanta, GA USA
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-

Re: How to run development mode under GWT 2.0.0

2009-12-16 Thread Sorinel C
Check here the correct way of running the dev-mode for GWT2.0:

http://ui-programming.blogspot.com/2009/12/update-your-application-to-gwt-20.html

Cheers!

--

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




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread mariyan nenchev
Watch best practices from ray ryan to understand.

--

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




Re: stock trading + live rates

2009-12-16 Thread mariyan nenchev
Hi,

What you need is server polling or server push technique. There are many
discussions about this topic. You have to decide having in mind the price
update frequency, active users and so on. There are many frameworks(free and
paid) that you can use to implement server push. In our app we are using
lightstreamer - very powerful, but it also cost too much and the is no ready
to use integration. So dig for some free solutions at first and if they face
your needs use them. Also you may achieve something between polling and
pushing using simple RPC. For example : send request for price update, on
the server block until data is available and when it is return it and send
the request again, that way the user makes requests only when it is needed.
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Developing a plugin based application

2009-12-16 Thread Marco Visonà
I'll try to be a bit more clear.
I have an abstract class called Layer an a set of classes that inherit
from it. There is a method in my code where i declare new instances of
my layer in a manner like the following:
new SensorsLayer(param1, param2);
new TestLayer(param1,param2,param3)

and so on (both the classes inherit from Layer). Each layer basically
fills a panel with specific widgets and event handlers.
In this situation somebody that develops a new layer subclass has to
instantiate it in the same point of the application, but that position
is supposed to be a "core" position of my application, so I would like
other programmers wouldn't put their hands on it.

So let's say I had an array containing the class names of the layers
(that I could read from whatever source).If there were some technique
to call the right constructor for each layer basing on the class name,
I would be done, because the instantiation could be executed through
an iteration on the array elements,  at each round creating the
running layer object.

Bye

Marco


On 16 Dic, 16:24, Eric Ayers  wrote:
> Hi Marco,
>
> Could you explain more of the intent of what you are looking for?
>
> I'm not sure what the intent of the plugin based architecture is.  If it is
> to enable third party developers to be able to link into a pre-compiled GWT
> app, its going to be quite difficult.  Normally, GWT obfuscates the symbols,
> so the symbols  in JavaScript change between two different compiles.
>
> If you wanted two GWT modules compiled at separate times to talk to each
> other, you would need to develop a layer that uses straight JavaScript that
> would mediate between them.  Your JavaScript property names would not be
> obfuscated and you could use a JavaScript overlay to create an interface
> back into your Java code.
>
> If the idea is that you will re-compile the entire application, then simple
> deferred binding will probably do what you want.
>
> -Eric.
>
>
>
> On Wed, Dec 16, 2009 at 9:36 AM, Marco Visonà  wrote:
> > Anybody has any idea?
>
> > On 15 Dic, 10:21, Marco Visonà  wrote:
> > > Hello I'm working to develop a plugin-based application but I'm a bit
> > > confused on how to achieve my goal. I'm using GWT 2.0, GWT-Ext 2.0.6
> > > and Google Maps API for GWT 1.0.4.
>
> > > My plugins are classes that create new layers or markers on a google
> > > map widget and fill a GWT Ext panel.
> > > I wrote an abstract base class, called Layer, that every plugin
> > > inheriths from.
>
> > > So my goal is to load at runtime those plugins from their class names,
> > > read from an XML file similar to the following:
>
> > > 
> > > 
> > > 
>
> > > I think I have to use Deferred Binding to achieve this goal but I'm a
> > > bit confused on how to use it.
>
> > > So definitely, what I would like to do, is to load at runtime a list
> > > of classes
> > > from a string representation of their name. Do you have any advice
>
> > > Thank you in advance for any answer
>
> > > Greets
>
> > > Marco
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Eric Z. Ayers
> Google Web Toolkit, Atlanta, GA USA

--

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




Re: How make TabLayoutPanel work with UiBinder?

2009-12-16 Thread demosten
Hello Jason,

The page is standard for GWT Eclipse plug-in generated projects and
starts with:


I'm starting to believe this is some kind if bug. I'm using it without
UiBinder now and it works. Well - no styles in standard css scheme for
TabLayoutPanel and good styles for TabPanel ... but at least it works.

Regards,
Stanimir

--

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




stock trading + live rates

2009-12-16 Thread Bobby Richards
I have a desktop app that I would like to port to a gwt web app.  The
problem is I am confused on how I would serve up live streaming rates
to the new app.  Currently i have a c++ application that makes a tcp
connection to my broker, subscribes to rates, and then receives
updates any time the price changes.  It seems like web sockets would
be the way to go but how can i get the data from a C++ app to the java
web app?  Hopefully that is not too vague.

--

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




GWT 2.0 + Mac OS X Leopard + Eclipse 3.5.1 + Java 6: NSConditionLock unlock error messages?

2009-12-16 Thread Jim Douglas
GWT 2.0 seems to be working ok here, but I've been noticing floods of
these error messages in the console:

2009-12-16 12:17:55.552 java[25151:13b03] *** -[NSConditionLock
unlock]: lock ( '(null)') unlocked when
not locked
2009-12-16 12:17:55.553 java[25151:13b03] *** Break on _NSLockError()
to debug.

Does anyone know what that means, and what I should do about it?

--

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




Re: DevMode - no gui

2009-12-16 Thread Henry
I guess my main gripe with the Tree UI Panel that the DevMode launches
from the plugin or DevMode.main is that it eats a bit of memory and
the date isn't displayed properly.  I thin a pure STDOUT console would
be better.

Cheers,
Henry

On Dec 16, 10:27 am, Henry  wrote:
> The plugin DevMode still has a GUI in it (it has a Layout of
> Tree or Breadcrumb).
> I was thinking more along the lines of a log from DevMode that
> prints to STDOUT alone (unless configured to with log4j or something)
> I find the Tree GUI to be hard to seach thru (I like using CTRL-F
> to search) and can eat a bit of memory.
> Think of it like the printout as a normal Java app but with
> better logging capabilities (like printing the date).
>
> Cheers,
> Henry
>
> On Dec 16, 4:33 am, Chris Ramsdale  wrote:
>
> > I'm not sure I understand. Are you using the eclipse plugin to debug your
> > app? If so, you should only be seeing the dev mode panel in Eclipse.
>
> > On Dec 16, 2009 2:12 AM, "Henry"  wrote:
>
> > Is there a way to run DevMode with no gui?
> > If not, where do I submit a feature request ...
> > or if I do write a feature would it be useful
> > to anyone else?
>
> > Cheers,
> > Henry
>
> > --
>
> > You received this message because you are subscribed to the Google Groups
> > "Google Web Toolkit" group.
> > To post to this group, send email to google-web-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group 
> > athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--

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




Re: GWT 2.0 with C# back-end

2009-12-16 Thread joe
yeah it looks like the link was butchered when I send the post.

http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html

I have tried what you are using. However, after looking into the
problem more I see that Same Origin Policy seems to be my issue. It
looks like without using JSONP I can not call my self hosted C# WCF
application. This is due to the port miss match (Jetty server runs on
 and my self hosted WCf app runs on 80) which violates S.O.P.

According to Google's docs I can not do this without some 'hack' on
the GWT side.
http://code.google.com/webtoolkit/doc/1.6/FAQ_Server.html#How_can_I_dynamically_fetch_JSON_feeds_from_other_web_domains?

I have looked into using JSONP with WCF but I have been unable to
locate a way to send a pure JSONP object to GWT. The only thing I have
been able to do it send a string that holds my JSONP string. so there
are leading and trailing ". I would assume that GWT won't like this.

So right now I have no other option but to write a GWT back-end proxy
so that GWT front end can call my C# app to request data, unless
anyone has any ideas.

Thank you

On Dec 16, 3:25 am, rjcarr  wrote:
> The link you posted is dead, and I didn't completely understand what
> you were asking.  However, I make some non-GWTrequests in my project
> so maybe this will help you out.
>
> RequestBuilder reqbuilder = new RequestBuilder(RequestBuilder.GET,
> URL);
>
> reqbuilder.sendRequest(
>         null, // OK to use null for GET type
>         new RequestCallback() {
>                 public void onResponseReceived(Request request, Response 
> response) {
>                         if(response.getStatusCode() == 200) {
>                                 // SUCCESS
>                                 log(response.getText());
>
>                         } else {
>                                 // ERROR
>                                 log(response.getStatusCode());
>                                 log(response.getStatusText());
>                         }
>                 }
>
>                 public void onError(Request request, Throwable t) {
>                         // ERROR
>                         log(t.getMessage());
>                 }
>         }
> );
>
> On Dec 15, 7:59 am, joe  wrote:
>
> > I'm having an issue withGWT2.0requesting XML data from aC#self
> > hosted Web Service. Using the GET request tutorial 
> > (http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html) I was able
> > to retrieve the XML data usingGWT1.7. After upgrading to2.0all I
> > return is an empty String using response.getTest(). The headers are
> > also empty and response.getStatusCode() returned is 0.
>
> > Running theC#app in debug I find that it is sending the XML data
> > out, but it looks like theGWTside isn't receiving it. If I call the
> > URL from the browser I see the XML data.
>
> > I have also tried to use this same method to call other web services
> > as well as websites. Still status code 0 and no text in the
> > response.getTest().
>
> > This leads me to believe that I missed some configuration in setting
> > up my app toGWT2.0. However, I have clue where to start.
>
> > Any help would be greatly 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread balachandra maddina
Hi Joe,

  Could you tell me why is MVP is preferred over MVC please. i went through
the links given above but that isnt really giving why a presenter pattern is
preferred over a controller pattern? they explain what is MVP pattern.

Thank you,
bala.

On Wed, Dec 16, 2009 at 6:04 PM, Joe  wrote:

> Hi Fabien,
>
> I'm afraid you should build your GWT applications in MVP (Model - View
> - Presenter) design pattern and not MVC (Model - View - Controller),
> as stated by ray Ryan at Google IO 2009.
>
> Check out these links:
>
> http://supplychaintechnology.wordpress.com/2009/06/03/forget-mvc-use-mvp/
>
> and
>
>
> http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html
>
> Good luck!
>
> On Dec 15, 3:58 pm, Fabien  wrote:
> > Hi,
> >
> > I would like to know if someone try to merge PureMVC and GWT ?
> >
> > And if true, if someone can help me with just an example or a
> > tutorial.
> >
> > Thanks,
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: DevMode - no gui

2009-12-16 Thread Henry
The plugin DevMode still has a GUI in it (it has a Layout of
Tree or Breadcrumb).
I was thinking more along the lines of a log from DevMode that
prints to STDOUT alone (unless configured to with log4j or something)
I find the Tree GUI to be hard to seach thru (I like using CTRL-F
to search) and can eat a bit of memory.
Think of it like the printout as a normal Java app but with
better logging capabilities (like printing the date).

Cheers,
Henry

On Dec 16, 4:33 am, Chris Ramsdale  wrote:
> I'm not sure I understand. Are you using the eclipse plugin to debug your
> app? If so, you should only be seeing the dev mode panel in Eclipse.
>
> On Dec 16, 2009 2:12 AM, "Henry"  wrote:
>
> Is there a way to run DevMode with no gui?
> If not, where do I submit a feature request ...
> or if I do write a feature would it be useful
> to anyone else?
>
> Cheers,
> Henry
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread Christian Goudreau
Check out the project GWT-Presenter.

It's really worth it !

Christian Goudreau

On Wed, Dec 16, 2009 at 12:44 PM, Joe  wrote:

> Welcome,
> anytime mate :)
>
> On Dec 16, 4:30 pm, Fabien  wrote:
> > Hi Joe,
> >
> > Thanks, I think it was I'm looking for :)
> >
> > On Dec 16, 1:34 pm, Joe  wrote:
> >
> >
> >
> > > Hi Fabien,
> >
> > > I'm afraid you should build your GWT applications in MVP (Model - View
> > > - Presenter) design pattern and not MVC (Model - View - Controller),
> > > as stated by ray Ryan at Google IO 2009.
> >
> > > Check out these links:
> >
> > >http://supplychaintechnology.wordpress.com/2009/06/03/forget-mvc-use-.
> ..
> >
> > > and
> >
> > >http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr.
> ..
> >
> > > Good luck!
> >
> > > On Dec 15, 3:58 pm, Fabien  wrote:
> >
> > > > Hi,
> >
> > > > I would like to know if someone try to mergePureMVCand GWT ?
> >
> > > > And if true, if someone can help me with just an example or a
> > > > tutorial.
> >
> > > > Thanks,
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread Pablo Martin Gore
Here you can read and see one example for use pureMVC and GWT
http://trac.puremvc.org/Demo_Java_MultiCore_GWT_EmployeeAdmin
We use this example as guide in our application.


2009/12/16 Joe 

> Welcome,
> anytime mate :)
>
> On Dec 16, 4:30 pm, Fabien  wrote:
> > Hi Joe,
> >
> > Thanks, I think it was I'm looking for :)
> >
> > On Dec 16, 1:34 pm, Joe  wrote:
> >
> >
> >
> > > Hi Fabien,
> >
> > > I'm afraid you should build your GWT applications in MVP (Model - View
> > > - Presenter) design pattern and not MVC (Model - View - Controller),
> > > as stated by ray Ryan at Google IO 2009.
> >
> > > Check out these links:
> >
> > >http://supplychaintechnology.wordpress.com/2009/06/03/forget-mvc-use-.
> ..
> >
> > > and
> >
> > >http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr.
> ..
> >
> > > Good luck!
> >
> > > On Dec 15, 3:58 pm, Fabien  wrote:
> >
> > > > Hi,
> >
> > > > I would like to know if someone try to mergePureMVCand GWT ?
> >
> > > > And if true, if someone can help me with just an example or a
> > > > tutorial.
> >
> > > > Thanks,
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread Joe
Welcome,
anytime mate :)

On Dec 16, 4:30 pm, Fabien  wrote:
> Hi Joe,
>
> Thanks, I think it was I'm looking for :)
>
> On Dec 16, 1:34 pm, Joe  wrote:
>
>
>
> > Hi Fabien,
>
> > I'm afraid you should build your GWT applications in MVP (Model - View
> > - Presenter) design pattern and not MVC (Model - View - Controller),
> > as stated by ray Ryan at Google IO 2009.
>
> > Check out these links:
>
> >http://supplychaintechnology.wordpress.com/2009/06/03/forget-mvc-use-...
>
> > and
>
> >http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...
>
> > Good luck!
>
> > On Dec 15, 3:58 pm, Fabien  wrote:
>
> > > Hi,
>
> > > I would like to know if someone try to mergePureMVCand GWT ?
>
> > > And if true, if someone can help me with just an example or a
> > > tutorial.
>
> > > Thanks,

--

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




Should onbeforeunload work in GWT JSNI?

2009-12-16 Thread Damon Lundin
I have a need to implement a "Are you sure you want to leave?"
functionality that can prevent the user from leaving the page (the
same thing Gmail does) when there is unsaved data.  All the
documentation I've read says that you can do this by returning a
string from the window.onbeforeunload method.  This works if I embed
raw javascript in my html page, but it doesn't seem to work when I
make a native GWT method to do that same thing.

This works:

window.onbeforeunload = function () {
   return "Hello (in the browser)";
};



This doesn't:
private native String addOnBeforeUnloadHandler() /*-{
$wnd.onbeforeunload = function () {
return "Hello (in GWT)";
};
}-*/;

Any idea why (and I added an alert in that method to verify that it is
being called to add the onbeforeunload)?

If I have to, I can embed the raw script in the HTML and add a hook
into my GWT code, but that's not as pretty.

--

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




Re: can i send http request to a subdomain from gwt

2009-12-16 Thread ben fenster
i need something that would work on every browser i cant understand
how facebook sends requests to their chat subdomain

On 16 דצמבר, 10:29, rjcarr  wrote:
> I think this is one of those questions you're just going to have to
> test yourself.  Also, be careful, because different browsers have
> different policies for this sort of thing.
>
> On Dec 15, 8:57 am, ben fenster  wrote:
>
> > i want to use apache to handle static content and php and use tomct
> > for comet
> > sop restriction prevent me from accessing another domain or even
> > another port but would it prevent me from sending a request to a
> > subdomain?

--

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




Creating a GWT demo of an iPhone game a good idea?

2009-12-16 Thread amich...@gmail.com
Would creating a web demo of an iPhone/iPod touch game using GWT get
much attention?

One might suspect this since GWT games seem to be a novelty and are
perhaps more likely to stand out than Flash ones.

The game in question, DropZap, can probably be implemented reasonably
well using GWT:  http://www.dropzap.com

--

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




How do GWT webpages (HTML) map to java files.

2009-12-16 Thread Saeed
I would like to know how webpages map to specific Java methods please
like in Struts we have struts.xml and JSF we have faces-config.xml

What if we have a 10 page site and user wants to jump to page 5. How
do we get around EntryPoint in this case.

Thanks

--

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




Re: Migration Problem (From 1.5 to 2.0)

2009-12-16 Thread Keith Platfoot
Hi Haydar,

Since version 1.6, GWT projects have a new canonical structure that includes
a top-level directory named "war", where GWT expects to find your
publicly-served HTML/CSS, as well as various configuration files (including
the web.xml with your servlet declarations, inside a WEB-INF directory).
 See
http://code.google.com/webtoolkit/doc/1.6/ReleaseNotes_1_6.html#NewFeaturesfor
a good overview of the structural changes between 1.5 and 1.6.  This
doc
on GWT project organization may also be helpful:
http://code.google.com/webtoolkit/doc/latest/DevGuideOrganizingProjects.html#DevGuideDirectoriesPackageConventions
.

Hope this helps.

Keith

On Wed, Dec 16, 2009 at 9:19 AM, Haydar  wrote:

> Hi,
>
> I had a project in GWT 1.5 and I decided to migrate to GWT 2.0
>
> In my project I had my servlet declarations in gwt.xml file. But I
> think GWT 2.0
> looks for them in web.xml.
> I have done what is told on gwt site about migrating and then ran my
> project in devmode.
> But it gives me this warning:
>
> "00:00:03,032 [WARN] Module declares 1  declaration(s), but a
> valid 'web.xml' was not found at 'D:\projects\myworkspace\myproject\war
> \WEB-INF\web.xml' "
>
> When I look at that path I can't even find a WEB-INF folder. It
> doesn't create it, pretends as it is created and looks for an xml file
> which is not in a non-existing folder.
> I couldn't understand the problem.
>
> I can't even see my first page in the application. Should I create a
> web.xml which contains my servlet definitions? How can I do this? What
> must I have done wrong? Can anyone please help me?
>
> Thanks in advance...
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: My first deploy

2009-12-16 Thread Ista Pouss
I have resolved, for this time, the problem.

It is with Eclipse and GWT 2.0. I have resolve the problem with these
magicals and mysteries steps :

- manual delete war/project and WEB-INF directory
- build from eclipse
- manual create WEB-INF/lib because eclipse can't create it ???
- rebuild project
- manual copy of my project in an other directory to see it outside eclipse.


AND IT'S WORK !

Thanks.


2009/12/16 Keith Platfoot :
> Hi Ista,
> Could you provide a little more detail about your setup?  For example, are
> you using the latest GWT version (2.0)?.  Also, how are you launching the
> project?  It sounds like you are running a local web server, and placing the
> compiled GWT application there, and then navigating to your index page with
> a web browser.  If you can elaborate a little, that would be helpful in
> troubleshooting the problem.  Thanks,
> Keith
> On Wed, Dec 16, 2009 at 4:52 AM, Ista Pouss  wrote:
>>
>> Hi,
>>
>> I have my little gwt application with eclipse, and I copy the
>> directory app in place my little web site in local, I modify
>> index.html with gwt things, i lauch it... and I see :
>>
>> GWT module 'diap' may need to be (re)compiled
>>
>>
>> What is that ?
>>
>> I've seen
>> http://groups.google.com/group/google-web-toolkit/browse_frm/thread/81b75d2c71bd4775?tvc=1&q=may+need+to+be+(re)compiled
>> and I delete the directory and recompile, it's always the same.
>>
>> 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-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>

--

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




Re: Repeat background image in ClientBundle

2009-12-16 Thread mariyan nenchev
Hi, i tried this with RC1, and it didn't work, but now with RC2 and gwt 2.0
it's working perfectly.
Thanks.

--

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




Re: My first deploy

2009-12-16 Thread Keith Platfoot
Hi Ista,

Could you provide a little more detail about your setup?  For example, are
you using the latest GWT version (2.0)?.  Also, how are you launching the
project?  It sounds like you are running a local web server, and placing the
compiled GWT application there, and then navigating to your index page with
a web browser.  If you can elaborate a little, that would be helpful in
troubleshooting the problem.  Thanks,

Keith

On Wed, Dec 16, 2009 at 4:52 AM, Ista Pouss  wrote:

> Hi,
>
> I have my little gwt application with eclipse, and I copy the
> directory app in place my little web site in local, I modify
> index.html with gwt things, i lauch it... and I see :
>
> GWT module 'diap' may need to be (re)compiled
>
>
> What is that ?
>
> I've seen
> http://groups.google.com/group/google-web-toolkit/browse_frm/thread/81b75d2c71bd4775?tvc=1&q=may+need+to+be+(re)compiled
> and I delete the directory and recompile, it's always the same.
>
> 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-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Repeat background image in ClientBundle

2009-12-16 Thread mariyan nenchev
Hi, and how do you use the image?

You use
someContainer.setStyleName(resources.css().withRepeatedBackground());

On Wed, Dec 16, 2009 at 4:30 PM, Thomas Broyer  wrote:

>
> On Dec 16, 12:03 pm, mariyan nenchev 
> wrote:
> > Hi,
> >
> > Does any one know how to use image as background using repeat-x or
> repeat-y
> > with ClientBundle? For example if you have one image 1x1000px and you
> need
> > to repeat the image as background how can you do it with ClientBundle and
> > CssResource? For now i am using css styles and specify the image url in
> the
> > css but this way my application will download every image with separate
> > request. I tried to anotate the Image with REPEAT_HORIZONTAL (in the
> client
> > bundle) but no effect.
> > Please help.
>
> This works OK for me (I'm styling DialogBox widgets with border images
> using this technique):
>
> interface Resources extends ClientBundle {
>   @Source("style.css")
>   Styles css();
>
>   @ImageOptions(repeatStyle=RepeatStyle.Horizontal)
>   ImageResource background();
> }
> interface Styles extends CssResource {
>   String withRepeatedBackground();
> }
>
> And in style.css:
> @sprite .withRepeatedBackground {
>   gwt-image: "background";
> }
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Spring for GWT are there for the client side ?

2009-12-16 Thread philippe
Thanks for info.

For all peoples, GIN is here : http://code.google.com/p/google-gin/


On 16 déc, 16:00, "Feldman, Nir"  wrote:
> You should use GIN.
>
> -Original Message-
> From: google-web-toolkit@googlegroups.com 
> [mailto:google-web-tool...@googlegroups.com] On Behalf Of philippe
> Sent: Wednesday, December 16, 2009 4:28 PM
> To: Google Web Toolkit
> Subject: Spring for GWT are there for the client side ?
>
> Hi all,
>
> I would like put annotations on my client side code to injected others
> objects from client side, obviously.
>
> Is a framework, which would it, exist ?
>
> regards,
> Philippe
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group 
> athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
>

--

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




Deploying into Tomcat servlet

2009-12-16 Thread stwf
Hello All,

I've got a GWT 2.0 app. It works fine in Development mode. But when I
upload it tot the server it doesn't work.

Its a hosted situation, apache is installed in usr/local/jakarta, but
the website is a VirtualHost, so I need the html files to live in /
home/scholar/public_html.

So after much experimentation, I produce my war file, then I unjar it
into BOTH /home/scholar/public_html as well as /usr/local/jakarta/
tomcat/webapps/scholar. Then restart the server.

THs works fine for the html files, all seems ok, but none of the
server side process are getting picked up. Do I need to alter the
server.xml file for the TOmcat applicaiton? Shouldn't it get all of
that out of the web.xml file inside my war?

Anyway any help would be greatly appreciated!

TIA
steve

--

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




Re: Developing a plugin based application

2009-12-16 Thread Eric Ayers
Hi Marco,

Could you explain more of the intent of what you are looking for?

I'm not sure what the intent of the plugin based architecture is.  If it is
to enable third party developers to be able to link into a pre-compiled GWT
app, its going to be quite difficult.  Normally, GWT obfuscates the symbols,
so the symbols  in JavaScript change between two different compiles.

If you wanted two GWT modules compiled at separate times to talk to each
other, you would need to develop a layer that uses straight JavaScript that
would mediate between them.  Your JavaScript property names would not be
obfuscated and you could use a JavaScript overlay to create an interface
back into your Java code.

If the idea is that you will re-compile the entire application, then simple
deferred binding will probably do what you want.

-Eric.

On Wed, Dec 16, 2009 at 9:36 AM, Marco Visonà  wrote:

> Anybody has any idea?
>
>
> On 15 Dic, 10:21, Marco Visonà  wrote:
> > Hello I'm working to develop a plugin-based application but I'm a bit
> > confused on how to achieve my goal. I'm using GWT 2.0, GWT-Ext 2.0.6
> > and Google Maps API for GWT 1.0.4.
> >
> > My plugins are classes that create new layers or markers on a google
> > map widget and fill a GWT Ext panel.
> > I wrote an abstract base class, called Layer, that every plugin
> > inheriths from.
> >
> > So my goal is to load at runtime those plugins from their class names,
> > read from an XML file similar to the following:
> >
> > 
> > 
> > 
> >
> > I think I have to use Deferred Binding to achieve this goal but I'm a
> > bit confused on how to use it.
> >
> > So definitely, what I would like to do, is to load at runtime a list
> > of classes
> > from a string representation of their name. Do you have any advice
> >
> > Thank you in advance for any answer
> >
> > Greets
> >
> > Marco
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Eric Z. Ayers
Google Web Toolkit, Atlanta, GA USA

--

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




Re: Using Eclipse plugin and having a problem saving back to CVS

2009-12-16 Thread Miguel Méndez
GWT will generate the files in war/passwordmanager/...  If the project is
CVS enabled, then it would seem possible that the CVS eclipse plugin is
trying to add those files into version control; possibly when the workspace
is refreshed.

Are you sure that you want to version control the contents of the
war/passwordmanager directory?

On Tue, Dec 15, 2009 at 8:03 PM, Rob Tanner  wrote:

> I am having problems saving back to CVS.  Contrary to the error
> message, the only party saving back to CVS is me and only from a
> single computer.   The problem effects only my GWT development.  I am
> using the 3.5 plugin, 1.1.2.v200910131704.  Any ideas?
>
> -- Rob
>
> The server reported an error while performing the "cvs add" command.
>  PasswordManager: cvs add: war/passwordmanager/
> 8EA5BDE53D9728CE5D07A35CA6656F8B.gwt.rpc added independently by second
> party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> ie6/vborder_blue_shadow.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> ie6/corner_dialog_topleft.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/js/sh/clipboard.swf
> added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/js/yui/assets/
> expressinstall.swf added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> ie6/hborder_gray_shadow.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> ie6/vborder_gray_shadow.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> ie6/hborder_blue_shadow.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/
> 9DA92932034707C17CFF15F95086D53F.cache.png added independently by
> second party
>  PasswordManager: cvs add: war/passwordmanager/clear.cache.gif added
> independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> hborder_ie6.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/
> B8517E9C2E38AA39AB7C0051564224D3.cache.png added independently by
> second party
>  PasswordManager: cvs add: war/passwordmanager/cbg-star.png added
> independently by second party
>  PasswordManager: cvs add: war/passwordmanager/
> A7CD51F9E5A7DED5F85AD1D82BA67A8A.cache.png added independently by
> second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> vborder_ie6.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> vborder.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/cbg-stardeselected.png
> added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> hborder.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/cbg-starhover.png
> added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> corner_ie6.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/
> 14A43CD7E24B0A0136C2B8B20D6DF3C0.cache.png added independently by
> second party
>  PasswordManager: cvs add: war/passwordmanager/js/yui/charts/assets/
> charts.swf added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> corner.png added independently by second party
>  PasswordManager: cvs add: war/passwordmanager/
> 548CDF11D6FE9011F3447CA200D7FB7F.cache.png added independently by
> second party
>  PasswordManager: cvs add: war/passwordmanager/gwt/standard/images/
> ie6/corner_dialog_topright.png added independently by second party
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Miguel

--

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




Re: development mode isn't updating

2009-12-16 Thread Rajeev Dayal
On Tue, Dec 15, 2009 at 4:31 PM, darkflame  wrote:

> > Hi,
> >
> > Sorry to hear that you're having troubles.
> >
>
> thanks, I really appreciate all your help.
>
> >
> > No, they should not be. 1723 is the web server port, but 9997 is the code
> > server port. The web server port is just that - a port on the web server
> > which is used to serve up the page you are requesting (MyAppl...html).
> The
> > code server port is a port that is opened on the development mode server
> for
> > incoming browser connections.
>
> Ok, thanks, that clears that up.
>
>
> > > I wanted to leave it on  by it kept telling me I had another
> > > session active. If I change it to any fixed number it always tells me
> > > that after the first time; so sessions arnt being closed correctly. So
> > > I had to tick "automatically select unused port" from the eclipse run
> > > options. Which gives random port numbers that work, but my application
> > > just dosnt update.
> >
> > If you have it at a fixed number, you need to make sure you've terminated
> > the existing launch configuration before you try running it again. This
> will
> > not be done for you automatically, which is why you're always going to
> get
> > this error message if you run a launch with a fixed number twice in a
> row.
> > If you want to run multiple launches at the same time, then you have to
> use
> > the option to select a random port number.
>
> Normally I press the red square in eclipse to close things, which I
> assumed should terminate everything.
> Is there something else I should do?
>

Which red square are you hitting? The one in the Debug perspective, or the
one in the Development Mode View? Either way, that should be sufficient.


>
> >
> > However, that should definitely not prevent an update from occurring.
> > Perhaps you are running into problems because you're connecting to an
> > existing development mode session. Note that it is always possible to
> > connect to an existing running session, even if you've started a new
> session
> > from a launch configuration - all that really matters is the URL that you
> > paste into the browsers.
> >
> > Be sure that all other development mode servers are terminated before
> > starting a new one. To verify this, look at the Debug view in Eclipse, or
> > take a look at the java processes are running on your machine.
> >
>
> Ah, that worked though, using the Debug view I can terminate sessions
> and relaunch, seems to work eachtime now.
>
> >
> >
> > > Lastly;
> > > When using eclipse I have two run configurations, both were
> > > automatically generated, and I'm not sure which to use.
> >
> > > 1. Has it popping up separately see;
> > >http://www.lostagain.nl/tempspace/config1.jpg
> > > 2. Has the development mode appearing in a eclipse panel at the bottom
> > > see;
> > >http://www.lostagain.nl/tempspace/config2.jpg
> >
> > > The one were it pops up separately I often cant run as the  port
> > > is used and I cant find where to change it (though when it does run,
> > > the code still dosnt update without a recompile).
> >
> > Use the second one. That is the one that uses the view integrated with
> > Eclipse.
> >
>
> Ok, I'll use that from now on.
> cheers.
>
>
> > > So, it seems multiple problems for me, but by far and away the most
> > > annoying is not being able to preview changes without recompiling.
> >
> > This should definitely not have to be the case. Please report back any
> > problems that you run into so that we can get you up and running without
> > having to perform recompilations to see your changes.
>
> Well, its still not updateing.
> I've definitely got no other sessions running, the url bar is now;
> http://localhost:/MyApplication.html?gwt.codesvr=192.168.178.22:9997
>
> Wheres the server being hosted? just the war directory?
> The line in the running html pointing to my code is;
> 
>
> Looking at that file in my  War/MyApplication directory, the time of
> the update seems to be from a few hours agowhen I last compiled,
> not when I last changed the code or ran development mode.  Should it
> be pointing to this location and the location should have updated? or
> should it be pointing elsewhere?
>

No, that is correct. When running in development mode, the MyApplication
directory is automatically generated for you with some necessary artifacts
(i.e. the nocache.js file). You don't have to worry about recompiling to
keep these files up to date; they're just for bootstrapping.

See Chris's response above mine. Are there any links/redirects in your
application that cause the gwt.codesvr parameter to be dropped from the URL?
To verify this, you can use a tool like Firebug and ensure that all requests
to your server in development mode have the gwt.codesvr parameter appended
to the end of the URL.


>
>
> >
> > > Despite all the coolness that gwt2 has brought, I'm tempted to go back
> > > to 1.7 till this problems resolved :-/
> > > I really dont want to do that though, as b

RE: Spring for GWT are there for the client side ?

2009-12-16 Thread Feldman, Nir
You should use GIN.

-Original Message-
From: google-web-toolkit@googlegroups.com 
[mailto:google-web-tool...@googlegroups.com] On Behalf Of philippe
Sent: Wednesday, December 16, 2009 4:28 PM
To: Google Web Toolkit
Subject: Spring for GWT are there for the client side ?

Hi all,

I would like put annotations on my client side code to injected others
objects from client side, obviously.

Is a framework, which would it, exist ?

regards,
Philippe

--

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


--

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




Re: Development Mode Firefox 64bit Linux Issue

2009-12-16 Thread Mike Bedard
I had the same issue and to resolve the plugin issue i had to upgrade to 
firefox 3.5 from 3.0
 
 
 
I also had issues when using SDK 1.7.1 after upgrading firefox with plugin.  
None of the widgets would show up...this is an excerpt of the reply I made to 
someone else seeing the same issue:
#
# I had similar issues with upgrading to GWT 2.0 and the way I got hosted mode 
to start up # agian was to remove Firefox and the .mozilla directory under my 
home directory.  I'm not # sure if the issue has to do with the plugin 
for Firefox and I really don't have the time to  
# look into it...  
  
# I tried deleting the cache and reinstalling eclipse and going back and forth 
between 1.71 
# and 2.0, but nothing worked.
  
# My issues was the hosted mode would never call onModuleLoad, so the page 
would 
# show up with no widgets.  This would happen even with a fresh new Test 
project.
 
# Also, if you GXT it will not work with GWT 2.0
 
Good Luck!
 
 
-mike

--- On Wed, 12/16/09, StevenLeRoux  wrote:


From: StevenLeRoux 
Subject: Re: Development Mode Firefox 64bit Linux Issue
To: "Google Web Toolkit" 
Date: Wednesday, December 16, 2009, 4:24 AM




On Dec 11, 4:03 pm, Chris Ramsdale  wrote:
> What errors, if any, are you seeing in the FF error console (Tools->Error
> Console)? While you're there, check the OS/ABI by evaluating the following
> expressions:
>
> Components.classes["@mozilla.org/xre/app-info;1
> "].getService(Components.interfaces.nsIXULRuntime).OS
> Components.classes["@mozilla.org/xre/app-info;1
> "].getService(Components.interfaces.nsIXULRuntime).XPCOMABI
>
> - Chris

Hi,

I still have the same problem.

Using debian Lenny 64bits
Iceweasel 3.0.6 64 bits
gwt plugin 1.0.7.7263

And I have no error running the webapp page (only pointless warnings
about css).





>
> On Fri, Dec 11, 2009 at 9:55 AM, Chris Ramsdale wrote:
>
> > @alexmat, @andreit, does the plugin show up in the list of Add-ons? If so,
> > what version do you have installed?
>
> > On Wed, Nov 25, 2009 at 10:16 AM, alexmat  wrote:
>
> >> Dev mode starts up fine. Point firefox at the url, download and
> >> install plugin. Restart... and it asks me to install the plugin again.
> >> It is already installed though. Anyone else seeing this?
>
> >> Any advice?
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.

--

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





  

--

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




Re: Is for each loop faster than for loop?

2009-12-16 Thread Thomas Broyer


On Dec 15, 7:29 pm, "flyingb...@gmail.com" 
wrote:
> Just wondering what is a better way to code. Using for each loops or
> for loops?
>
> I am wondering will the resulting javascript be different.

It first depends whether you're looping on an array or an Iterable.

With an array, GWT compiles the following:
   for (Cls obj : arr) { ... }
the same as:
   for (int i = 0, l = arr.length; i < l; i++) { ... }
It's faster than:
   for (int i = 0; i < arr.length; i++) { Cls obj = arr[i]; ... }
because arr.length is cached.

Iterable are different, because GWT cannot predict how they'll
behave (and Iterable don't have a size, and even Collection
could be modified while iterating), so it always involves getting an
Iterator out of the Iterable, which will probably always be less
performing than iterating by indices if you can.

I haven't checked, but GWT probably compiles the following:
   for (Cls obj : iterable) { ... }
the same as:
   for (Iterator iter = iterable.iterator(); iter.hasNext; ) {
  Cls obj = iter.next();
  ...
   }
For anything backed by an array, this will mean the arr.length is
probably checked on each iteration, as well as checks for whether the
iterable was modified within the loop (and throw a
ConcurrentModificationException).

However, Ray Cromwell and others are working on improving this
situation and further optimize for(:) loops on Iterables under some
conditions on the Iterator/Iterable implementation details.
So my recommendation would be to stick to for(:) loops if they work
for you as they're more readable and less error-prone; and try to work
with arrays if you can.

--

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




Re: Developing a plugin based application

2009-12-16 Thread Marco Visonà
Anybody has any idea?


On 15 Dic, 10:21, Marco Visonà  wrote:
> Hello I'm working to develop a plugin-based application but I'm a bit
> confused on how to achieve my goal. I'm using GWT 2.0, GWT-Ext 2.0.6
> and Google Maps API for GWT 1.0.4.
>
> My plugins are classes that create new layers or markers on a google
> map widget and fill a GWT Ext panel.
> I wrote an abstract base class, called Layer, that every plugin
> inheriths from.
>
> So my goal is to load at runtime those plugins from their class names,
> read from an XML file similar to the following:
>
> 
> 
> 
>
> I think I have to use Deferred Binding to achieve this goal but I'm a
> bit confused on how to use it.
>
> So definitely, what I would like to do, is to load at runtime a list
> of classes
> from a string representation of their name. Do you have any advice
>
> Thank you in advance for any answer
>
> Greets
>
> Marco

--

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




Re: Announcing GWT 2.0 and much, much more...

2009-12-16 Thread Miguel Méndez
When you do opt to run the built-in server, development mode takes a guess
at the what the startup URLs might be by looking at the root of your war
folder.  As you have discovered that does not work if you opt not to run the
server.  To get around this, you can add the -startupUrl "YOUR_URL_HERE" to
the launch configuration's program arguments box.  This will cause the right
development mode URL to appear in the development mode view.

On Wed, Dec 16, 2009 at 3:58 AM, olmin  wrote:

> Hi all,
>
> See if somebody can help me:
>
> I've install the eclipse plugin. When I configure the Web Application
> launcher I disable the "Run built-in server" becauser I have my own
> server that I need to use. But when executing, the "Development mode"
> console doesn't give me any url to debug my application, so I cannot
> test it in any browser.
>
> In the old "host mode" you could configure the url where your module
> was going to be, but this option is no longer available in the new
> plugin.
>
> Any idea of what's happening??
>
> Thanks in advance.
>
> Olmo
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>


-- 
Miguel

--

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




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread Fabien
Hi Joe,


Thanks, I think it was I'm looking for :)


On Dec 16, 1:34 pm, Joe  wrote:
> Hi Fabien,
>
> I'm afraid you should build your GWT applications in MVP (Model - View
> - Presenter) design pattern and not MVC (Model - View - Controller),
> as stated by ray Ryan at Google IO 2009.
>
> Check out these links:
>
> http://supplychaintechnology.wordpress.com/2009/06/03/forget-mvc-use-...
>
> and
>
> http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPr...
>
> Good luck!
>
> On Dec 15, 3:58 pm, Fabien  wrote:
>
>
>
> > Hi,
>
> > I would like to know if someone try to mergePureMVCand GWT ?
>
> > And if true, if someone can help me with just an example or a
> > tutorial.
>
> > Thanks,

--

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




Re: Repeat background image in ClientBundle

2009-12-16 Thread Thomas Broyer

On Dec 16, 12:03 pm, mariyan nenchev 
wrote:
> Hi,
>
> Does any one know how to use image as background using repeat-x or repeat-y
> with ClientBundle? For example if you have one image 1x1000px and you need
> to repeat the image as background how can you do it with ClientBundle and
> CssResource? For now i am using css styles and specify the image url in the
> css but this way my application will download every image with separate
> request. I tried to anotate the Image with REPEAT_HORIZONTAL (in the client
> bundle) but no effect.
> Please help.

This works OK for me (I'm styling DialogBox widgets with border images
using this technique):

interface Resources extends ClientBundle {
   @Source("style.css")
   Styles css();

   @ImageOptions(repeatStyle=RepeatStyle.Horizontal)
   ImageResource background();
}
interface Styles extends CssResource {
   String withRepeatedBackground();
}

And in style.css:
@sprite .withRepeatedBackground {
   gwt-image: "background";
}

--

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




Re: Offline Mode in GWT

2009-12-16 Thread Joe Cole
We use adobe air. Gears doesn't have support for encrypted local data
which is important for us.
We've used gwt-in-the-air as a base, which has worked really well.

On Dec 16, 11:06 am, Greg  wrote:
> Hi All,
>
> I am about to attempt to turn my GWT app into an offline-capable app
> with DB and local server. Is Gears for GWT still the best way to do
> this? Has anyone used HTML5 with GWT or have any other ideas to
> offline a server/DB app?
>
> Thanks,
> Greg

--

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




Spring for GWT are there for the client side ?

2009-12-16 Thread philippe
Hi all,

I would like put annotations on my client side code to injected others
objects from client side, obviously.

Is a framework, which would it, exist ?

regards,
Philippe

--

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




Re: How to fire event

2009-12-16 Thread Thomas Broyer


On Dec 15, 2:42 pm, HarryClaymore  wrote:
> Hi. I wonder how could i fire an simple OnChangeEvent for Widget ?
> It implements interface HasChangeHandlers.
> I just want to fireEvent to mark widget as "changed"

ChangeEvent is a DomEvent, which is mostly aimed at making onchange=
available in GWT. For new widgets, moreover composites, you should use
"logical" events, which are lighter-weight; either use one from
com.google.gwt.event.logical.client or create one (that's not
difficult, read the code the ones in the "logical" package, you only
need an "XxxHandler extends EventHandler" and "XxxEvent extends
GwtEvent", and optionally an HasXxxHandlers if you intend
to reuse your event in many places and/or don't want to reference the
widget class directly in your code, for instance if you follow the
same MVP rules as Ray Ryan in his Google I/O '09 talk)

Firing a ChangeEvent programmatically is possible though:

> selectAllButton = DasUtils.mkButton( GenericStrings.SELECT_ALL.toString
> (), new Runnable() {
>                         public void run() {
>                                 for ( int i = 0; i < lbRef[0].getItemCount(); 
> i++ ) {
>                                         lbRef[0].setItemSelected( i, true );
>                                 }

DomEvent.fireNativeEvent(Document.get().createChangeEvent(),
SearchFieldAttrIn.this);

--

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




Migration Problem (From 1.5 to 2.0)

2009-12-16 Thread Haydar
Hi,

I had a project in GWT 1.5 and I decided to migrate to GWT 2.0

In my project I had my servlet declarations in gwt.xml file. But I
think GWT 2.0
looks for them in web.xml.
I have done what is told on gwt site about migrating and then ran my
project in devmode.
But it gives me this warning:

"00:00:03,032 [WARN] Module declares 1  declaration(s), but a
valid 'web.xml' was not found at 'D:\projects\myworkspace\myproject\war
\WEB-INF\web.xml' "

When I look at that path I can't even find a WEB-INF folder. It
doesn't create it, pretends as it is created and looks for an xml file
which is not in a non-existing folder.
I couldn't understand the problem.

I can't even see my first page in the application. Should I create a
web.xml which contains my servlet definitions? How can I do this? What
must I have done wrong? Can anyone please help me?

Thanks in advance...

--

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




Re: 1.7->2.0 hosted mode no longer working

2009-12-16 Thread Chris Ramsdale
Derek,

GWT 2.0 still allows you to debug using external servers. To do this though,
you'll need to update your launch configs to pass in -noserver and
-startupUrl. Below is a previous thread that talks about this in more
detail.

http://groups.google.com/group/google-web-toolkit/browse_thread/thread/f5c903255d896a03/7935f4afd24b869d

- Chris


On Mon, Dec 14, 2009 at 1:45 PM, Derek  wrote:

> Hi
>
> I had my GWT app running in hosted mode last week with GWT 1.7,
> Eclipse 3.5, GXT with the server side hosted by IIS.
>
> So I upgraded to GWT 2.0, upgraded the plugin in Eclipse, downloaded
> the GWT 2.0 SDK and am trying to get my application running once
> again. So far no luck though.
>
> My old run configurations are still in Eclipse, it was originally
> setup so that I was not running the built in server (since we have IIS
> on the backend) and we had this for program arguments: -whitelist
> "http://localhost/war/KryptoniteDesktop.html";.
>
> If I launch my old run configuration I get the new Development Mode
> window which shows the following URL to view in development mode:
> http://localhost:/KryptoniteDesktop.html?gwt.codesvr=172.17.3.67:9997
>
> However this doesn't work, when I point my browser to the suggested
> URL I get the following:
> Firefox can't establish a connection to the server at localhost:.
>
> I don't know why its referencing localhost: given I don't have the
> checkbox for the built in server checked. I can't find anything that
> discusses using the new Development mode when not using the built in
> server.
>
> Do I need to use the bult in server when in Development Mode of GWT
> 2.0?
>
> Any idea how to configure this so I can debug my application again?
>
> Thanks, Derek
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: Ant devmode

2009-12-16 Thread Thomas Broyer


On Dec 16, 12:51 am, Phil8055  wrote:
> Hello:
> I am completely new to the devlopment community and having trouble
> getting started. The GWT setup instructions and tutorial.
> In step 1, part2 (Testing the default project components) it says to:
>
> Running the development mode code server (not from Eclipse)
> webAppCreator creates an ant build file with a target for running the
> application in development mode.
> From the command line, change to the StockWatcher directory
> Execute:
> ant devmode
>
> I run it in the command prompt and get this message: "ant" is not
> recognized as an internal or external command, operable program or
> batch file
>
> Could anyone tell me what I need to do?

Install ant and/or setup your PATH environment variable.

Ant is available from http://ant.apache.org

But if you're a beginner, I'd recommend you use Eclipse with the
Google Plug-in for Eclipse.


N.B.: the Getting Started page [1] says, at the very bottom:
"""If you have not set up your development environment with the Java
SDK, a Java IDE such as Eclipse, and the latest distribution of Google
Web Toolkit, do that before you begin."""
With "before you begin" linking to the Tutorials page's Before You
Begin section [2], which in turn says:
"""If your Java IDE does not include Apache Ant support, you can
download and unzip Ant to easily compile and run GWT applications."""
With "Ant" linking to the above-mentioned http://ant.apache.org

[1] http://code.google.com/webtoolkit/doc/latest/tutorial/gettingstarted.html
[2] 
http://code.google.com/webtoolkit/doc/latest/tutorial/index.html#prerequisites

--

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




Re: HttpServlet implementation...

2009-12-16 Thread John V Denley
FYI for anyone reading this, you might find the answer to this issue
in the following blog: 
http://turbomanage.wordpress.com/2009/11/20/deferred-defer-is-a-thing-of-beauty/

I have not had a chance to read it all through yet and try to
implement it, but it appears to be dealing with the problem I was
trying to solve

On Dec 15, 9:19 am, John V Denley  wrote:
> Ive been trying to find some help regarding using Google App Engine's
> task queues, but have just realised that the questions Im asking may
> well be more of a GWT question.
>
> Essentially I have an application, lets say you go to "http://
> myappname.appspot.com" to run it normally, but what I want to do is be
> able to initiate something like "http://myappname.appspot.com/
> MyServletFunction "
>
> I understand that Im meant to do this by extending the HttpServlet
> class, but my problem is where to do this and how to do it, and how to
> open this up to the "public".
>
> Here is part of what I posted on the GAE Java group (can anyone on
> here help with a clear example of how to do this?):
>
> Where should I put the function which extends the HttpServlet (eg
> public class MyServletFunction extends HttpServlet {/*do something
> useful*/}  )
> I'm guessing it should be on the server side (eg as a new file within
> com.myappname.server) called MyServletFunctionFile.java?
> If so then should this be included somewhere OTHER than in the
> myappname.gwt.xml file (eg   class="com.myappname.server.MyServletFunctionFile"/>)
> Im guessing that this would then mean that in theory I could type 
> inhttp://myappname.appspot.com/MyServletFunctionto invoke the "/*do
> something useful*/" code?
> Is there anything else I'm meant to define anywhere? Have I totally
> misunderstood this process? If so then hopefully what Ive written
> here
> illustrates the problems that some of us are having with getting our
> head around some of these "basic" concepts!
>
> Thanks,
> John

--

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




Re: external.gwtOnLoad is not a function : external.gwtOnLoad(window, null, "1.6"); line 32

2009-12-16 Thread Chris Ramsdale
On Tue, Dec 15, 2009 at 12:39 PM, Zied Hamdi http://nextstreet.eu <
zhamdi.i...@gmail.com> wrote:

> Hi,
>
> I moved my 1.6 project to the new 2.0 GWT under eclipse and since that
> moment I can't evolve anymore (since 2 days): I have javascript errors
> that doesn't even let the code reach the onModuleLoad() method. I did
> an upgrade on my eclipse so it's impossible to return back to the 1.6
> version (didn't find any link to download the older versions), I think
>

The latest Eclipse plugin is backwards compatible with previous versions of
GWT (back to 1.5). So you can always revert back to a previous SDK if
necessary.



> I've reached the point of no return :-) so I really must get out of
> this situation but I have no clue about
> what's going wrong. In the code :
>
> 17function gwtOnLoad(errFn, modName, modBase){
> 18 $moduleName = modName;
> 19 $moduleBase = modBase;
> 20 if (!external.gwtOnLoad(window, modName, "1.6")) {
> 21 if (errFn) {
> 22 errFn(modName);
> 23 }
> 24 }
> 25}
>
> external exists but it doesn't contain any gwtOnLoad method. that's
> all I can say, to find where is the 'external' definition, I don't
> know how to do, and I'm convinced I find my self debugging the GWT
> java to js compiler that doesn't sound good at all :-).
>
> It sounds like you're picking up the 1.6 version of hosted.html (GWT
provided file that is part of the bootstrap process). Would you mind
responding with more information in regards to the environment you're
running in, as well as how you are debugging/running your app?

Also, try creating an application from scratch as a sanity test.



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

--

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




Re: Communicating between gwt composites

2009-12-16 Thread Anirban Talukdar
I Feel Facade design pattern will help you solving the issue. This is
basically a design issue.

Thanks & Regards
Anirban Talukdar

On Wed, Dec 16, 2009 at 12:31 PM, jax  wrote:

> HI
>
> I have a questions about communication in GWT and java in general.
>
> In an effort to better modularize my application I have made a number
> of different composites.  I then have a main application that links
> together all the composites.
>
> The problem comes when I need to communicate between composites, for
> example change an image in a composite based on an event in another
> composite.
>
> They way I have don this now is by passing "this" to every composite
> constructor and saving it as parent.  I also have methods that allow
> me to get the children of a composite.  Then in each composite I have
> a getCompositeParent() method that will allow me to go further down
> the composite tree.
>
> For example:
>
> parent.getCompositeParent().getCompositeParent().getNamesComposite
> ().getName().setText("hello");
>
> This seems a bit unwieldy.  Is this the normal way of doing things in
> JAVA?
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




GWT 2 DevMode throws java.lang.ClassNotFoundException for a pojo during RPC call

2009-12-16 Thread Jiunarayan
GWT 1.8 works fine until when upgraded to GWT 2


ROOT CAUSE   org.mortbay.thread.BoundedThreadPool$PoolThread.run
(BoundedThreadPool.java:442)
Caused by: java.lang.ClassNotFoundException:
com.efycaci.gwt.client.LoggedUser/857921908
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:247)
at com.google.gwt.user.server.rpc.RPC.getClassFromSerializedName
(RPC.java:657)
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:274)
... 29 more

SEVERE: [1260954843468000] javax.servlet.ServletContext log: An
IncompatibleRemoteServiceException was thrown while processing this
call.
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException:
Parameter 0 of is of an unknown type
'com.efycaci.gwt.client.LoggedUser/857921908'
at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:277)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall
(RemoteServiceServlet.java:163)
at com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost
(RemoteServiceServlet.java:86)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter
(ServeBlobFilter.java:51)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at com.google.appengine.tools.development.StaticFileFilter.doFilter
(StaticFileFilter.java:121)
at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle
(DevAppEngineWebAppContext.java:70)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:352)
at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
at org.mortbay.jetty.Server.handle(Server.java:313)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
at org.mortbay.jetty.HttpConnection$RequestHandler.content
(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at org.mortbay.io.nio.SelectChannelEndPoint.run
(SelectChannelEndPoint.java:396)


^Parameter 0 of is of an unknown type
'com.efycaci.gwt.client.LoggedUser/857921908'

Has anybody faced this problem or Is there anybody who can help in
this?

--

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




Re: Development Mode Firefox 64bit Linux Issue

2009-12-16 Thread StevenLeRoux


On Dec 11, 4:03 pm, Chris Ramsdale  wrote:
> What errors, if any, are you seeing in the FF error console (Tools->Error
> Console)? While you're there, check the OS/ABI by evaluating the following
> expressions:
>
> Components.classes["@mozilla.org/xre/app-info;1
> "].getService(Components.interfaces.nsIXULRuntime).OS
> Components.classes["@mozilla.org/xre/app-info;1
> "].getService(Components.interfaces.nsIXULRuntime).XPCOMABI
>
> - Chris

Hi,

I still have the same problem.

Using debian Lenny 64bits
Iceweasel 3.0.6 64 bits
gwt plugin 1.0.7.7263

And I have no error running the webapp page (only pointless warnings
about css).





>
> On Fri, Dec 11, 2009 at 9:55 AM, Chris Ramsdale wrote:
>
> > @alexmat, @andreit, does the plugin show up in the list of Add-ons? If so,
> > what version do you have installed?
>
> > On Wed, Nov 25, 2009 at 10:16 AM, alexmat  wrote:
>
> >> Dev mode starts up fine. Point firefox at the url, download and
> >> install plugin. Restart... and it asks me to install the plugin again.
> >> It is already installed though. Anyone else seeing this?
>
> >> Any advice?
>
> >> --
>
> >> You received this message because you are subscribed to the Google Groups
> >> "Google Web Toolkit" group.
> >> To post to this group, send email to google-web-tool...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-web-toolkit+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-web-toolkit?hl=en.

--

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




Ant devmode

2009-12-16 Thread Phil8055
Hello:
I am completely new to the devlopment community and having trouble
getting started. The GWT setup instructions and tutorial.
In step 1, part2 (Testing the default project components) it says to:

Running the development mode code server (not from Eclipse)
webAppCreator creates an ant build file with a target for running the
application in development mode.
>From the command line, change to the StockWatcher directory
Execute:
ant devmode

I run it in the command prompt and get this message: "ant" is not
recognized as an internal or external command, operable program or
batch file

Could anyone tell me what I need to do?

Thanks,

Philippe

--

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




Re: How can I download the GWT 2.0 DevMode plugins for offline installation ?

2009-12-16 Thread slavo
I have exactly the same problem. It would be nice to have completely
off-line instalation as well.

On Dec 16, 8:35 am, David  wrote:
> Hi,
>
> I need to be able to install the devmode GWT 2.0 browser plugins so
> that I can install it offline. Not all companies allow developers to
> be connected to the internet from a development machine.
>
> I downloaded the GwtDevPluginSetup.exe but it fails with 0x80072ee7.
>
> I am not allowed to attach these machines to the internet for security
> reasons. I am sure I am not the only developer that has to work this
> way.
>
> David

--

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




IE Bug in GWT Radiobutton when label is treated as HTML

2009-12-16 Thread ivanceras
RadioButton radioButton = new RadioButton("group","radio1",true);

When clicking on the label, it works in firefox and chrome but not in
Internet Explorer 7.
but when label is not treated as HTML text, it would work in all
browser without problem

--

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




Re: Announcing GWT 2.0 and much, much more...

2009-12-16 Thread olmin
Hi all,

See if somebody can help me:

I've install the eclipse plugin. When I configure the Web Application
launcher I disable the "Run built-in server" becauser I have my own
server that I need to use. But when executing, the "Development mode"
console doesn't give me any url to debug my application, so I cannot
test it in any browser.

In the old "host mode" you could configure the url where your module
was going to be, but this option is no longer available in the new
plugin.

Any idea of what's happening??

Thanks in advance.

Olmo

--

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




Re: Communicating between gwt composites

2009-12-16 Thread Anirban Talukdar
Sorry Jax,

It is "mediator pattern", I skipped it .

Thanks & Regards
Anirban Talukdar

On Wed, Dec 16, 2009 at 12:39 PM, Anirban Talukdar <
talukdar.anir...@gmail.com> wrote:

> I Feel Facade design pattern will help you solving the issue. This is
> basically a design issue.
>
> Thanks & Regards
> Anirban Talukdar
>
>
> On Wed, Dec 16, 2009 at 12:31 PM, jax  wrote:
>
>> HI
>>
>> I have a questions about communication in GWT and java in general.
>>
>> In an effort to better modularize my application I have made a number
>> of different composites.  I then have a main application that links
>> together all the composites.
>>
>> The problem comes when I need to communicate between composites, for
>> example change an image in a composite based on an event in another
>> composite.
>>
>> They way I have don this now is by passing "this" to every composite
>> constructor and saving it as parent.  I also have methods that allow
>> me to get the children of a composite.  Then in each composite I have
>> a getCompositeParent() method that will allow me to go further down
>> the composite tree.
>>
>> For example:
>>
>> parent.getCompositeParent().getCompositeParent().getNamesComposite
>> ().getName().setText("hello");
>>
>> This seems a bit unwieldy.  Is this the normal way of doing things in
>> JAVA?
>>
>> --
>>
>> You received this message because you are subscribed to the Google Groups
>> "Google Web Toolkit" group.
>> To post to this group, send email to google-web-tool...@googlegroups.com.
>> To unsubscribe from this group, send email to
>> google-web-toolkit+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-web-toolkit?hl=en.
>>
>>
>>
>

--

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




Re: development mode isn't updating

2009-12-16 Thread Chris Ramsdale
Typically the behavior you are seeing is do to the URL within the browser
changing (either programatically or by hand) and the gwt.codesvr query param
not being preserved. When the gwt.codesvr param is present, the plugin will
take over and communicate the code server running (running on port 1723 in
your case), injecting any updates that you make into the DOM on the fly.
Without the gwt.codesvr param, the app will default back to its last
compiled state. This might be why changes only show up when you recompile.

- Chris

On Tue, Dec 15, 2009 at 5:45 PM, Sorinel C wrote:

> Why do you use that ugly URL, with IPs ? try this one:
>
> http://localhost:/MyApplication.html?gwt.codesvr=localhost:9997
>
> for sure is nicer ...
>
> Cheers!
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Re: GWT 2.0 + MVC = PureMVC ?

2009-12-16 Thread Joe
Hi Fabien,

I'm afraid you should build your GWT applications in MVP (Model - View
- Presenter) design pattern and not MVC (Model - View - Controller),
as stated by ray Ryan at Google IO 2009.

Check out these links:

http://supplychaintechnology.wordpress.com/2009/06/03/forget-mvc-use-mvp/

and

http://code.google.com/events/io/2009/sessions/GoogleWebToolkitBestPractices.html

Good luck!

On Dec 15, 3:58 pm, Fabien  wrote:
> Hi,
>
> I would like to know if someone try to merge PureMVC and GWT ?
>
> And if true, if someone can help me with just an example or a
> tutorial.
>
> Thanks,

--

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




Re: DevMode - no gui

2009-12-16 Thread Chris Ramsdale
I'm not sure I understand. Are you using the eclipse plugin to debug your
app? If so, you should only be seeing the dev mode panel in Eclipse.

On Dec 16, 2009 2:12 AM, "Henry"  wrote:

Is there a way to run DevMode with no gui?
If not, where do I submit a feature request ...
or if I do write a feature would it be useful
to anyone else?

Cheers,
Henry

--

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

--

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




Re: How can I download the GWT 2.0 DevMode plugins for offline installation ?

2009-12-16 Thread Chris Ramsdale
The exe is a shell that downloads the actual msi. To install without an
internet connection, you'll need to download the msi from here:

http://dl.google.com/dl/gwt/plugins/ie/1.0.7263.2009120800/gwt-dev-plugin.msi

On Dec 16, 2009 3:35 AM, "David"  wrote:

Hi,

I need to be able to install the devmode GWT 2.0 browser plugins so
that I can install it offline. Not all companies allow developers to
be connected to the internet from a development machine.

I downloaded the GwtDevPluginSetup.exe but it fails with 0x80072ee7.

I am not allowed to attach these machines to the internet for security
reasons. I am sure I am not the only developer that has to work this
way.

David

--

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

--

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




Re: GWT newbie have basic question to increase understanding ...

2009-12-16 Thread Jan Ehrhardt
If you talk about GWT, client side allways means inside your browser. GWT
applications are like Desktop applications, which are compiled to JavaScript
and running inside a browser.
The server has to provide a service interface, which can be accessed through
HTTP. This could be a REST / JSON webservice. The GWT application (running
in a browser) calls this webservice for data or sends updates to the
service.

I don't know, how you can create a RESTful webservice with .net, but this
means, that no HTML is generated on the server, the server never knows, what
the client (inside a browser) is really doing and showing. The server's role
is just to provide some raw data.

So the important thing to learn for you is, that GWT only runs inside the
browser and not on the server.

I can't tell you exactly, where you should place your firewall in this
scenario, but I expect that it's filtering all the http requests coming from
outside of your company. So the result would be, that everything behind the
firewall runs on a server, and everything in front of the firewall runs
inside a browser.

Regards
Jan Ehrhardt


On Tue, Dec 15, 2009 at 11:52 PM, Robert Domingo wrote:

> Hello Mike,
>
> Thank you for the explanation of client-side versus server-side for my
> initial question. Looks like I'm really off on the understanding of
> this technology. If you can school me a little more I will appreciate
> it since I'm not versed in Java and I need to especially understand
> non-MS technology stacks ...
>
> 1) Does the below mean a proxy of a Java class on a server behind a
> firewall is on the webserver in the DMZ? When you say client-side
> proxy you don't mean client as in browser-client but more the
> webserver in this case, right?
> >In GWT-RPC, a client side proxy of a server based Java class is
> instantiated.  When this is
> >compiled into Javascript on the client this is "translated" into a
> > client side XMLHTTP request, posting data to a specific server side
> > servlet.
>
> 2) I tried to search and read up on security articles regarding AJAX
> on the web, including the security article posted on the 'article'
> section of this Google Group, but without good  JAVA understanding I
> may be confusing myself. With your reply below but more at a basic
> level can I create a dynamic and interactive presentation tier using
> GWT but still make AJAX very secure to talk to business logic tier and
> data tier?
> >If your server is not Java, then your options move to GWT
> > Form Posting, which will end up looking very similar to the old ASP/
> >JSP form post servers, or there is a GWT-JSON method that allows
> > submission of data to many brand servers using Javascript Object
> > Notation.
>
> 3) What is your recommended technology stack on the webserver in the
> DMZ and application server behind the firewall? If there are so many
> combos what are some combination?
> > So to answer your question shorter:  it depends on the technology
> > stack that your server has.
>
> 4) If you can provide me your favorite links to where I can try to
> self-educate myself on using GWT in the presentation tier and how GWT-
> RPC/JSON/etc can talk securely to the business logic on another server
> securely I'll appreciate it
>
> Although I won't be developing the system itself I want to understand
> the technology the developers will using and the infrastructure they
> will be deployed on. I really appreciate your input.
>
> Sincerely,
> Robert
>
> > Good luck!
> >
> > On Dec 14, 2:52 pm, Robert Domingo  wrote:
> >
> > > Hello all,
> >
> > > I am trying to understand GWT and AJAX development. I'm not a
> > > programmer any more but worked closely with developers who worked with
> > > Microsoft tools.
> >
> > > Initially, or should I say under legacy code, they wrote ASP on IIS
> > > webserver while they wrote DLLs with VisualBasic6 to register on the
> > > server behind the firewall. They will then use Microsoft's COM+
> > > Manager so that they export and install a proxy of the DLL (stub?) on
> > > the IIS so that depending on user interaction, objects behind the
> > > firewall can securely be instantiated by the ASP. In the modern times
> > > that was replaced with the ASP.NET on the front with webservices
> > > (VB.NET, C#) behind the firewall and utilizing the Microsoft .NET
> > > framework.
> >
> > > Sorry above was a long background but the actual question is simpler:
> > > so I'm trying to understand what is the equivalent in the world of
> > > AJAX & GWT for instantiating an object from the front end?
> >
> > > Thank you.
> > > Robert
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

Yo

Re: exception when run existing project developed in GWT 1.7 on GWT 2

2009-12-16 Thread Siegfried Bolz
Have you cleaned your Libs-Directory from the old GWT-Jar-Files?


On 16 Dez., 11:34, sathya  wrote:
> Hi,
>    I have upgraded my eclipse with GWT 1.7 to GWT 2.
> When I try to run existing project developed in GWT 1.7 on GWT 2, I am
> getting below exception in development mode.Please help .
> java.lang.AssertionError: targetHistoryToken must not be null,
> consider using Anchor instead
>     at com.google.gwt.user.client.ui.Hyperlink.setTargetHistoryToken
> (Hyperlink.java:191)
>     at com.google.gwt.user.client.ui.Hyperlink.(Hyperlink.java:
> 106)
>     at com.client.Search.SearchPanle.(SearchPanle.java:23)
>     at com.client.Sandbox.onModuleLoad(Sandbox.java:24)
>     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.ModuleSpace.onLoad(ModuleSpace.java:
> 369)
>     at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
> (OophmSessionHandler.java:185)
>     at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
> (BrowserChannelServer.java:380)
>     at com.google.gwt.dev.shell.BrowserChannelServer.run
> (BrowserChannelServer.java:222)
>     at java.lang.Thread.run(Unknown Source)

--

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




Re: Hosted mode won't work since 2.0 upgrade

2009-12-16 Thread Adam S
Copying another version of eclipse worked for me.
After that i retrieved code from my SVN server and everything is as it
was before.

BR

--

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




Re: how to integrate pentaho reports into my GWT application.

2009-12-16 Thread Satya

HI,

Is there any possibility to integrating GWT with pentaho reports ?, if
so please reply me how do we do that thanks in advance.
On Nov 25, 2:59 pm, Satya  wrote:
> Hi,
> I am new toGWT, currently I am developing aGWTapplication which has
> to generate reports by taking user input. I wanted to make use 
> ofpentahoreports for that purpose , but I dont know how to 
> integratepentahowithGWT.
>
> Please help me out with some useful information.
> Thanks in advance.
>
> Regards,
> Satya Lakshminath.

--

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




Repeat background image in ClientBundle

2009-12-16 Thread mariyan nenchev
Hi,

Does any one know how to use image as background using repeat-x or repeat-y
with ClientBundle? For example if you have one image 1x1000px and you need
to repeat the image as background how can you do it with ClientBundle and
CssResource? For now i am using css styles and specify the image url in the
css but this way my application will download every image with separate
request. I tried to anotate the Image with REPEAT_HORIZONTAL (in the client
bundle) but no effect.
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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




exception when run existing project developed in GWT 1.7 on GWT 2

2009-12-16 Thread sathya
Hi,
   I have upgraded my eclipse with GWT 1.7 to GWT 2.
When I try to run existing project developed in GWT 1.7 on GWT 2, I am
getting below exception in development mode.Please help .
java.lang.AssertionError: targetHistoryToken must not be null,
consider using Anchor instead
at com.google.gwt.user.client.ui.Hyperlink.setTargetHistoryToken
(Hyperlink.java:191)
at com.google.gwt.user.client.ui.Hyperlink.(Hyperlink.java:
106)
at com.client.Search.SearchPanle.(SearchPanle.java:23)
at com.client.Sandbox.onModuleLoad(Sandbox.java:24)
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.ModuleSpace.onLoad(ModuleSpace.java:
369)
at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:185)
at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:380)
at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
at java.lang.Thread.run(Unknown Source)

--

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




Re: Pdf on the server cannot be displayed

2009-12-16 Thread AMit Pandey
Haydar can you send the code so that i can help you

4MI7

On Tue, Nov 3, 2009 at 5:48 PM, Haydar  wrote:

>
> Hi all,
>
> I have used gwt , ext gwt and jasperreports in my project.
> I have a server side and client side. My client side enters some
> values to some textfields
> and presses "Get report" button. Then on the server side it connects
> to database takes
> the records needed and creates a report with these records. Server
> side returns the
> address of created report to the client and on the client side I open
> a new ext gwt
> window and set the url to the returned address. But I can see nothing.
> The report is created under the address it returns but it does not
> display it. The weird thing is that when there is a report(with the
> same name) in the specified directory, I run the program again and it
> displays the report. But when i delete the report there and run again
> it does not display and say that "source not found, blabla.pdf not
> found." The warninng message is:
> * [TRACE] The development shell servlet received a request for
> 'blabla.pdf' in module '..gwt.xml'
> * [WARN] Resource not found: blabla.pdf; (could a file be missing
> from the public path or a  tag misconfigured in module
> ..gwt.xml ?)
>
> How can I solve this issue? What is it related with???
>
> please help me...
> --~--~-~--~~~---~--~~
> You received 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
> -~--~~~~--~~--~--~---
>
>

--

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




My first deploy

2009-12-16 Thread Ista Pouss
Hi,

I have my little gwt application with eclipse, and I copy the
directory app in place my little web site in local, I modify
index.html with gwt things, i lauch it... and I see :

GWT module 'diap' may need to be (re)compiled


What is that ?

I've seen 
http://groups.google.com/group/google-web-toolkit/browse_frm/thread/81b75d2c71bd4775?tvc=1&q=may+need+to+be+(re)compiled
and I delete the directory and recompile, it's always the same.

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




Re: Communicating between gwt composites

2009-12-16 Thread Robert J. Carr
Isn't the event bus just an implementation of the Observer pattern?

On Wed, Dec 16, 2009 at 1:12 AM, Grant  wrote:
> What you probably want is an Event Bus.
>
> There is a great video available, google for 'gwt mvp'. It is well
> worth a watch
>
> Grant
>
>
>
> On Dec 16, 7:01 am, jax  wrote:
>> HI
>>
>> I have a questions about communication in GWT and java in general.
>>
>> In an effort to better modularize my application I have made a number
>> of different composites.  I then have a main application that links
>> together all the composites.
>>
>> The problem comes when I need to communicate between composites, for
>> example change an image in a composite based on an event in another
>> composite.
>>
>> They way I have don this now is by passing "this" to every composite
>> constructor and saving it as parent.  I also have methods that allow
>> me to get the children of a composite.  Then in each composite I have
>> a getCompositeParent() method that will allow me to go further down
>> the composite tree.
>>
>> For example:
>>
>> parent.getCompositeParent().getCompositeParent().getNamesComposite
>> ().getName().setText("hello");
>>
>> This seems a bit unwieldy.  Is this the normal way of doing things in
>> JAVA?
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-web-toolkit+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>
>

--

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




Show errors ?

2009-12-16 Thread Ista Pouss
Hi,

What are the best practices to show errors and exception messages with
gwt in the browser (in my case firefox please) ?

i should want publics messages and some traces messages.

Thanks.

--

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




Re: Communicating between gwt composites

2009-12-16 Thread Grant
What you probably want is an Event Bus.

There is a great video available, google for 'gwt mvp'. It is well
worth a watch

Grant



On Dec 16, 7:01 am, jax  wrote:
> HI
>
> I have a questions about communication in GWT and java in general.
>
> In an effort to better modularize my application I have made a number
> of different composites.  I then have a main application that links
> together all the composites.
>
> The problem comes when I need to communicate between composites, for
> example change an image in a composite based on an event in another
> composite.
>
> They way I have don this now is by passing "this" to every composite
> constructor and saving it as parent.  I also have methods that allow
> me to get the children of a composite.  Then in each composite I have
> a getCompositeParent() method that will allow me to go further down
> the composite tree.
>
> For example:
>
> parent.getCompositeParent().getCompositeParent().getNamesComposite
> ().getName().setText("hello");
>
> This seems a bit unwieldy.  Is this the normal way of doing things in
> JAVA?

--

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




Re: Google Maps and GWT 2

2009-12-16 Thread pfdevil
Thanks it helped a lot I got it going!

On Dec 16, 3:25 am, Eric Ayers  wrote:
> If you look at the Getting Started for the Visualization API, it has been
> updated for webAppCreator.  Let me know if that helps.
>
> -Eric.
>
>
>
> On Mon, Dec 14, 2009 at 1:46 PM, pfdevil  wrote:
> > Hello,
>
> > I'm trying to do the google maps tutorial at
>
> >http://code.google.com/docreader/#p=gwt-google-apis&s=gwt-google-apis...
>
> > However it seems that a couple of changes was made to gwt 2 and
> > theirfore I cannot follow the instructions. Can someone please help me
> > in setting it up. The first part is tricky since GWT 2 does not have
> > the projectCreator and applicationCreator, it uses the webAppCreator.
>
> > 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-tool...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-web-toolkit+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Eric Z. Ayers
> Google Web Toolkit, Atlanta, GA USA

--

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




How can I download the GWT 2.0 DevMode plugins for offline installation ?

2009-12-16 Thread David
Hi,

I need to be able to install the devmode GWT 2.0 browser plugins so
that I can install it offline. Not all companies allow developers to
be connected to the internet from a development machine.

I downloaded the GwtDevPluginSetup.exe but it fails with 0x80072ee7.

I am not allowed to attach these machines to the internet for security
reasons. I am sure I am not the only developer that has to work this
way.

David

--

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




Re: can i send http request to a subdomain from gwt

2009-12-16 Thread rjcarr
I think this is one of those questions you're just going to have to
test yourself.  Also, be careful, because different browsers have
different policies for this sort of thing.

On Dec 15, 8:57 am, ben fenster  wrote:
> i want to use apache to handle static content and php and use tomct
> for comet
> sop restriction prevent me from accessing another domain or even
> another port but would it prevent me from sending a request to a
> subdomain?

--

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




Re: GWT 2.0 with C# back-end

2009-12-16 Thread rjcarr
The link you posted is dead, and I didn't completely understand what
you were asking.  However, I make some non-GWT requests in my project
so maybe this will help you out.

RequestBuilder reqbuilder = new RequestBuilder(RequestBuilder.GET,
URL);

reqbuilder.sendRequest(
null, // OK to use null for GET type
new RequestCallback() {
public void onResponseReceived(Request request, Response 
response) {
if(response.getStatusCode() == 200) {
// SUCCESS
log(response.getText());

} else {
// ERROR
log(response.getStatusCode());
log(response.getStatusText());
}
}

public void onError(Request request, Throwable t) {
// ERROR
log(t.getMessage());
}
}
);

On Dec 15, 7:59 am, joe  wrote:
> I'm having an issue with GWT 2.0 requesting XML data from a C# self
> hosted Web Service. Using the GET request tutorial 
> (http://www.gwtapps.com/doc/html/com.google.gwt.http.client.html) I was able
> to retrieve the XML data using GWT 1.7. After upgrading to 2.0 all I
> return is an empty String using response.getTest(). The headers are
> also empty and response.getStatusCode() returned is 0.
>
> Running the C# app in debug I find that it is sending the XML data
> out, but it looks like the GWT side isn't receiving it. If I call the
> URL from the browser I see the XML data.
>
> I have also tried to use this same method to call other web services
> as well as websites. Still status code 0 and no text in the
> response.getTest().
>
> This leads me to believe that I missed some configuration in setting
> up my app to GWT 2.0. However, I have clue where to start.
>
> Any help would be greatly 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-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.




Re: Communicating between gwt composites

2009-12-16 Thread rjcarr
This isn't so much a java question but a software design question.

There are many ways, or patterns, to accomplish what you're after.
I'd recommend that you read the book Design Patterns to learn more.  I
think what you're after is the Observer pattern.

Good luck!

On Dec 15, 11:01 pm, jax  wrote:
> HI
>
> I have a questions about communication in GWT and java in general.
>
> In an effort to better modularize my application I have made a number
> of different composites.  I then have a main application that links
> together all the composites.
>
> The problem comes when I need to communicate between composites, for
> example change an image in a composite based on an event in another
> composite.
>
> They way I have don this now is by passing "this" to every composite
> constructor and saving it as parent.  I also have methods that allow
> me to get the children of a composite.  Then in each composite I have
> a getCompositeParent() method that will allow me to go further down
> the composite tree.
>
> For example:
>
> parent.getCompositeParent().getCompositeParent().getNamesComposite
> ().getName().setText("hello");
>
> This seems a bit unwieldy.  Is this the normal way of doing things in
> JAVA?

--

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