AppController or PlaceManager

2009-12-29 Thread Abdullah Shaikh
I went through http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html, I am confused, does AppController as mentioned in the article does the same that can be done by gwt-presenter's PlaceManager ? If yes, should I go with AppController or PlaceManager ? As I am new to GWT,

Re: Multiple entry points per module

2009-12-29 Thread Yousef.Ghandour
Thanks for the reply Sripathi. My case looks like youtube case: you have an application and a player. I want to be able to download the player and use it without downloading the whole site / application, this make sense especially when you are opening the player from different places, and you

Re: Multiple entry points per module

2009-12-29 Thread Yousef.Ghandour
I want also to be able to access each part using a different URI, something like http://www.youtbue.com - the whole system http://player.youtube.com - just the player. Yousef On Dec 29, 11:15 am, Yousef.Ghandour yousef.ghand...@gmail.com wrote: Thanks for the reply Sripathi. My case looks like

XML to POJO library, any ideas?

2009-12-29 Thread Dalla
Hi all! This is not really a pure GWT question... but... I´ve been using the Xstream library before to convert XML to POJOs. But I looks like there hasn´t been any development in more than a year, so I´m feeling reluctant to use it in my new project. Does anyone know any similar library that´s

Re: GWT 2/Eclipse Project References

2009-12-29 Thread Matt
I have the situation where the POJOs which are used within the EntryPoint (i.e. compiled to Javascript) are located in another Eclipse project. If I configure the GWT project to refer to the other project the Java compiles okay, but when attempting to compile to Javascript it complains No source

SV: XML to POJO library, any ideas?

2009-12-29 Thread Hermod Opstvedt
Hi Might not be what you need, but have you looked at the ASF XMLBeans project. Hermod -Opprinnelig melding- Fra: google-web-toolkit@googlegroups.com [mailto:google-web-tool...@googlegroups.com] På vegne av Dalla Sendt: 29. desember 2009 12:32 Til: Google Web Toolkit Emne: XML to POJO

Re: GWT 2/Eclipse Project References

2009-12-29 Thread olivier nouguier
Hi The java *source* folder must be added to the classpath. HIH On Tue, Dec 29, 2009 at 1:09 PM, Matt matt.seab...@gmail.com wrote: I have the situation where the POJOs which are used within the EntryPoint (i.e. compiled to Javascript) are located in another Eclipse project. If I configure

Re: Possible bug or maybe I don't understand. Window.alert() and onResponseReceived

2009-12-29 Thread MaEcTPo
I don't have onSucces method, I have something like this: Request request = builder.sendRequest(null, new RequestCallback() { public void onError(Request request, Throwable exception) { // Couldn't connect to server (could be timeout, SOP violation, etc.) } @Override

Re: XML to POJO library, any ideas?

2009-12-29 Thread philippe
XStream is a good library. It is stable and does not need to be updated because it works well. I use it on my project and I'm happy. On 29 déc, 13:36, Hermod Opstvedt hermod.opstv...@gmail.com wrote: Salut Pourrait ne pas être ce que vous avez besoin, mais avez-vous regardé le projet

Re: MVP + UiBinder, thoughts?

2009-12-29 Thread FKereki
Here goes... I'm doing a simple form that allows you to browse all cities whose names start with a given string. The ui.xml file contains a textbox, a couple of buttons, and a grid; the relevant lines are: g:HTMLPanel h1CitiesUpdater/h1 Start of City Name: g:TextBox

Re: DropZap web demo built using GWT

2009-12-29 Thread ylmz
I kind of get the idea, but my coworker told me that he didn't get the game. I think a tutorial would be great. (like the one in metal slug would be great (they have a 15 sec demo on insert coin screen)). On Dec 29, 3:07 am, amich...@gmail.com amich...@gmail.com wrote: On Dec 28, 8:04 pm,

Re: GWT Plugin for Eclipse 3.6

2009-12-29 Thread RadhikaSunil
Is there any plans to do it soon ? On Dec 18, 6:34 pm, Rajeev Dayal rda...@google.com wrote: No, there is not. We have not tested the plugin against Eclipse 3.6 as yet. On Fri, Dec 18, 2009 at 11:12 AM, RadhikaSunil sunilradh...@gmail.comwrote: Is there GWT plugin for Eclipse 3.6 ? Will the

Re: GWT 2/Eclipse Project References

2009-12-29 Thread Matt
Is there a specific way to do this? Using the GWT projetct's 'Properties' dialog I removed the referenced project from the 'Projects' tab and added the class folder in the 'Libraries' tab, then identified its source folder. I can navigate to the source via the 'Referenced Libraries' of the GWT

Re: DropZap web demo built using GWT

2009-12-29 Thread mariyan nenchev
Is the game open source :) On Tue, Dec 29, 2009 at 3:07 AM, amich...@gmail.com amich...@gmail.comwrote: On Dec 28, 8:04 pm, spierce7 spier...@gmail.com wrote: nice game! I found it pretty difficult though. I couldn't get halfway through the second level. Is there some aspect of the game

Re: Hosted mode stops working for a specific package

2009-12-29 Thread Jason Parekh
Hi John, Have you tried clearing your browser's cache (the one that gets used as the hosted mode browser)? jason On Sun, Dec 27, 2009 at 6:18 PM, John Armstrong siber...@gmail.com wrote: Odd problem. I've been working on an app for a few weeks and recently had some disk space issues that

Re: DropZap web demo built using GWT

2009-12-29 Thread amich...@gmail.com
On Dec 29, 8:47 am, ylmz yilmazhuse...@gmail.com wrote: I kind of get the idea, but my coworker told me that he didn't get the game. I think a tutorial would be great. (like the one in metal slug would be great (they have a 15 sec demo on insert coin screen)). I am curious as to what exactly

Re: DropZap web demo built using GWT

2009-12-29 Thread amich...@gmail.com
On Dec 29, 10:19 am, mariyan nenchev nenchev.mari...@gmail.com wrote: Is the game open source :) No. This web demo was created to increase sales of DropZap on the iPhone/iPod touch. Amir On Tue, Dec 29, 2009 at 3:07 AM, amich...@gmail.com amich...@gmail.comwrote: On Dec 28, 8:04 pm,

Re: SOP / cross-site http requests

2009-12-29 Thread ben fenster
you cant the only thing you can do is use JsonpRequestBuilder but you will have to construct a compatible server side On Dec 28, 12:41 pm, Fabio fabio.bo...@gmail.com wrote: RequestBuilder builder = new RequestBuilder(RequestBuilder.GET,

Add a Widget over a grid that extends over multiple cells?

2009-12-29 Thread spierce7
Hey, in your opinion is it possible to add a panel over top of a grid that extends over multiple cells? My goal is to have the panel snap to the grid. If you don't think it's possible, please let me know too. Thanks! -- You received this message because you are subscribed to the Google Groups

Re: File Upload Problem

2009-12-29 Thread Trevis
I didn't look at your logic very closely but I did spot one problem... maxFileSize = 10*(1024*2); //10 megs max That isn't 10mb. It should be 10*(1024*1024) On Dec 28, 4:13 pm, darkling darkling...@aol.com wrote: I've read several posts about this but everyon seems to be using different code

build script wiht gwt2.0

2009-12-29 Thread Rodrigue Lagoue
Hi, did somebody already wrote fully ant script for building (to javascript) an gwt 2.0 project? The built project should use an custom gwt library packed in a jar file... Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to

Re: Acessing different url on async call

2009-12-29 Thread Jason Essington
As long as the protocol (http/https) server (localhost) and port (3000) are the same, just use the url ... (/admin/login/) if protocol port or server change then you violate SOP (same origin policy) and the browser prevents the call. -jason On Dec 28, 2009, at 5:09 PM, Paulo Coutinho wrote:

Re: DropZap web demo built using GWT

2009-12-29 Thread mariyan nenchev
Is the mobile version the with pure gwt? On Tue, Dec 29, 2009 at 5:39 PM, amich...@gmail.com amich...@gmail.comwrote: On Dec 29, 10:19 am, mariyan nenchev nenchev.mari...@gmail.com wrote: Is the game open source :) No. This web demo was created to increase sales of DropZap on the

Re: DropZap web demo built using GWT

2009-12-29 Thread amich...@gmail.com
On Dec 29, 11:51 am, mariyan nenchev nenchev.mari...@gmail.com wrote: Is the mobile version the with pure gwt? GWT is used only for the web demo. DropZap and DropZap Lite for the iPhone/iPod touch are native apps. In the web version, I do make use of gwt-voices, which makes use of flash. Amir

Re: AppController or PlaceManager

2009-12-29 Thread jpnet
I really liked the article, but it's useless without the source code. -JP On Dec 29, 7:55 am, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: Anyone ? On Tue, Dec 29, 2009 at 2:45 PM, Abdullah Shaikh abdullah.shaik...@gmail.com wrote: I went through

MVP Article... Source Code?

2009-12-29 Thread jpnet
I really like this article: http://code.google.com/webtoolkit/doc/latest/tutorial/mvp-architecture.html However, it's almost useless without the entire source package. Are there any plans to post the source code? Thanks, JP -- You received this message because you are subscribed to the Google

Re: JSON-P request for REST Services

2009-12-29 Thread jpnet
You can't. JSONP is a hack to allow cross-domain requests. AFAIK, it will only work for GET requests. -JP On Dec 28, 7:11 am, Fabio fabio.bo...@gmail.com wrote: http://code.google.com/docreader/#p=google-web-toolkit-doc-1-5s=goog... This how-to is great but... what about POST-PUT-DELETE

Re: GWT 2.0 presentation

2009-12-29 Thread jpnet
Sean, thanks for sharing your work with the community. -JP On Dec 28, 2:48 pm, Sean Sullivan s...@seansullivan.com wrote: I gave a presentation about GWT 2.0 at the Portland Java User Group on December 15th.  The slides are available here:    

Re: JSON-P request for REST Services

2009-12-29 Thread Pablo Martin Gore
we have been implementing our server layer with restlet(REST implementation). restlet has one implementation to use with GWT and is so easy , and you can tell what method you want to use. http://www.restlet.org/ 2009/12/29 jpnet jprichard...@gmail.com You can't. JSONP is a hack to allow

Port number

2009-12-29 Thread Pion
I am using GWT 2.0 on Eclipse. I gives me the following when I run it: http://localhost:/Test01.html?gwt.codesvr=192.168.120.1:9997 Where is the port number stored? How do I change it? Thanks in advance for your help. -- You received this message because you are subscribed to the

Re: Port number

2009-12-29 Thread Jim Douglas
http://code.google.com/eclipse/docs/running_and_debugging_2_0.html On Dec 29, 10:36 am, Pion onlee2...@gmail.com wrote: I am using GWT 2.0 on Eclipse. I gives me the following when I run it:  http://localhost:/Test01.html?gwt.codesvr=192.168.120.1:9997 Where is the port number

Re: Bug in DateTimeFormat GWT

2009-12-29 Thread Chris
Clearly no ideas... Can i raise this somewhere? On Dec 15, 4:29 pm, Chris christopher.burr...@gmail.com wrote: Hi All Although the DateTimeFormat seems to work fine with most browsers, using the hosted/development mode, it does not handle Eras properly. Using GWT 1.x or GWT 2.0 I get the

Re: AppController or PlaceManager

2009-12-29 Thread Prashant Hegde
I had the pleasure of reading the article as well. Although I was slightly disappointed that the source code was not shared fully in the article, the concept is nicely explained, and the code can be developed based on the snippets in the article. At a high level, the AppController is a class

Re: Attaching an event handler to existing element

2009-12-29 Thread Thomas Broyer
On Dec 29, 5:06 am, jd jdpatter...@gmail.com wrote: Hi, I have a page that contains a header div containing some anchors defined in the html page.  My GWT code finds the header with RootPanel.get(String) and adds it to a DockLayoutPanel.  I have tried to attach click handlers to the links

Re: File Upload Problem

2009-12-29 Thread Thomas Broyer
On Dec 28, 11:13 pm, darkling darkling...@aol.com wrote: I've read several posts about this but everyon seems to be using different code and different methods. I've tried several but none seem to work. I must be missing some fundamental component. I try to upload a file but even though the

Re: close event

2009-12-29 Thread Thomas Broyer
On Dec 28, 2:22 am, Pablo Martin Gore pablo.m.g...@gmail.com wrote: Hi  I have a situation , the cookie is created when the user is login into the application and we want to remove the cookie when the user press the logout button or close the browser. I register the close event like this :

Re: Multiple entry points per module

2009-12-29 Thread Thad
You could write them as one application and use a HistoryHandler. The base URL would launch one one app while this other would be launched with a tag: http://www.acme.com/myapp http://www.acme.com/myapp#appb On Dec 29, 4:15 am, Yousef.Ghandour yousef.ghand...@gmail.com wrote: Thanks for the

Re: Why History.newItem() always calls the onModuleLoad?

2009-12-29 Thread compuroad
This is bug 1730 reported more than 2 years ago on version 1.4 (below). Version 1.7 still has it. I feel disappointed that something so basic hasn't been resolved. One can not use anchors and class History together, unless they don't care about IE users, which still the majority.

Re: MVP + UiBinder, thoughts?

2009-12-29 Thread bryce cottam
thanks for the code, I'm actually trying to avoid the anonymous class code: getDisplay().setOnCityNameStartChangeCallback(new SimpleCallbackObject() { //...code to run whenever the CityNameStart field changes } and rather have simple member methods be invoked like: public void

Re: Why History.newItem() always calls the onModuleLoad?

2009-12-29 Thread Ian Bambury
a) I could be confusing this with something else (it was a long time ago) but AFAIK this is due to IE7 replacing mere bookmarks in the HTML with complete URLs as a security measure (can't remember what this was supposed to fix but it made sense at the time). Therefore there's very little anyone

Re: Hosted mode stops working for a specific package

2009-12-29 Thread John Armstrong
Yup, no luck. Quite strange.. John- On Dec 29, 7:06 am, Jason Parekh jasonpar...@gmail.com wrote: Hi John, Have you tried clearing your browser's cache (the one that gets used as the hosted mode browser)? jason On Sun, Dec 27, 2009 at 6:18 PM, John Armstrong siber...@gmail.com wrote:

Re: Page back color

2009-12-29 Thread leslie
Firefox 3.5.6 Mac OS X 10.5.7 Java 1.5.0_13 Eclipse Java EE IDE Galileo Cocoa Hi Ian. Thanks for your post. I'm basically trying to do the same thing. I'm following the instructions I've found here...

Re: How to define CssResource/CSS file for -webkit-border-image:url(img.png) ?

2009-12-29 Thread fvisticot
Thomas, Thank you for your support, it helps me a lot !! I have done a brief note to explain the use of ClientBundle to design a CSS3 rounded button. The tuto is available here: http://fvisticot.blogspot.com/2009/12/rounded-button-css3-and-gwt20.html On 27 déc, 16:46, Thomas Broyer

Re: MVP Article... Source Code?

2009-12-29 Thread fvisticot
+1 On 29 déc, 20:51, Yaakov yaakov.chai...@gmail.com wrote: Yes, +1 here! Great article, but please post the source code. Thanks, Yaakov. On Dec 29, 1:00 pm, jpnet jprichard...@gmail.com wrote: I really like this

Re: Add a Widget over a grid that extends over multiple cells?

2009-12-29 Thread rjcarr
I don't completely understand your question. A grid that extends multiple cells must be a FlexTable. If you're asking can a Widget extend multiple cells when added to a FlexTable, when the FlexTable is formatted with the correct column and row spans, then yes ... this is possible, I've done it

Re: Adding a form to the RootPanel

2009-12-29 Thread rjcarr
I hate it when people answer questions with other questions, but why would you do this? Since the form is hidden the user would have no way to submit it, rendering it useless. If you want to communicate with the server, simply set up and use an RPC. Attempting to answer your questions ... 1)

Re: Accessing form variable implimented using FormPanel at server side

2009-12-29 Thread rjcarr
I'm not sure given the information you provided, but here are a couple thoughts: * You probably want to submit a form to a standard servlet not an RPC servlet. You can do the latter, but you have to override doGet() and doPost(). * If you're uploading a file then the typical

Re: RequestBuilder problem

2009-12-29 Thread FKereki
That's the Same Origin Policy in action -- IE8 is more lax than FireFox, and will allow calls to a different port in the same website. With Firefox, if you load the program from http://www.yoursite.com:8080, then you cannot do any RequestBuilder calls to any other URL; IE8 allows changing the

Re: MVP + UiBinder, thoughts?

2009-12-29 Thread FKereki
I also gave a thought to your method, but in the end opted out... but I guess it's where you are heading. In the same way that the View implements Display, an interface defined in the Presenter class, Presenter could implement Execute, an interface defined in the View class. The View should have

Re: MVP Article... Source Code?

2009-12-29 Thread Dalla
+1 On 29 Dec, 23:42, fvisticot fvisti...@gmail.com wrote: +1 On 29 déc, 20:51, Yaakov yaakov.chai...@gmail.com wrote: Yes, +1 here! Great article, but please post the source code. Thanks, Yaakov. On Dec 29, 1:00 pm, jpnet jprichard...@gmail.com wrote: I really like this

Re: XML to POJO library, any ideas?

2009-12-29 Thread Dalla
philippe, perhaps you could answer a question a xstream? If I have an xml like below, can I convert it to a POJO somehow without creating several objects? If I for example would only be interested in the match tag, how would I get that part only? spelresultat spelprodukt

Re: MVP + UiBinder, thoughts?

2009-12-29 Thread bryce cottam
very similar, but I think I either wanted to keep the Execute interface on the Presenter (since the View is already dependent on a nested interface from the Presenter) or having it on a top level package. Come to think of it I think I tried to define the Execute interface inside the Presenter and

Re: Extending existing classes with UIBuilder

2009-12-29 Thread Barney
Thinking about this some more, I think the problem for me is that the UiBinder forces me to use two separate classes: - the UIObject created - the Owner object used to bind the fields Whereas I want these to be the same object. So can anyone see a problem with a new method that binds the UI

Can't load the same module twice???

2009-12-29 Thread lineman78
Can someone please tell me if it is possible to load the same module twice. If so, how? I have tried including the script tag twice, which used to work in older versions of gwt, but no longer works. I was thinking that once it is loaded you could call the onModuleLoad function manually, but

Re: Can't load the same module twice???

2009-12-29 Thread Ian Bambury
Why would you want to run it twice? What effect are you trying to produce? Ian http://examples.roughian.com 2009/12/30 lineman78 linema...@gmail.com Can someone please tell me if it is possible to load the same module twice. If so, how? I have tried including the script tag twice, which

Re: Attaching an event handler to existing element

2009-12-29 Thread John Patterson
2009/12/30 Thomas Broyer t.bro...@gmail.com Use Document.get().getElementById(header) instead of RootPanel.get (header).getElement() to avoid the RootPanel widget being created, which then prevents wrap()ing an inner element in another widget. How can the header then be added to the

Re: Attaching an event handler to existing element

2009-12-29 Thread John Patterson
2009/12/30 John Patterson jdpatter...@gmail.com How can the header then be added to the DockLayoutPanel? OK, I have found that calling RootPanel.get(header) _after_ attaching handlers to the links works without throwing the exception. But this seems like a hack because exactly the same

Re: Adding a form to the RootPanel

2009-12-29 Thread amjibaly
I was just exploring using the form option, I know RPC is better in most situations. Just to clarify on your response, do you mean that adding an arbitrary number of 'invisible' forms (just used to submit requests) to the RootPanel will not cause any performance issues? In other words, do i ever

Upgade from GWT 1.5.3 to GWT2.0

2009-12-29 Thread Sandeep
Hi, Currently I am using GWT 1.5.3 and I want to upgrade to GWT 2.0. I just went though the release notes of GWT2.0 and i found that it has steps to upgrade from GWT 1.7 to GWT 2.0. Do I have to follow same steps to upgrade from GWT 1.5 to GWT 2.0 OR Do I have to first upgrade to GWT 1.7 and

Re: New layouts not playing nicely with Maps

2009-12-29 Thread jd
I had this problem a few months ago http://groups.google.com/group/google-web-toolkit-contributors/browse_thread/thread/c0dc9b54edd48531 and solved it with a callback which is more reliable than a timer because it cancels any existing animation which might run past your timeout.

Where does log4j output go?

2009-12-29 Thread Paul Grenyer
Hi All I know this was the topic of another thread recently, but I can't find it in the archives, so please accept my apologies. Where does the log4j output go in hosted mode for GWT 2.0? I seem to get some output in the console window only if an exception is thrown. -- Thanks Paul Paul

[gwt-contrib] Re: Comment on CssResource in google-web-toolkit

2009-12-29 Thread codesite-noreply
Comment by peled.roy: I have a problem with spriting; I added the following style rule @sprite #home { gwt-image:'imageHome'; } but what I get is inline data image instead of one sprite that contains all of my images... For more information:

[gwt-contrib] Re: Comment on CssResource in google-web-toolkit

2009-12-29 Thread codesite-noreply
Comment by peled.roy: Sorry, here's the code: {{{ @sprite #home { gwt-image:'imageHome'; } }}} For more information: http://code.google.com/p/google-web-toolkit/wiki/CssResource -- http://groups.google.com/group/Google-Web-Toolkit-Contributors