Class diagrams for GWT Samples
Hi all, I am quite new to GWT and learning it through the examples that comes with GWT package. I was wondering it would be great time saver if I could get the Class Diagrams for them or any tool that could generate it by reverse engineering. 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.2.0 required
Hi, Can anybody please tell me where to find GWT 2.2.0 plugins for eclipse. I am using : Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911 Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2.0 required
Hi, I don't think you can find it as a plug in but alternatively you can get the sdk's of older versions from here; http://code.google.com/webtoolkit/versions.html On Thu, Jun 23, 2011 at 9:45 AM, mohit mohitchilk...@gmail.com wrote: Hi, Can anybody please tell me where to find GWT 2.2.0 plugins for eclipse. I am using : Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911 Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Ahmet DAKOĞLU* -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.2.0 required
Additionally; Just install the plug in than install 2.2. On Thu, Jun 23, 2011 at 10:06 AM, Ahmet Dakoglu ahmetdako...@gmail.comwrote: Hi, I don't think you can find it as a plug in but alternatively you can get the sdk's of older versions from here; http://code.google.com/webtoolkit/versions.html Additionally; Just install the plugin, then download the 2.2 sdk and change the default gwt sdk of eclipse On Thu, Jun 23, 2011 at 9:45 AM, mohit mohitchilk...@gmail.com wrote: Hi, Can anybody please tell me where to find GWT 2.2.0 plugins for eclipse. I am using : Eclipse Java EE IDE for Web Developers. Version: Helios Service Release 2 Build id: 20110218-0911 Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- *Ahmet DAKOĞLU* -- *Ahmet DAKOĞLU* -- 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.
Firefox plugin incompatible with 5.0
Hello, I just upgraded my firefox version on Ubuntu and dev mode plugin has been disabled since it's incompatible with firefox 5.0. My settings: ubuntu 11.04 natty firefox 5.0 Google Web Toolkit plugin 1.0.9863 Hope this is just a version check goin' wrong...Please let me know if some more diagnostics or configuration information is needed, I'll be glad to provide it. Regards Lorenzo -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FTP upload of large files
You are wrong: ftp client is not related to gwt, worst ftp is not related to most of browser. Every technology has limits. The file server supports webdav as well. Can I build a simple webdav client with GWT / javascript for just uploading and downloading some big files? I think http://www.webdavsystem.com/ajax has this functionality... but it is expensive and I want to code a simple client for free. I built client in flash technology, working on theoretically any size of file but divides large file on small chunks and cooperate with server to join them later. Works on http. The client should work without flash, if possible... In GWT you have FileUpload control. Maybe there search for hints. If I understand the FileUpload - documentation correct, I need to code servlets for the server to use this control. But I have no access to the file server, it is a file server of a webhost where I habe only ftp and webdav access. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Firefox plugin incompatible with 5.0
I wanna know when new version of GDev plugin for FF5 will be available, thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to call a rest web service from gwt mobile application
Thanks juan On Jun 21, 10:14 pm, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Seehttp://restygwt.fusesource.org/ 2011/6/21 syruss navinkumar...@gmail.com Hi all, I have created a mobile application using GWT.I have successfully created the UI part but i have to call a rest web service from GWT mob app. What i have tried is 1.I have called the rest web service using HttpUrlConnection in java its working fine as web app but if i deployed the app in mobile its not working. 2.I have tried to call the service using RequestBuilder but its giving 0 status code. Please suggest me to proceed that 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-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to call a rest web service from gwt mobile application
Hi jens, I have used JsonpRequestBuilder to call external service .We can hit the server but while getting the response we are getting timeout Exception Here is the code : JsonpRequestBuilder jsonRequestBuilder=new JsonpRequestBuilder(); jsonRequestBuilder.setTimeout(1); jsonRequestBuilder.setCallbackParam(JSONCALLBACKPARAM); String callbackParam=jsonRequestBuilder.getCallbackParam(); System.out.println(JSONCALLBACKPARAM : + callbackParam); jsonRequestBuilder.requestObject(http://localhost:8081/LMS-WB/ services/authenticate/saranraju/welcome1/, new AsyncCallback() { @Override public void onFailure(Throwable caught) { System.out.println(StackTrace : +caught.getStackTrace()); System.out.println(caught.getClass().getName()); System.out.println(I caught in Failure Statte : +caught.getCause()); } @Override public void onSuccess(Object result) { System.out.println(result.hashCode()); System.out.println(result.getClass().getName()); } }); can you suggest me what we have missed out. Thanks in advance On Jun 21, 11:01 pm, Jens jens.nehlme...@gmail.com wrote: Is the web service you want to call accessible on the same protocol://domain:port as your GWT app? Normally RequestBuilder should work fine for requesting rest web services but maybe you have been run into the Same Origin Policy http://en.wikipedia.org/wiki/Same_origin_policy? If thats the case I think you have to use GWT's JsonpRequestBuilder to access the external web service. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Problem with GWT Service results
The proble is, that the code out of your onSuccess method is called before the request is finished. ... RootPanel.get(mainContainer).add(new Label(Array lista 2: +lista.toString())); RootPanel.get().add(new Label(String.valueOf(Array lista 2: +lista.size(; for(int i = 0; i lista.size(); i++){ RootPanel.get().add(new Label(BOTON +i)); } ... won´t work correct because your async request isn´t finished in the time when you execute the code outside of the RPC. RPC calls are asynchronous. That means, that the rest of the code executes directly after the request is started. The onSuccess method gets called when the result returns from the server. you could put this code in an external method and call this method inside of the onSuccess body. Cheers, Michael On 21 Jun., 09:39, Jose Luis Hernandez jose.hernande...@gmail.com wrote: Hello! I have a problem. I am calling to server side on GWT. The results of call is an ArrayList (result). Inside onSuccess method another ArrayList is wrapped with the result. However, if I want to use ArrayList lista outside of onSuccess method it contains 0 elements, but inside is like result ArrayList. How can I solve it? I have tried to use lista as class attribute, static attribute,... but it doesn't run. Thanks! public void addContainers() throws Exception { final ArrayListString lista = new ArrayListString(); gwtService.obtainAttributesDevice(1, new AsyncCallbackArrayListString(){ @Override public void onFailure(Throwable caught) { System.out.println(ERROR); Window.alert(caught.getMessage()); } @Override public void onSuccess(ArrayListString result) { RootPanel.get(mainContainer).add(new Label(Array result: +result.toString())); RootPanel.get().add(new Label(String.valueOf(Array result: +result.size(; lista.addAll(0, result); RootPanel.get(mainContainer).add(new Label(Array lista 1: +lista.toString())); RootPanel.get().add(new Label(String.valueOf(Array lista 1: +lista.size(; } }); RootPanel.get(mainContainer).add(new Label(Array lista 2: +lista.toString())); RootPanel.get().add(new Label(String.valueOf(Array lista 2: +lista.size(; for(int i = 0; i lista.size(); i++){ RootPanel.get().add(new Label(BOTON +i)); } } -- 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.
Aw: Re: How to call a rest web service from gwt mobile application
Does the webservice evaluate your JSONCALLBACKPARAM request parameter correctly and sends back the correct jsoncallbackparam value(your json data) string? -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-vugQ2q1iRUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Re: How to call a rest web service from gwt mobile application
hi Jens , Thanks a lot for your reply If i hit the server from the above code i got the server log which states that it processed the request successfully but while getting the response i got this this error I have written the rest service which send this as response {UIComponent:org.lms.valueObjects.PresentationVO@ae3da8} com.google.gwt.jsonp.client.TimeoutException should i change any thing in server side ? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.3 - ie8 user agent is recognized as ie6
Hello, I'm encountering a strange issue which is causing IE8 user agent to be recognized as IE6. My app is compiled with: set-property name=user.agent value=ie8 / And my page contains the following definition: meta http-equiv=X-UA-Compatible content=IE=8 But when I compile my app to js, the browser is showing alert that version of my app is for ie8, but my browser version is ie6, but my version of IE is 8.0.6001 and also the compatibility mode is disabled. Any idea what is causing this issue ? Also there is and another issue. If I have multiple user agents, the application generates only permutations for the latest one that is specified. Any idea how can I specify several permutations to be created ? set-property name=user.agent value=ie8 / set-property name=user.agent value=safari / // only safari is generated set-property name=user.agent value=ie8, safari / // fails If I use the following definition, the UserAgentGenerator fails with BadPropertyValueException -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9O5cGW7y3TwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Отг: GWT 2.3 - ie8 user agent is recognized as ie6
Here is header information that comes from my browser: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Zo-IJrWyLTMJ. 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.
TabLayoutPanel animation
Hi all, I'm reading the official tutorial to use TabLayoutPanel but I'm in front of a problem :( The TabLayoutPanel has no method called setAnimationDuration(); as it is mentionned on the tutorial Anyone has an idea about this ? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does registerForProxyType works
Thanks you all for the help. One more question, though. I noticed that after I perform a SQL SELECT I'm receiving a EntityProxyChange event. According to Joshua in this thread You need to cause a version change on the object to cause an update EntityProxyChange event. Why am I being updated just for calling a SELECT? Thanks once again. On Wed, Jun 15, 2011 at 4:43 AM, J.Ganesan j.gane...@datastoregwt.comwrote: If you are on Google App Engine Channel API is useful, perhaps. If you are not on Google App Engine, websocket is the way to go for client-to- client communication. J.Ganesan www.DataStoreGwt.com On Jun 15, 2:18 am, Aldo Neto tumo...@gmail.com wrote: Hi, Thanks for the hint, but unless I'm doing something wrong I'm still not being notified. Please note that when I say other clients I mean different users working on different machines accessing the same table on the same server. As I said, I expected that everyone would be notified when registering to registerForProxyType(). If this is not the case, the only thing that comes to my mind is to periodically request for all the entries that I'm interested. But again, I'd expect to have a way to PUSH the information I need, and this is what I'm not being able to do. Am I missing something? Any other idea? Thanks On Tue, Jun 14, 2011 at 3:49 PM, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: If you propage a event via eventBus don't work? 2011/6/14 Aldo Neto tumo...@gmail.com Hi, I need to implement a dynamic table that is populated based on values of a given entity on the server by many clients simultaneously. I thought that registerForProxyType() would solve all problems of mine, but then I made some quick tests and found that it is not called when a different client performs changes to that table. Is this correct? I mean, If I have 2 persons working on the same table and one updates an entry there, should I expect to be notified on both clients? If not, is there an easy way to do that? Thanks, Aldo -- 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-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-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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Class diagrams for GWT Samples
I can recommend you ObjectAid, my simple trial - http://riasol.internetdsl.pl/2011/05/11/static-class-analysis/ . -- 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.
Deploy on App Engine, too many files problem
Hi everybody, I'm developing a web app with GWT and App engine, and I have the problem of having more than 3000 files, so the deploy on app engine fail. I have about 3800 files (I had add a lang, so the number of file grow a lot, from 2700 to 3800). I take a look to my war folder, and I see that I have more than 2000 filse on WEB-INF/classes/.../client/ My question: the server really need this classes? Can I exclude from my war folder before upload? There is a simple way to do this? Any other suggestion is welcome... Thank you Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/K2BXTHwPIAIJ. 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.
Aw: Re: Re: How to call a rest web service from gwt mobile application
Basically JSONP uses the HTML script tag to load data from a different domain (to avoid the same origin policy. It does not apply for script tags). That means that if you do a request to http://localhost:8081/LMS-WB/services/authenticate/saranraju/welcome1/; via JsonpRequestBuilder GWT will insert something like: script type=text/javascript src=http://localhost:8081/LMS-WB/ services/authenticate/saranraju/welcome1/?callback=javascript methodname into the web page. Note the ?callback=javascript methodname portion of the URL. Your webservice has to evaluate the callback parameter and has to use the supplied method name for building the response. Instead of returning pure JSON you have to return Javascript (as the request is done via a script tag) and the correct return value would be methodname({ ... JSON DATA ... }). Before doing the request GWT will add a JavaScript function to your web page and the name of that function will be send to your server via the callback parameter. That function will be called when your request is done and that function will call your onSuccess method. As you have called jsonRequestBuilder.setCallbackParam(JSONCALLBACKPARAM); you would have to evaluate the parameter JSONCALLBACKPARAM on your server and use its value to construct the return value as described above. Hope that helps. -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/nd1i1xMwEx4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Recovering the source
Thanks for the responses. Rather a bummer but not unexpected. Maybe I can talk them into rebuilding with GWT because we do have most of the back-end logic available in the decompiled class files. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SWULCtcp5p8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: FTP upload of large files
You can't do either of those things at this time and won't be able to for the foreseeable future - likely not ever. Javascript can only make HTTP requests. About the best you could do is write some servlet / server side code to proxy the HTTP calls and forward them to your actual FTP server. Are you aware that all the major browsers already have basic FTP clients built into them? Try this in your browser: ftp://ftp.my.server/ On Jun 23, 4:15 am, Martin Winter martin1w...@googlemail.com wrote: You are wrong: ftp client is not related to gwt, worst ftp is not related to most of browser. Every technology has limits. The file server supports webdav as well. Can I build a simple webdav client with GWT / javascript for just uploading and downloading some big files? I thinkhttp://www.webdavsystem.com/ajaxhas this functionality... but it is expensive and I want to code a simple client for free. I built client in flash technology, working on theoretically any size of file but divides large file on small chunks and cooperate with server to join them later. Works on http. The client should work without flash, if possible... In GWT you have FileUpload control. Maybe there search for hints. If I understand the FileUpload - documentation correct, I need to code servlets for the server to use this control. But I have no access to the file server, it is a file server of a webhost where I habe only ftp and webdav access. -- 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.
Dev mode without GUI
How to run dev mode without gui via ant task. I want to run it from ssh. -- 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.
extending requestContext fo common functionality?
i know this has been asked before, but i'm not sure how to respond to it. given that requestContext and it's implementation parallal the Dao's of jpa, it's plausible to create a generic dao with entity methods like persist so i thought i would create a generic interface like CommonRequestContext that would extent the RequestContext and define persit method with the same signature of edit ... create etc. (using base proxy) i also thought about creating a common base class of the actuall dao that would define persist in a generic way. none of the options and alternatives i tried, worked because the gwt compile doesn't treat generics the same way as java.. anyone tried something similar? -- 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.
SDK BeanValidation message override
Hi! I managed to setup the native jsr303 validations and they seem to work fine, however so far I've been unable to replace the default validation messages. Hibernate-validator says that a custom ValidationMessages.properties should be placed in the classpath, but I haven't had any luck. Any ideas? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SDK BeanValidation message override
First off, I would go look at the Hibernate Forums for reasons why this is not working. Although RequestFactory does call the validation, the actual implementation is third party. Most of the magic of message replacement happens outside of it. If you are using Hibernates Validator than the ValidationMessages is the correct properties file you need to have. I would look at the deployment artifact and verify that that properties file is showing up in WEBINF/classes directory somewhere. (I like mine right under classes, less confusing, at least for me.) That should be the only thing you need in order to use Hibernate's validation messages. Good luck. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/899ihybKsacJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy on App Engine, too many files problem
Your deployed application does not need any code that is strictly client. Meaning if your server side code does not reference a Widget (which is not likely) than it can be excluded from the classes folder. Typically any code in the client subfolder is not needed. [I am however amazed that under your client folder you have over 2000 files??? Not my place to say, but I would look at why there is class explosion. Sounds like a maintenance nightmare.] As for how, what are you using to build the war? Maven, Ant, etc. What ever you are using look at their documentation on how to exclude folders from the compile phase of the build process. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/bM2LAScW6B4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Making GWT ignore fields in models
I would recommend looking at RequestFactoryhttp://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html. Especially dealing with ORM, this is a life saver as for time and functionality. (Especially pay attention to the Entity Proxyhttp://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#proxies .] -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CybtDnnJu0gJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy on App Engine, too many files problem
[I am however amazed that under your client folder you have over 2000 files??? Not my place to say, but I would look at why there is class explosion. Sounds like a maintenance nightmare.] 2000 class files wouldn't be that hard to hit when you think about anon subclasses class SomeClass extends Composite{ Button b = new Button(); public SomeClass(){ b.addClickHandler(new ClickHandler(){...}); b.addFocusHandler(new FocusHandler(){...}); } would be 3 .class files. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/ZuW_ZSIxnJcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy on App Engine, too many files problem
Actually, immediately after I posted that, I'm not sure that is true. If you made the click/focus handlers subclasses of SomeClass it would be separate class files. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/QmLu1LeUjsoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Firefox plugin incompatible with 5.0
https://groups.google.com/d/topic/google-web-toolkit/_5UQX3w5zH4/discussion On Thu, Jun 23, 2011 at 4:28 AM, Evgeny V Mustafin evgeniy.musta...@gmail.com wrote: I wanna know when new version of GDev plugin for FF5 will be available, thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Context Menu in CellTable
Now, with a dynamic context (defined by View). The only problem that remains is that when I click the context menu, the place changes but popup still keeps opened. Does someone knows how to solve it? public class TextCellNX extends AbstractSafeHtmlCellString{ MenuItem[] contextMenu; public TextCellNX(MenuItem[] contextMenu) { super(SimpleSafeHtmlRenderer.getInstance(), contextmenu); this.contextMenu = contextMenu; } public TextCellNX(SafeHtmlRendererString renderer) { super(renderer); } @Override public void render(Context context, SafeHtml value, SafeHtmlBuilder sb) { if (value != null) { sb.append(value); } } @Override public void onBrowserEvent(Context context, Element parent, String value, NativeEvent event, ValueUpdaterString valueUpdater) { if (contextmenu.equals(event.getType())) { event.preventDefault(); event.stopPropagation(); MenuItem acao = contextMenu[0]; MenuBar popupMenuBar = new MenuBar(true); popupMenuBar.addItem(acao); popupMenuBar.setVisible(true); PopupPanel popupPanel = new PopupPanel(true); popupPanel.add(popupMenuBar); popupPanel.setPopupPosition(event.getClientX(), event.getClientY()); popupPanel.show(); } } } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy on App Engine, too many files problem
Thank you Kevin, I'm glad my suspicions were correct I use the eclipse plugin to deploy e make everything, it is very very convenient, and so I became lazy... my dream (today) is a simple option on the eclipse plugin to exclude some classes ;-) However, I will try to create an ant file, that is a work in my todo list for a long time... ...anyone have some example? I have a lot of classes, but most are anonymous classes. For example my main classes (my EntryPoint) is one java file, with 47 .class file MyEntryPoint.java - MyEntryPoint.class, MyEntryPoint$1.class... MyEntryPoint$46.class Overall I have 261 java source file and 2061 classes. :-o ( However my app does many things ;-) http://www.youtrail.com/ ) Thanks again! Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/wXogsakPvRgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy on App Engine, too many files problem
It is exact! every anonymous class became a single .class file with $n in the name In your example SomeClass.class SomeClass$1.class SomeClass$2.class Thankyou Alessandro -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CjMAv1KT6PYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Deploy on App Engine, too many files problem
Ale, zip/ jar the additional files which would be used by your application at runtime. You can also look at zip/ jar images etc, this would considerably reduce the number of files. Thanks Ashwin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/oArf2kK-NOsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: TabLayoutPanel animation
Hei, I used the code of the showcase TabLayoutPanel Example: http://gwt.google.com/samples/Showcase/Showcase.html#!CwTabLayoutPanel and it worked for me. (I am using GWT 2.3) Cheers On Jun 23, 2:35 pm, Issam boualem.is...@gmail.com wrote: Hi all, I'm reading the official tutorial to use TabLayoutPanel but I'm in front of a problem :( The TabLayoutPanel has no method called setAnimationDuration(); as it is mentionned on the tutorial Anyone has an idea about this ? Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Minimizing functionality in GWT
Hi, Can any one help me to implement 'Minimizinging' and 'Maximizing' functionality in GWT or Smart GWT other than Window widget. In my case, we are adding Tabs to Tabset. But for tabs we donot have minimizing option. Is there any other approach to implement the above functionality? 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-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.
Issues with SelectionCell - Does not fire ChangeEvent on selecting the first item in the list
I am using SelectionCell in a CellTable as part of my project. Whenever I choose the first item in the SelectionCell, I notice during debug that Change Event is not getting fired, because of which the viewdata is never getting updated. I also tried creating my own selection cell which can support dynamic addition of data, I have the exact same problem where-in the change event does not get fired on selection of the first item. Now if dynamically change the data by removing one of the entries in my list, then the change event gets fired on selection of the first item. What could be the potential reason for this? Could this be browser dependent. I am currently testing my app on Chrome (14.0.797.0 dev). I have the same issue with Firefox 4.x as well. Has anyone else noticed this behavior before. Let me know if you need additional details. Thanks Ashwin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT 2.3 error
Hello, I'm new to GWT so please be understanding. I was trying to build a URL, basic @ 1st, and then add parameters as I get more familiar. I'm building within a web application using Java and I was trying to print out the URL to my JBoss server: String url = urlBuilder.buildString(); System.out.println(URL + url); However, I get an error @ the String url line: java.lang.UnsatisfiedLinkError: com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ lang/String; at com.google.gwt.http.client.URL.encodeImpl(Native Method) at com.google.gwt.http.client.URL.encode(URL.java:155) . Does anyone know how to resolve this error? Any help would be greatly appreciated. Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Hosted Mode Server Side Code Change
I am using eclipse and hosted mode to test out my app before deploy them to app engine. I read somewhere in google document which stated that if I used hosted mode and made change to server side code I can just press reload web server inside development and refresh the page to see the code in effect. However, it doesn't seem to be the case for me. The only way for me to get server side code to kick in was to stop the web server then press debug mode again. Is that suppose to happen? or is there any fix for my problem? Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What has happened to the GWT designer for Eclipse Indigo?
You can get it embedded in GPE 2.3.2 via the following update site link... http://dl.google.com/eclipse/plugin/3.7 Or you can get the full version at the following update site link... http://dl.google.com/eclipse/inst/d2gwt/beta/3.7 Both were available simultaneously with Indigo. The web site changes are still catching up. On Jun 22, 5:55 pm, Mark mayad...@gmail.com wrote: What has happened to theGWTdesignerfor Eclipse Indigo? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How can I open UiBinder XML in design mode in Eclipse?
Please click the Create Report button and submit a new bug report to the GWT issue tracker. On Jun 22, 8:46 pm, Asen Kovachev a...@google.com wrote: I need to adjust some GWT XML files that seem to be created via UiBinder. I installed a bunch of relevant Eclipse plugins and finally I was able to open a file with WindowBuilder I get the following error message. Is WindowBuilder part of UiBinder or am I using the wrong tool for that? I don't fully understand the Tetris CSS tags and was hoping a visual designer could shed some light as to what my g-unit/g-section options are. Thanks! Selection_002.png 232KViewDownload -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Hosted Mode Server Side Code Change
Quynh, I'm using GWT 2.2 with Eclipse, with the Eclipse Google Plugin. What you are describing works fine for me. The only time I have to restart the server is when I change the class structure (add a new class for example) on the client side. Then I have to restart everything so that my client side changes have effect. Create a simple test case where you have a simple GWT-RPC handler that returns a string and your EntryPoint just prints it out (with Window.alert maybe). Put first string on it and run the test. Your browser will say first string. Change the source of the GWT-RPC handler to second string and just reload the server. Press Ctrl+R in your browser and it should say second string. If it doesn't, please send more details with code and a procedure to reproduce the problem. Best, Dani On Thu, Jun 23, 2011 at 2:57 AM, Quynh argothi...@gmail.com wrote: I am using eclipse and hosted mode to test out my app before deploy them to app engine. I read somewhere in google document which stated that if I used hosted mode and made change to server side code I can just press reload web server inside development and refresh the page to see the code in effect. However, it doesn't seem to be the case for me. The only way for me to get server side code to kick in was to stop the web server then press debug mode again. Is that suppose to happen? or is there any fix for my problem? Thanks :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- Dani Cloud3 Tech - http://cloud3.tc/ Twitter: @DaniCloud3 @Cloud3Tech -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Firefox plugin incompatible with 5.0
Thank you very much, I searched too fast and missed it... No good news so, since mozilla ppa repository version is now at version 7, so we'll expect some delay for the future between FF and plugin changes. Anyway going back to FF 3.6 (4.0 package download disappeared) seems the fastest thing to do. Thanks for your collaboration. Regards Lorenzo On Jun 23, 10:59 am, Dominique L. dom@gmail.com wrote: Please, see this thread : http://groups.google.com/group/google-web-toolkit/browse_thread/threa... -- 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.
TreeGrid
Hello good afternoon! Need help from you guys regarding a question / problem ... I have an XML like this webServices name ABC / name id 1 / id to 0 / to tag WAS / tag / Webservices webServices name DEF / name id 2 / id to 1 / to tag Method / tag / Webservices webServices name GHI / name id 3 / id to 2 / to tag Object / tag / Webservices webServices name JLM / name id 4 / id to 3 / to tag Object / tag / Webservices webServices name NOP / name id 5 / id to 4 / to tag Parameter / tag / Webservices webServices name QRS / name id 6 / id to 4 / to tag Parameter / tag / Webservices Xml This is populating a data source to a treegrid. What I needed was the following: 1 - the tree is the look of checkbox. This item I've ever done as the showcase but wanted to see if there's only the leaves (leafs) of parameters have the look of checkbox. 2 - need to have the same level of nodes / leaves to be checked the other one is how deslecionado a radiobutton. This parameter in the case of the leaves that are there and can occur over an object there that only allow one selection. 3 - I used the feature selection cascade but only wanted to work as follows when selecting a level below the root of this that would be just above that were selected in casacata and not those who are below the hierarchy, not to disrupt the Item 2. Is that possible? I am two days ago and found no examples or methods on the internet that can 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: extending requestContext fo common functionality?
Server-side inheritance of RequestFactory services with generics works fine. See http://turbomanage.wordpress.com/2011/03/25/using-gwt-requestfactory-with-objectify/ Client-side inheritance of RequestContext interfaces is coming in 2.4. See http://code.google.com/p/google-web-toolkit/issues/detail?id=6234 Happy generifying! /dmc On Thu, Jun 23, 2011 at 10:18 AM, Elhanan elh.mailg...@gmail.com wrote: i know this has been asked before, but i'm not sure how to respond to it. given that requestContext and it's implementation parallal the Dao's of jpa, it's plausible to create a generic dao with entity methods like persist so i thought i would create a generic interface like CommonRequestContext that would extent the RequestContext and define persit method with the same signature of edit ... create etc. (using base proxy) i also thought about creating a common base class of the actuall dao that would define persist in a generic way. none of the options and alternatives i tried, worked because the gwt compile doesn't treat generics the same way as java.. anyone tried something similar? -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.3 - ie8 user agent is recognized as ie6
On Thursday, June 23, 2011 1:51:36 PM UTC+2, Miroslav Genov wrote: Hello, I'm encountering a strange issue which is causing IE8 user agent to be recognized as IE6. My app is compiled with: set-property name=user.agent value=ie8 / And my page contains the following definition: meta http-equiv=X-UA-Compatible content=IE=8 But when I compile my app to js, the browser is showing alert that version of my app is for ie8, but my browser version is ie6, but my version of IE is 8.0.6001 and also the compatibility mode is disabled. Any idea what is causing this issue ? No idea, but just to make sure: hit F12 to open IE's Developer Tools, and check whether it runs in IE8 Standards Mode. If that's not the case, then GWT is right, and you have to change your page so that IE runs in IE8 mode. Also there is and another issue. If I have multiple user agents, the application generates only permutations for the latest one that is specified. Any idea how can I specify several permutations to be created ? set-property name=user.agent value=ie8 / set-property name=user.agent value=safari / // only safari is generated set-property name=user.agent value=ie8, safari / // fails If I use the following definition, the UserAgentGenerator fails with BadPropertyValueException Try removing the space after the coma. This is the correct syntax, and at least it worked in GWT pre-2.3, before IE9 support was introduced and the user-agent check was overhauled. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/CCqhkBXuG8QJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How does registerForProxyType works
The enum used in EntityProxyChangehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/requestfactory/shared/EntityProxyChange.html . - A PERSIST event is fired after a proxy that was created on the client has been persisted on the server. - An UPDATE event is fired whenever a client encounters a proxy for the first time, or encounters a proxy whose version number has changed. - A DELETE event is fired after a proxy that was deleted on the client is deleted on the server as well. — *Source:* http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/requestfactory/shared/WriteOperation.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/co3TkitZhLMJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What has happened to the GWT designer for Eclipse Indigo?
On 06/23/2011 08:44 AM, Eric Clayberg wrote: You can get it embedded in GPE 2.3.2 via the following update site link... http://dl.google.com/eclipse/plugin/3.7 Or you can get the full version at the following update site link... http://dl.google.com/eclipse/inst/d2gwt/beta/3.7 Both were available simultaneously with Indigo. The web site changes are still catching up. On Jun 22, 5:55 pm, Mark mayad...@gmail.com wrote: What has happened to theGWTdesignerfor Eclipse Indigo? Cool! Although not so much a coffee-out-the-nose moment as Conroy's earlier reply. -- 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.
In-place edit (like Google AdWords)
Has anyone implemented advanced in-place edit like in Google AdWords? Any existing frameworks to support such behavior out there? I have been working on a prototype using GWT editors (SimpleEditor) and UiBinder. What I have is not great - just wondered if anyone has experience or pointers for more information on the topic? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Dev mode without GUI
On a Unix-based system, you should be able to export your DISPLAY (or set it to null?) and then run ant devmode as per http://code.google.com/webtoolkit/doc/latest/DevGuideCompilingAndDebugging.html#launching_in_dev_mode I haven't tried running without the GUI, but I routinely export my display via SSH to use dev mode console running remotely from my local machine. /dmc On Thu, Jun 23, 2011 at 9:51 AM, Evgeny V Mustafin evgeniy.musta...@gmail.com wrote: How to run dev mode without gui via ant task. I want to run it from ssh. -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: In-place edit (like Google AdWords)
Are you looking for something more advanced than click-to-edit as in the EditTextCell of http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler? /dmc On Thu, Jun 23, 2011 at 1:24 PM, d95sld95 steen.laur...@gmail.com wrote: Has anyone implemented advanced in-place edit like in Google AdWords? Any existing frameworks to support such behavior out there? I have been working on a prototype using GWT editors (SimpleEditor) and UiBinder. What I have is not great - just wondered if anyone has experience or pointers for more information on the topic? -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
certification
Hello gwtters, I'm wondering if there is some certifications that we can pass like the ones with java JEE etc . thank you for your answers. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Issues with SelectionCell - Does not fire ChangeEvent on selecting the first item in the list
BTW, I am using GWT 2.3.1r36v201105 On Jun 23, 10:19 am, Ashwin Desikan ashwin.desi...@gmail.com wrote: I am using SelectionCell in a CellTable as part of my project. Whenever I choose the first item in the SelectionCell, I notice during debug that Change Event is not getting fired, because of which the viewdata is never getting updated. I also tried creating my own selection cell which can support dynamic addition of data, I have the exact same problem where-in the change event does not get fired on selection of the first item. Now if dynamically change the data by removing one of the entries in my list, then the change event gets fired on selection of the first item. What could be the potential reason for this? Could this be browser dependent. I am currently testing my app on Chrome (14.0.797.0 dev). I have the same issue with Firefox 4.x as well. Has anyone else noticed this behavior before. Let me know if you need additional details. Thanks Ashwin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Minimizing functionality in GWT
i don't understand why you want to minimize/ maximize a tab. But if its something like you want to hide/ show the contents of a tab say on click of a button, you can modify the style by using the display property. Setting display : none would not display the contents. And to show the controls buttons, you can add custom widgets to the TabSet header Thanks Ashwin On Jun 23, 10:03 am, Sridhar PV sridharpv@gmail.com wrote: Hi, Can any one help me to implement 'Minimizinging' and 'Maximizing' functionality in GWT or Smart GWT other than Window widget. In my case, we are adding Tabs to Tabset. But for tabs we donot have minimizing option. Is there any other approach to implement the above functionality? 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What has happened to the GWT designer for Eclipse Indigo?
On Thursday 23 Jun 2011, Eric Clayberg wrote: You can get it embedded in GPE 2.3.2 via the following update site link... http://dl.google.com/eclipse/plugin/3.7 Tried this, but it said that it can not be installed with the version of WindowBuilder that I installed with Indigo. David Or you can get the full version at the following update site link... http://dl.google.com/eclipse/inst/d2gwt/beta/3.7 Both were available simultaneously with Indigo. The web site changes are still catching up. On Jun 22, 5:55 pm, Mark mayad...@gmail.com wrote: What has happened to theGWTdesignerfor Eclipse Indigo? -- 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.
RequestFactory: creating proxies on client and constructors
If I have an Request object and I call create to generate a new proxy instance, when, if ever, will my constructor for the class that is being proxied be called? It seems this is the purpose of the create method in the Locator class, but I don't see that method being called. I guess I'm not really clear what the purpose of that method is, if it isn't to construct new instances of proxied objects. The documentation on creating new objects on the client side indicates that I should make a call to the server to save it (persist it's called in the tutorial, which I understand is an arbitrary name). Is this when the Locator create method is called - the first time a method referencing the proxy is invoked when the proxy is not associated with an instance on the client? Thanks for helping clear up my confusion. Ryan -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: SDK BeanValidation message override
Particularly I was having the problem with the new client-side validations shipped in GWT 2.4, I didn't make it clear. Maybe there was some generation issue that is preventing it from working (this is still beta). However I could finally solve it by overriding org.hibernate.validator.ValidationMessages.properties in my project. I know it's not exactly the most beautiful thing in the world but it worked for me. Thanks for your reply, Kevin. On Jun 23, 11:34 am, Kevin Anderson kev...@gmail.com wrote: First off, I would go look at the Hibernate Forums for reasons why this is not working. Although RequestFactory does call the validation, the actual implementation is third party. Most of the magic of message replacement happens outside of it. If you are using Hibernates Validator than the ValidationMessages is the correct properties file you need to have. I would look at the deployment artifact and verify that that properties file is showing up in WEBINF/classes directory somewhere. (I like mine right under classes, less confusing, at least for me.) That should be the only thing you need in order to use Hibernate's validation messages. Good luck. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Changing GWT cursor position to a new position (x,y)
In GWT, Is it possible to set the cursor position to a location (x,y) (top,left) ?? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: creating proxies on client and constructors
The purpose of the create method is to associate a request context with the newly created object. It has to be done through the RequestContext so that it can be managed and all the goodies that come with request factory can be enforced. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/RJP-IeZl6wAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: creating proxies on client and constructors
Are you referring to the create method on the client (in my RequestContext sublcass), or the create method in the Locator (which I believe would be run on the server)? I think you're referring to the client-side create method; my question about create is mostly what the server-side version is used for. The context of the question is this: I have a Boolean property for my domain object. If I RequestContext.create a proxy and then try to access the Boolean, I get null. My domain object sets this property to a default value in its constructor, but the constructor is not called if all I do on the client is RequestContext.create the proxy. I was hoping to be able to write default values for properties in a single place. The domain object on the server seems to be the most logical place. Currently it seems that I need to save the new proxy on the server after RequestContext.create'ing the proxy for this to happen. Ryan On Jun 23, 3:36 pm, Kevin Anderson kev...@gmail.com wrote: The purpose of the create method is to associate a request context with the newly created object. It has to be done through the RequestContext so that it can be managed and all the goodies that come with request factory can be enforced. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting errors after upgrading to 2.3
Thanks for info. It somehow got set to an earlier version. On May 11, 10:53 am, Juan Pablo Gardella gardellajuanpa...@gmail.com wrote: Thank for share!! 2011/5/11 Swami mailsw...@gmail.com I found the issue. There was a GWT version mismatch between the Eclipse-Windows-Preferences Project-Properties. Once the versions matched, this issue went away a new issue is now in place. I'll post that separately. Thanks everyone! On May 10, 7:14 pm, Swami mailsw...@gmail.com wrote: Hello, I built ran an Eclipse project (with ant) successfully using 2.2. After upgrading to 2.3, I'm getting errors even when falling back to 2.2. Running ant on a Gnome shell is fine. I'm new to GWT; thanks for any help. Starting HTTP on port Loading inherited module 'com.google.gwt.user.User' Loading inherited module 'com.google.gwt.canvas.Canvas' Loading inherited module 'com.google.gwt.canvas.dom.DOM' Loading inherited module 'com.google.gwt.dom.DOM' Loading inherited module 'com.google.gwt.user.UserAgent' [ERROR] Element 'extend-property' beginning on line 27 contains unexpected attribute 'fallback-value' [ERROR] Failure while parsing XML com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries) at com.google.gwt.dev.util.xml.DefaultSchema.onUnexpectedAttribute(DefaultSche ma.java: 72) at com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java: 80) at com.google.gwt.dev.util.xml.Schema.onUnexpectedAttribute(Schema.java: 80) at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.startElement(ReflectiveParser.java:228) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unkn own Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl $FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.xerces.jaxp.SAXParserImpl $JAXPSAXParser.parse(Unknown Source) at com.google.gwt.dev.util.xml.ReflectiveParser $Impl.parse(ReflectiveParser.java:331) at com.google.gwt.dev.util.xml.ReflectiveParser$Impl.access $100(ReflectiveParser.java:48) at com.google.gwt.dev.util.xml.ReflectiveParser.parse(ReflectiveParser.java: 402) at com.google.gwt.dev.cfg.ModuleDefLoader.nestedLoad(ModuleDefLoader.java: 280) at ... -- 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-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: What has happened to the GWT designer for Eclipse Indigo?
Worked for me - excellent. On Jun 23, 7:18 pm, David Goodenough david.goodeno...@btconnect.com wrote: On Thursday 23 Jun 2011, Eric Clayberg wrote: You can get it embedded in GPE 2.3.2 via the following update site link... http://dl.google.com/eclipse/plugin/3.7 Tried this, but it said that it can not be installed with the version of WindowBuilder that I installed with Indigo. David Or you can get the full version at the following update site link... http://dl.google.com/eclipse/inst/d2gwt/beta/3.7 Both were available simultaneously with Indigo. The web site changes are still catching up. On Jun 22, 5:55 pm, Mark mayad...@gmail.com wrote: What has happened to theGWTdesignerfor Eclipse Indigo? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: creating proxies on client and constructors
Ryan, you're correct. Nothing on the server gets called until you fire() the request, so your default properties won't be immediately available on the client, unfortunately. On Thu, Jun 23, 2011 at 3:44 PM, Ryan McFall mcfall.r...@gmail.com wrote: Are you referring to the create method on the client (in my RequestContext sublcass), or the create method in the Locator (which I believe would be run on the server)? I think you're referring to the client-side create method; my question about create is mostly what the server-side version is used for. The context of the question is this: I have a Boolean property for my domain object. If I RequestContext.create a proxy and then try to access the Boolean, I get null. My domain object sets this property to a default value in its constructor, but the constructor is not called if all I do on the client is RequestContext.create the proxy. I was hoping to be able to write default values for properties in a single place. The domain object on the server seems to be the most logical place. Currently it seems that I need to save the new proxy on the server after RequestContext.create'ing the proxy for this to happen. Ryan On Jun 23, 3:36 pm, Kevin Anderson kev...@gmail.com wrote: The purpose of the create method is to associate a request context with the newly created object. It has to be done through the RequestContext so that it can be managed and all the goodies that come with request factory can be enforced. -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w: http://code.google.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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.
files generated with very long name
Hi all, I'm on a encypted file system that does not support more than 256 characters for file names. My gwt project does not compile because of this restriction. One of generated files is named : CxxAxxRequest_NxxxCxxProxyAutoBean_com_google_web_bindery_requestfactory_shared_impl_EntityProxyCategory_com_google_web_bindery_requestfactory_shared_impl_ValueProxyCategory_com_google_web_bindery_requestfactory_shared_impl_BaseProxyCategory.java I can shorten my Proxy name but is there an other way to deal with this ? Thanks for help, Alexandre. -- 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.
AsyncCallback timeout
Hi Is there a way to set the Async Callback timeout. When there is no internet connection on the client side the application is left waiting for a long time. Regards, Néstor Boscán -- 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.
Creating Custom Cells with UIBinder
If I create a UIBinder class with a root of HTMLPanel, can I use the .toString() method to return HTML that can be used in the render method of my AbstractCellMyData implementation? Basically, how do I use UIBinder to build my Custom cells? What if I have some functionality I want to keep (click on image, etc)? Any examples? J -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Creating Custom Cells with UIBinder
Basically, how do I use UIBinder to build my Custom cells? You can't yet. This is being worked on though. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Ie-qlbiWcp4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Creating Custom Cells with UIBinder
It seems like at a minimum, I should be able to generate the html using UiBinder, but .getHTML()/HasHtml doesn't seem to be available on any interesting widgets? On Jun 23, 3:26 pm, Jeff Larsen larse...@gmail.com wrote: Basically, how do I use UIBinder to build my Custom cells? You can't yet. This is being worked on though. -- 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.
CD not received
Hi, I have not received CD's yet. Regards Deepak -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Request Factory
On 21 June 2011 11:40, sam sanj.kan...@gmail.com wrote: Hi There, Can i plz get some information regarding how the requestfactory works and if possible some demo sample would be great. Thank You in Advanced Sam -- -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Creating Custom Cells with UIBinder
getHTML(), HasHtml aren't for the entire widget itself, it would be for a small portion of the widget, like with DialogBox where getHTML() returns the HTML in the header. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Tr2uH4p3g7AJ. 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.
MultiWordSuggestOracle default response ignores request limit
I'm using a MultiWordSuggestOracle. I notice that the default response will contain any number of suggestions, ignoring the limit specified in the request. Is this by design? I notice that the non- default response contains up to one more than the limit specified in the request. Is this inconsistency intentional, or is this a bug? Cheers, Tony -- 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.
well indigo relased
:) no plugin -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: files generated with very long name
See http://code.google.com/p/google-web-toolkit/issues/detail?id=6015 and http://code.google.com/p/google-web-toolkit/source/detail?r=10170 Will be in GWT 2.4. Alternatively, you can just remove the -gen argument when you launch the GWT compiler, and it shouldn't write the files to disk. This is unfortunately not possible with the gwt-maven-plugin; I haven't tried but maybe using a JAR as the output might allow such long file names: gen${project.build.directory}/gwt-generated.jar/gen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/SROdGXbEX8YJ. 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.
GwtCanvasDemo Question
So I am making a simple card game using GWT. It works, it's nice, but it isn't very flashy. So my plan is to have a Canvas sit below the cards and when a card is played have a special effect animation on the canvas run. I'm looking at the GWTCanvasDemo @ http://code.google.com/p/gwtcanvasdemo/source/browse/trunk/src/com/google/gwt/gwtcanvasdemo/client/GwtCanvasDemo.java. I've downloaded the code, I've run it, it worksand I have no idea how. There are two canvaes, canvas and backbuffer. The canvas has the lens with the warp effect, the back buffer has all the images / balls drawn on them. However, the backBuffer never seems to be added to the Rootpanel. It's also never given a size like canvas is, it's only given Coordinate Space. I'm trying to mess with this code in my own project and I can't figure out how and why the demo works. Can someone explain to me what's going on? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/DXYc6Q2YJqAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Creating Custom Cells with UIBinder
As Jeff said, this is being worked on (generating a SafeHtmlRenderer from a ui.xml) and should ship in 2.4 (i.e. very soon!) A bit more details below: On Thursday, June 23, 2011 10:16:17 PM UTC+2, joel wrote: If I create a UIBinder class with a root of HTMLPanel, can I use the .toString() method to return HTML that can be used in the render method of my AbstractCellMyData implementation? You cannot use widgets in Cells, so the only kind of ui.xml that'd work are those that don't use widgets, and have a return type of Element. ...but that's of no help for the moment. What I'd recommend is to use SafeHtmlTemplates. Basically, how do I use UIBinder to build my Custom cells? What if I have some functionality I want to keep (click on image, etc)? Cells generate HTML, so there's no way you could define @UiHandlers, at least not the way UiBinder is built nowadays. You have to implement onBrowserEvent and check whether the click was on your image or not. I generally use class names to somehow identify the elements when there are several of the same kind in the Cell: take the event's target (cast to Element), if its tagName (lower-cased) is img, then check whether it has the class name you defined and react accordingly. In some cases, you'd have to walk up the hierarchy until you find an element with the given tagName. Any examples? You'll find some (admittedly a bit limited) in the built-in Cells. IIRC, CheckBoxCell checks whether you clicked on the checkbox or outside, and ButtonCell (and/or ActionCell) checks for the button in a similar way. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Tt2odMvSmL8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: well indigo relased
Actually, yes: https://twitter.com/#!/googledevtools/status/84003283651411968 (update site: replace 3.6 with 3.7 in the URL, compared to Helios) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/yLLr7HIDa0MJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Set-Cookie Being Ignored
FYI, just added an answer there: http://stackoverflow.com/questions/6351390/gwt-preventing-set-cookie-http-header-from-actually-setting-cookie/6461942#6461942 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/8DatdOvRuFAJ. 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.
Suggestion; GWT Lib for Adsense Integration
GWT needs a Adsense Lib. I hope the Adsense GWT team can find a solution so I can use Adsense. If I where in GWT team shoes, I would suggest making this a priority because its a carrot for developers to make cool apps with GWT. Well I've said my two cents, and hope someone looks :). I suggested the topic here and was slightly berated for using IFraming, which I know now is against policy. This forum really needs a suggestion category so they don't get confused with thinking they have to answer it. http://www.google.com/support/forum/p/AdSense/thread?tid=1f8b1d2b86c2cedchl=enfid=1f8b1d2b86c2cedc0004a6699f76b8c6 Whats your take? Brandon Donnelson http://gwt-examples.googlecode.com -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/qWqn_XAegHoJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory: creating proxies on client and constructors
Thanks David, for confirming my suspicions. I've got this working now so that immediately after I RequestContext.create my proxy, I call a method on the server to persist it. In side that server method, I refresh the state of the object after saving it, because a database trigger populates some tables associated with the object when it is first created. On the server side, I see those fields being assigned values in my debugger after the refresh. I do update the version number field for the object on the server in my service method. However, on the client side, the proxy returned by RequestContext.create does not have those new values; the collection containing them is still null, as it was before I persisted the object. I have some ideas on how to fix this, but I'd love to hear suggestions on the best way to do it. I feel like the client-side event bus stuff could be involved here, but honestly I don't know much about how that works - where is a good place to look for docs (the getting started with RequestFactory guide doesn't really talk about it). Ryan On Jun 23, 4:07 pm, David Chandler drfibona...@google.com wrote: Ryan, you're correct. Nothing on the server gets called until you fire() the request, so your default properties won't be immediately available on the client, unfortunately. On Thu, Jun 23, 2011 at 3:44 PM, Ryan McFall mcfall.r...@gmail.com wrote: Are you referring to the create method on the client (in my RequestContext sublcass), or the create method in the Locator (which I believe would be run on the server)? I think you're referring to the client-side create method; my question about create is mostly what the server-side version is used for. The context of the question is this: I have a Boolean property for my domain object. If I RequestContext.create a proxy and then try to access the Boolean, I get null. My domain object sets this property to a default value in its constructor, but the constructor is not called if all I do on the client is RequestContext.create the proxy. I was hoping to be able to write default values for properties in a single place. The domain object on the server seems to be the most logical place. Currently it seems that I need to save the new proxy on the server after RequestContext.create'ing the proxy for this to happen. Ryan On Jun 23, 3:36 pm, Kevin Anderson kev...@gmail.com wrote: The purpose of the create method is to associate a request context with the newly created object. It has to be done through the RequestContext so that it can be managed and all the goodies that come with request factory can be enforced. -- 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. -- David Chandler Developer Programs Engineer, Google Web Toolkit w:http://code.google.com/ b:http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: well indigo relased
Would you mind put the URL here? My company don't allow twitter at the network On Jun 24, 7:38 am, Thomas Broyer t.bro...@gmail.com wrote: Actually, yes:https://twitter.com/#!/googledevtools/status/84003283651411968 (update site: replace 3.6 with 3.7 in the URL, compared to Helios) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Minimizing functionality in GWT
Hi Ashwin, Thank you for reply. But I had a requirement like minimizing and maximizing the tab which should be act same as Window. Window can be resize, minimize,maximize and drag as well. We need to implement similar functionality in my project. Please suggest me pseudo code if you have any. Thanks, Sridhar On Jun 23, 10:56 pm, Ashwin Desikan ashwin.desi...@gmail.com wrote: i don't understand why you want to minimize/ maximize a tab. But if its something like you want to hide/ show the contents of a tab say on click of a button, you can modify the style by using the display property. Setting display : none would not display the contents. And to show the controls buttons, you can add custom widgets to the TabSet header Thanks Ashwin On Jun 23, 10:03 am, Sridhar PV sridharpv@gmail.com wrote: Hi, Can any one help me to implement 'Minimizinging' and 'Maximizing' functionality in GWT or Smart GWT other than Window widget. In my case, we are adding Tabs to Tabset. But for tabs we donot have minimizing option. Is there any other approach to implement the above functionality? Thanks In Advance.- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Is it ever possible for an asynchronous service method's callback to get called without yielding to the browser's event loop?
Thomas, Yes, I believe that is the answer I was looking for. -Tad -- 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.
User Personalization features in GWT
Hi, Please help me on User Personalization features in GWT. i.e, User loged into the application and opened few pages and he signoff the application. Again if he sign in into the application, he can able to see the previous session/opened pages. Could any one help me on this please. I have a urgent requirement on this. Thanks, Sridhar -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Patch for interim state of incremental compile. (issue1464804)
Reviewers: scottb, jbrosenberg, Description: Patch for interim state of incremental compile. If a user manually switches GwtAstBuilder on/off, cached units may not have the AST partial data. Please review this at http://gwt-code-reviews.appspot.com/1464804/ Affected files: M dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java Index: dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java === --- dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (revision 10380) +++ dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (working copy) @@ -278,6 +278,13 @@ } } } + if (isValid GwtAstBuilder.ENABLED) { +// TODO(zundel): temporary fix to invalidate a unit when GwtAstBuilder is flipped off +// then on again by user. +if (unit.getTypesSerialized() == null || unit.getTypesSerialized().length == 0) { + isValid = false; +} + } if (!isValid) { if (logger.isLoggable(TreeLogger.TRACE)) { logger.log(TreeLogger.TRACE, Invalid Unit: + unit.getTypeName()); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
http://gwt-code-reviews.appspot.com/1464804/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#newcode285 dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:285: isValid = false; This is supposed to be already handled in PersistentUnitCache. It skips over any units with the wrong AST version number. What's the deal here? http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
http://gwt-code-reviews.appspot.com/1464804/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#newcode285 dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:285: isValid = false; On 2011/06/23 12:46:56, scottb wrote: This is supposed to be already handled in PersistentUnitCache. It skips over any units with the wrong AST version number. What's the deal here? If the interim x.(no)astBuilder system properrty is toggled you can trigger it. http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RFC: ElementBuilder API (issue1455802)
http://gwt-code-reviews.appspot.com/1455802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: RFC: ElementBuilder API (issue1455802)
Changes in this version: - Finished implementation - Added lots of tests - Added more JavaDoc, including examples - Implementations extend from a common parent, which controls all state logic and IllegalStateExceptions. http://gwt-code-reviews.appspot.com/1455802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
http://gwt-code-reviews.appspot.com/1464804/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java File dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java (left): http://gwt-code-reviews.appspot.com/1464804/diff/1/dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java#oldcode344 dev/core/src/com/google/gwt/dev/javac/CompilationStateBuilder.java:344: CompilationUnit cachedCompilationUnit = unitCache.find(unit.getResourcePath()); Thought about adding the check here.. http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java File dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode108 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:108: public void addArchivedUnit(CompilationUnit newUnit) { This check, although a little later seems like a more central place. http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10381 committed - Change formatter to use 100 col. comments and add a checkstyle check f...
Revision: 10381 Author: p...@google.com Date: Thu Jun 23 04:46:47 2011 Log: Change formatter to use 100 col. comments and add a checkstyle check for it Review at http://gwt-code-reviews.appspot.com/1465803 http://code.google.com/p/google-web-toolkit/source/detail?r=10381 Added: /trunk/build-tools/customchecks/src/com/google/gwt/checkstyle/CustomRegexpHeaderCheck.java /trunk/build-tools/customchecks/src/com/google/gwt/checkstyle/GwtHeaderCheck.java /trunk/build-tools/customchecks/src/com/google/gwt/checkstyle/messages.properties Modified: /trunk/eclipse/settings/code-style/gwt-checkstyle-tests.xml /trunk/eclipse/settings/code-style/gwt-checkstyle.xml /trunk/eclipse/settings/code-style/gwt-customchecks.jar /trunk/eclipse/settings/code-style/gwt-format.xml === --- /dev/null +++ /trunk/build-tools/customchecks/src/com/google/gwt/checkstyle/CustomRegexpHeaderCheck.java Thu Jun 23 04:46:47 2011 @@ -0,0 +1,215 @@ +/* + * Copyright 2011 Google Inc. + * + * Licensed under the Apache License, Version 2.0 (the License); you may not use this file except + * in compliance with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software distributed under the License + * is distributed on an AS IS BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express + * or implied. See the License for the specific language governing permissions and limitations under + * the License. + */ +// // +// checkstyle: Checks Java source code for adherence to a set of rules. +// Copyright (C) 2001-2005 Oliver Burn +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// // +package com.google.gwt.checkstyle; + +import com.puppycrawl.tools.checkstyle.checks.header.RegexpHeaderCheck; +import com.puppycrawl.tools.checkstyle.api.DetailAST; +import com.puppycrawl.tools.checkstyle.api.Utils; + +import org.apache.commons.beanutils.ConversionException; + +import java.util.Arrays; +import java.util.regex.Pattern; +import java.util.regex.PatternSyntaxException; + +/** + * Custom version of {@link RegexpHeaderCheck} that has hooks for a custom log handler (see + * {@link CustomLogHandler}). + * p + * This is an exact copy of {@link RegexpHeaderCheck} with three exceptions: + * ol + * li{@link CustomLogHandler} has been added for custom log callbacks./li + * li{@link #doChecks(CustomLogHandler)} has been added for custom checks. This method is an exact + * copy of {@link RegexpHeaderCheck#beginTree(DetailAST)} except all log calls have been replaced + * with a call to a custom log handler./li + * li{@link #beginTree(DetailAST)} has been refactored to call + * {@link #doChecks(CustomLogHandler)}. + * /ol + */ +public class CustomRegexpHeaderCheck extends RegexpHeaderCheck { + /** + * Custom log handler callback. + */ + abstract static class CustomLogHandler { +abstract void log(int aLine, String aKey); + +abstract void log(int aLine, String aKey, Object aObject); + } + + // empty array to avoid instantiations. + private static final int[] EMPTY_INT_ARRAY = new int[0]; + + // the header lines to repeat (0 or more) in the check, sorted. + private int[] mMultiLines = EMPTY_INT_ARRAY; + + // the compiled regular expressions + private Pattern[] mHeaderRegexps; + + /** + * {@inheritDoc} + */ + public void beginTree(DetailAST aRootAST) { +doChecks(new CustomLogHandler() { + @Override + void log(int aLine, String aKey) { +CustomRegexpHeaderCheck.this.log(aLine, aKey); + } + @Override + void log(int aLine, String aKey, Object aObject) { +CustomRegexpHeaderCheck.this.log(aLine, aKey, aObject); + } +}); + } + + /** + * Check the current file using the same method as {@link RegexpHeaderCheck#beginTree(DetailAST)} + * but pass all logging calls through a custom log handler (@see {@link CustomLogHandler}). + * + * @param logHandler the custom log handler, or codenull/code to suppress logging. + */ + public
[gwt-contrib] Re: Last change prevented re-loading modules, but caused it to write too many (issue1464803)
http://gwt-code-reviews.appspot.com/1464803/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java File dev/core/src/com/google/gwt/dev/CompileModule.java (right): http://gwt-code-reviews.appspot.com/1464803/diff/1/dev/core/src/com/google/gwt/dev/CompileModule.java#newcode189 dev/core/src/com/google/gwt/dev/CompileModule.java:189: SetString alreadyLoadedArchives = new HashSetString(); So, this change is essentially moving the set of archived units to be global for a specific set of modules passed in. I see that this will reduce the amount of work needed for a specific set of modules. However, what about the case where you then have a different overlapping set of modules. This could then cause more work there, since the second set may see that it needs to compile units that previously would have been included in the subset of modules that are shared between the 2 sets, etc http://gwt-code-reviews.appspot.com/1464803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
LGTM w/ suggestion. http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java File dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode109 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:109: if (((CachedCompilationUnit) newUnit).getTypesSerializedVersion() != GwtAstBuilder The cast seems to imply a hard contract here. If you want to commit as-is, I think that's fine, but I think it'd be better to change the sig to CachedCompilationUnit and thread the API changes back to wherever they are needed. http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] 100 column comments!
gwt-contrib, I just submitted r10381http://code.google.com/p/google-web-toolkit/source/detail?r=10381that changes the GWT comment style from 80 columns to 100 columns. If you receive the error Building workspace has encountered a problem - errors running builder 'Checkstyle Builder' on project gwt-user, you will need to re-import the GWT custom checks. To do this, copy svn/trunk/eclipse/settings/code-style/gwt-customchecks.jar into eclipse/plugins/com.atlassw.tools.eclipse.checkstyle_x.x.x/extension-libraries/gwt-customchecks.jar, then restart Eclipse. Thank you, Philip -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10382 committed - Update client bundle result caching to track absent resources...
Revision: 10382 Author: gwt.mirror...@gmail.com Date: Thu Jun 23 04:50:59 2011 Log: Update client bundle result caching to track absent resources Review at http://gwt-code-reviews.appspot.com/1466804 http://code.google.com/p/google-web-toolkit/source/detail?r=10382 Modified: /trunk/user/src/com/google/gwt/resources/ext/ResourceGeneratorUtil.java /trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java === --- /trunk/user/src/com/google/gwt/resources/ext/ResourceGeneratorUtil.java Tue Apr 26 08:02:24 2011 +++ /trunk/user/src/com/google/gwt/resources/ext/ResourceGeneratorUtil.java Thu Jun 23 04:50:59 2011 @@ -517,7 +517,7 @@ /** * Get default list of resource Locators, in the default order. * - * @param context + * @param genContext * @return an ordered array of Locator[] */ private static Locator[] getDefaultLocators(GeneratorContext genContext) { @@ -533,7 +533,7 @@ * Get the current locale string. * * @param logger - * @param context + * @param genContext * @return the current locale */ private static String getLocale(TreeLogger logger, GeneratorContext genContext) { @@ -614,7 +614,7 @@ String resourceName, String locale) { URL toReturn = tryFindResource(locator, resourceName, locale); -if (toReturn != null context != null) { +if (context != null) { ClientBundleRequirements reqs = context.getRequirements(); if (reqs != null) { reqs.addResolvedResource(resourceName, toReturn); === --- /trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java Mon Jun 20 09:36:25 2011 +++ /trunk/user/src/com/google/gwt/resources/rebind/context/AbstractClientBundleGenerator.java Thu Jun 23 04:50:59 2011 @@ -335,7 +335,7 @@ boolean useCache = false; if (checkPropertyCacheability(logger, generatorContext) checkSourceTypeCacheability(logger, generatorContext) - checkDependentResourceCacheability(logger, generatorContext, null)) { + checkDependentResourceCacheability(logger, generatorContext)) { useCache = true; } @@ -586,7 +586,7 @@ * Check dependent resources for cacheability. */ private boolean checkDependentResourceCacheability(TreeLogger logger, - GeneratorContextExt genContext, ResourceContext resourceContext) { + GeneratorContextExt genContext) { CachedRebindResult lastRebindResult = genContext.getCachedGeneratorResult(); @@ -608,9 +608,17 @@ for (EntryString, URL entry : cachedResolvedResources.entrySet()) { String resourceName = entry.getKey(); URL resolvedUrl = entry.getValue(); - URL currentUrl = ResourceGeneratorUtil.tryFindResource(logger, genContext, - resourceContext, resourceName); - if (currentUrl == null || resolvedUrl == null + URL currentUrl = + ResourceGeneratorUtil.tryFindResource(logger, genContext, null, resourceName); + + if (resolvedUrl == null) { +if (currentUrl == null) { + continue; +} else { + logger.log(TreeLogger.TRACE, Found newly available dependent resource: + resourceName); + return false; +} + } else if (currentUrl == null | | !resolvedUrl.toExternalForm().equals(currentUrl.toExternalForm())) { logger.log(TreeLogger.TRACE, Found dependent resource that has moved or no longer exists: + resourceName); -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java File dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode108 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:108: public void addArchivedUnit(CompilationUnit newUnit) { Since this method is only ever called from CompilationStateBuilder.addArchive(), wouldn't that method be even more centrally located? And in that case, since it will be iterating through a list of units, all from the same archive (which will presumably all have the same serialization version), it should be able to exit more quickly the first time it finds a version mismatch, rather than having to iterate through all the units and check each one individually http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode109 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:109: if (((CachedCompilationUnit) newUnit).getTypesSerializedVersion() != GwtAstBuilder This issue goes away if we move this back to CSB.addArchive(). http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java File dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode108 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:108: public void addArchivedUnit(CompilationUnit newUnit) { On 2011/06/23 15:19:35, jbrosenberg wrote: Since this method is only ever called from CompilationStateBuilder.addArchive(), wouldn't that method be even more centrally located? That's where I first thought about putting it. I'll think about it some more. And in that case, since it will be iterating through a list of units, all from the same archive (which will presumably all have the same serialization version), it should be able to exit more quickly the first time it finds a version mismatch, rather than having to iterate through all the units and check each one individually Archived units can come from different compiles, (remember -we pull in the previous version of the archive and try to re-use its units?) so it isn't necessarily huge time saver. http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode109 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:109: if (((CachedCompilationUnit) newUnit).getTypesSerializedVersion() != GwtAstBuilder On 2011/06/23 15:19:35, jbrosenberg wrote: This issue goes away if we move this back to CSB.addArchive(). Not sure I see that. addArchive() still works with CompilationUnit type, not CachedCompilationUnit. http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Patch for interim state of incremental compile. (issue1464804)
http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java File dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java (right): http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode108 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:108: public void addArchivedUnit(CompilationUnit newUnit) { Hmmm...well, maybe we shouldn't pull in previous units from a previous compile if they are from an incompatible version. Shouldn't we try to ensure that all units in a gwtar file have the same serialization version (even if from multiple compiles?). http://gwt-code-reviews.appspot.com/1464804/diff/4001/dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java#newcode109 dev/core/src/com/google/gwt/dev/javac/MemoryUnitCache.java:109: if (((CachedCompilationUnit) newUnit).getTypesSerializedVersion() != GwtAstBuilder Well, if that's true, then you'd get a class cast exception with the above code, no? http://gwt-code-reviews.appspot.com/1464804/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add RequestFactory validator implemented as an annotation processor. (issue1467804)
It took me some time, and I haven't thoroughly reviewed all the code, neither did I tried it yet against my own code base. I really like the move to APT, but to replace the RFIV, there would need to be a DomainToClientMapper, probably generated in a similar way as the TypeTokenResolver.Builder. In the small tests I did, the interfaces validated with RfValidator but later failed in RFIV (I did something similar to issue 5926 http://code.google.com/p/google-web-toolkit/issues/detail?id=5926 i.e. with bridge methods; in my case, using generics because that's the issue we're facing in our app, which shouldn't require a @SkipInterfaceValidation). I did the review in several short periods, jumping from one class to the other, so maybe the comments don't line up very well. http://gwt-code-reviews.appspot.com/1467804/diff/1/user/build.xml File user/build.xml (right): http://gwt-code-reviews.appspot.com/1467804/diff/1/user/build.xml#newcode155 user/build.xml:155: exclude name=com/google/web/bindery/requestfactory/apt/**/ Why is this needed? I can understand that it makes iterating on the APT code easier (changes you make to it aren't taken into account when determining whether to precompile modules –which is slow and resource consuming–, when launching, e.g., unit tests) but you probably meant to only have it a s a temporary measure? (I mean, same would be true of many **/server/** classes) http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java File user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java (right): http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java#newcode50 user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java:50: private ExecutableElement found; shouldn't they all be 'final' ? http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java#newcode83 user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java:83: TypeMirror paramType = maybeBox(paramElement.asType(), state); Correct me if I'm wrong, but this is a change from RFIV, where argument types weren't boxed before being compared. If this is a willful change, then ReflectiveServiceLayer would have to be updated as well when looking up methods. Similarly, return type is only boxed in RFIV for service methods, not properties. http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java#newcode96 user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java:96: || state.types.isSubsignature((ExecutableType) x.asType(), (ExecutableType) found That's great, as it seems to fix issue 5926. (unfortunately, because RFIV is still used, an interface that validates with RfValidator at compile-time can fail with RFIV at runtime) http://code.google.com/p/google-web-toolkit/issues/detail?id=5926 http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java#newcode111 user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java:111: returnType = maybeBox(returnType, state); Why isn't this done in the constructor? http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java#newcode115 user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java:115: return scanAllInheritedMethods(x, state); Isn't that more or less the default behavior? (default behavior would visit fields and nested types too) http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java#newcode149 user/src/com/google/web/bindery/requestfactory/apt/DomainChecker.java:149: TypeMirror returnType = x.getReturnType().accept(new ClientToDomainMapper(), state); x should probably be turned into an ExecutableType using state.types.asMemberOf(domainType.asType(), x) to make sure we preserve actual type variables in the hierarchy (and similarly in MethodFinder). I mean, if we have: interface BaseFooProxyT { T getT(); void setT(T); } and interface FooProxy extends BaseFooProxyBarProxy { } the ExecutableElement will have a formal type variable T and we only know about its bounds. What we'd like to check here is that the domain object has BarProxy getT() and void setT(BarProxy) methods, and only ExecutableType would give us the information. There might be other places where that'd be beneficial. ...and that'd help fix issue 5926 in an elegant way: http://code.google.com/p/google-web-toolkit/issues/detail?id=5926 http://gwt-code-reviews.appspot.com/1467804/diff/1/user/src/com/google/web/bindery/requestfactory/apt/Finder.java File user/src/com/google/web/bindery/requestfactory/apt/Finder.java (right):
[gwt-contrib] Re: Last change prevented re-loading modules, but caused it to write too many (issue1464803)
http://gwt-code-reviews.appspot.com/1464803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors