Re: Designer Problem : « uibinder template should be in client package »
Thanks Kojo, I had a look there and all the source is included. :( Here is a basic package layout, perhaps there is something wrong : src-- | topPackage | package1 | client server package2 | client | widget | timewidget | TimeView.java TimeView.ui.xml server public | images(folder) package1.css package2.css package1.gwt.xml package2.gwt.xml ...(referenced libraries and war directory etc) In this example layout the TimeView.ui.xml gives the error uibinder template should be in client package. Is there anything you can spot is wrong with the package layout? Is there anything that says there can be only one client package? When running the project everything works fine, I just can't use the designer -- 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/-/rfkZElLh7-IJ. 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: ColumnSortList serializing
I understand your solution, but I think it will be nicer if I can get the sorted Column obejct on the server side, so I can get the sorted value in the comparator with the Column.getValue(MyBean) method. So basicly my question is can I somehow get the sorted Column object on the server? Peter On Jul 12, 6:00 pm, peerawat poombua peerawat...@gmail.com wrote: Actually you can use Collection.sort with the Comparator in the server side (if you use Java as your server). I have used it in order to do the multi-level sorting because Let's see some example of Collection.sort and Comparator here http://download.oracle.com/javase/tutorial/collections/interfaces/ord... But the things is you have to create a list in order to collect the order of sorting and then you send it to the server. For example if I have my function for pulling some data like this public List fetchData() { // fetch data } you just added the criteria as the argument of the function like this public List fetchData(List sortingCriteria) { // fetch data } Hope that my answer can help you. Your welcome : ) Peerawat 2011/7/12 Ambrus Péter peter.amb...@gmail.com Hi, I would like to create a CellTable which gets data from the server through RPC. That's good, no problem with it. Then I'd like to add some sorting feature with async sorting on the server. That's why I'd like to push data table's ColumnSortList through RPC to the server. Unfortunately ColumnSortList doesn't implements isSerializable, so I can't send it to the sever. How can I send the ColumnSortList information to the server, or how should I implement a sorting method on the server without the ColumnSortList object? Thank you, Peter -- 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: Controlling BIRT with GWT
i've been reading about security issues, although it make not seem related embedding foreign javascript in gwt is considered a security risk, you should look into that also. On Wed, Jul 13, 2011 at 3:39 AM, mike b mbaker.t...@gmail.com wrote: The BIRT dev environment has a way of exporting javascript to embed in HTML in the same way that Google Maps does. Has anyone successfully used JSNI to integrate BIRT into GWT? Easy? Painful?? Any unexpected problems? What I need to do is have a complex widget filter thru 6 or 7 attributes to get a RUN_ID which would then be passed into (hopefully) a BIRT report which would then render embedded in a DIV on the screen. The idea is to make a seamless dashboard kind of thing. Hopefully I won't have to use IFRAMES or anything like that. I'm hoping to make this seamless to the user. Was thinking of putting the BIRT scripts into a separate js file, or possibly putting pasting them into a Java class. Ideas? Thanks, mike -- 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/-/8MeyuvKrbDQJ. 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: Which version of javax.validation.validation-api?
does this mean i cannot use validation if i'm not using requestFactory? http://code.google.com/webtoolkit/doc/latest/DevGuideRequestFactory.html#validation On Tue, Jul 12, 2011 at 9:57 PM, Nick Chalko ncha...@google.com wrote: GWT 2.4 beta include support for built in Validation take a look at http://code.google.com/p/google-web-toolkit/wiki/BeanValidation -- 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: Need suggestions on supporting both Web and Desktop front-end.
If you (or your customer) can afford writing 2 different client for the same application, then a native desktop client(be it Java, C#, or C++) is good choice. As for having your businnes code on the client(desktop). No matter which language you choose the businnes code will be on the client. So if someone really really want to crack it he will. If it s supposed to be the same application running on 2 different platforms why not simply reuse code instaed of duplicating it ? 2011/7/13 Warren Tang warren.c.t...@gmail.com The desktop application works offline (do all the job locally without ever connecting to a server). And the business code can work with or without a database. So AIR may not be the choice as I'm not so confident to compile the business code into Javascript (AIR). You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. Anyway, can't the desktop users simply use the gwt app? What limitations does it have? On Wednesday, July 13, 2011 5:54:30 AM UTC+8, Magno Machado wrote: I never used it before, but afaik requestfactory can be used from non gwt clients You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Anyway, can't the desktop users simply use the gwt app? On Tue, Jul 12, 2011 at 6:15 PM, Alain Ekambi jazzma...@googlemail.comwrote: If you want to turn you GWT applicattion into a desktop application Adobe AIR is a good option. Appcelerator Titanium is also a solid but i personally prefer AIR. 2011/7/12 Juan Pablo Gardella gardella...@gmail.com gwt4air perhaps help. 2011/7/12 Warren Tang warren...@gmail.com I need to build an application which has both a web font-end and a desktop front-end. There is a relational database. Lightweight frameworks are preferred. My previous project was done with SmartGWT + GWT + MyBatis. And it is the only java project I've done. Currently my thought is GWT + Spring + MyBatis. I also heard about SpringRoo. But the idea is quite vague for me. So could someone kindly make it clear for me? How can I use GWT + Swing/SwingRoo to support both the web and the desktop client, and reuse the business code? What else do I need? What's their roles? -- 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/-/**HF43CGyLvqQJhttps://groups.google.com/d/msg/google-web-toolkit/-/HF43CGyLvqQJ . To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://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-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- GWT API for non Java based platforms http://code.google.com/p/**gwt4air/ http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.**com/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- Magno Machado Paulo http://blog.magnomachado.com.**br http://blog.magnomachado.com.br http://code.google.com/p/**emballo/ http://code.google.com/p/emballo/ -- 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/-/aVyn-MDKq4IJ. 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 API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are
Aw: Re: Which version of javax.validation.validation-api?
I think you can use it without RequestFactory. You just have to start the validation process yourself before doing your server request. -- 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/-/CmxXol13244J. 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 detect if a Popup is showing
Any reason you don't use an enhanced for loop? for (Widget widget : RootPanel.get().getChildren()) { ... } It works because it's looping on widgets, not elements (look at the code, there's an ArrayListWidget to store the child widgets; there's no magic) -- 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/-/SdJg2pOMhxkJ. 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.
Populating ListBox's using Activities and Places
I have an application that uses the new Places and Activities methodology. In my View interfaces I have methods such as : HasValueString getSubject(); HasValueType getType(); Type is a simple POJO that has an id and name. The selections available for this is driven from the result of an RPC call. My question is where should this RPC call be placed? Should this be initiated from the Activity start method, and call a new method on the View interface setPossibleTypes(ListType list) ? Or should inject the EventBus into the View Implementation and enable the view to call and process the call ? Many thanks Craig -- 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.1+ Compiler issues
I'm not using Google Plugin for Eclipse. Its simply compiling GWT with Maven 2.1 from the command line On Jul 12, 7:44 pm, Jeff Larsen larse...@gmail.com wrote: I put this in the issue tracker, but I wrote a groovy script to delete every file in the temp directory. Feel free to adapt it to however you need. Change the first line to the correct directory however. def directory = C:\\Documents and Settings\\jlarsen\\Local Settings\\Temp //CHANGE ME deleteDirectory(directory) public void deleteDirectory(String directory){ File file = new File(directory) file.listFiles().each{ println(it.getName()) try{ deleteDirectory(directory+/+it.getName()) }catch(Exception e){ //Do nothing. If the file is blocked, we don't care. } try{ it.delete() } catch(Exception e){ println(e) //do nothing, if we can't delete the file, we don't care. } } } -- 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: Populating ListBox's using Activities and Places
One of the goal of MVP is to make your presentation logic quickly easily testable (in GWT, that means using pure JUnit rather than the sluggish GWTTestCase). As a result, you'd like to make you view as dumb as possible (without necessarily pushing everything to presenter though, as it'd lose readability and thus maintainability). So, you'd better put your RPC call in your presenter (activity). -- 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/-/keOKWYW9NPIJ. 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 settings breakpoints
There was a bug in the JDK that caused this, but that's pretty old now. If you're on a reasonably recent JDK, it won't be that. Also, make sure you are debugging your program and not simply running it. On 12/07/11 19:01, Michał Błażejczyk wrote: Hi all, I'm fairly new to GWT development. I've set up everything like the documentation says. I'm using Eclipse Indigo on Windows 7, and I have the GWT plug-in. The problem is that when I set breakpoints, the program never stops even though the execution goes through them. This happens on both the server-side and the client-side. I'm afraid I miss some stupid little configuration settings somewhere. Or have other people had the same problem? Best, Michał -- 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/-/mJOKTGWmLugJ. 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: Rich Text Area, same as in Gmail Compose Mail
Hi Paul, Probably you mentioned about this link: http://code.google.com/p/google-web- toolkit/source/browse/trunk/samples/showcase/src/com/google/gwt/sample/showcase /client/content/text/RichTextToolbar.java?r=4142 But it does not contain any button for smiley / imoticons, and no option for transliteration. How can I add these two features in a RichTextToolbar? Regards, Samik You have to edit the code in your copy of RichTextToolbar to add support for whatever buttons you want. -- 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.
serialize custom exception
Hi, I need to throw custom exception from doFilter. But it doesnt allow since it is overriden. Is it possible to serialize the exception? How to handle the serialized exception on the client side? 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: Rich Text Area, same as in Gmail Compose Mail
What about this ? http://code.google.com/p/gwt-ckeditor/ 2011/7/13 Paul Robinson ukcue...@gmail.com Hi Paul, Probably you mentioned about this link: http://code.google.com/p/** google-web- http://code.google.com/p/google-web- toolkit/source/browse/trunk/**samples/showcase/src/com/** google/gwt/sample/showcase /client/content/text/**RichTextToolbar.java?r=4142 But it does not contain any button for smiley / imoticons, and no option for transliteration. How can I add these two features in a RichTextToolbar? Regards, Samik You have to edit the code in your copy of RichTextToolbar to add support for whatever buttons you want. -- 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.comgoogle-web-toolkit@googlegroups.com . To unsubscribe from this group, send email to google-web-toolkit+** unsubscr...@googlegroups.comgoogle-web-toolkit%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- GWT API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to 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: Which version of javax.validation.validation-api?
Hi everybody, I can confirm that I am using this API without using the RequestFactory. If you have any questions, write them! Regards. 2011/7/13 Jens jens.nehlme...@gmail.com I think you can use it without RequestFactory. You just have to start the validation process yourself before doing your server request. -- 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/-/CmxXol13244J. 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. -- El precio es lo que pagas. El valor es lo que recibes. Warren Buffet -- 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 CellTable Row Height Problem
Did you solve this? I'm having the same problem. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Need suggestions on supporting both Web and Desktop front-end.
You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. As a said before, I never done that before (using RF from non-gwt clients), but Thomas confirmed that it's possible. Your app will carry the requestfactory-client.jar, I don't think you need any server localy. You will need, of course, configure the app to tell it where the RF server is located Anyway, can't the desktop users simply use the gwt app? What limitations does it have? Well, desktop apps are desktop apps. It's far easier to do things like access filesystem, external devices, etc. If you don't depend on such things, then I think your users will be ok with only the gwt frontend On Wed, Jul 13, 2011 at 5:28 AM, Alain Ekambi jazzmatad...@googlemail.comwrote: If you (or your customer) can afford writing 2 different client for the same application, then a native desktop client(be it Java, C#, or C++) is good choice. As for having your businnes code on the client(desktop). No matter which language you choose the businnes code will be on the client. So if someone really really want to crack it he will. If it s supposed to be the same application running on 2 different platforms why not simply reuse code instaed of duplicating it ? 2011/7/13 Warren Tang warren.c.t...@gmail.com The desktop application works offline (do all the job locally without ever connecting to a server). And the business code can work with or without a database. So AIR may not be the choice as I'm not so confident to compile the business code into Javascript (AIR). You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. Anyway, can't the desktop users simply use the gwt app? What limitations does it have? On Wednesday, July 13, 2011 5:54:30 AM UTC+8, Magno Machado wrote: I never used it before, but afaik requestfactory can be used from non gwt clients You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Anyway, can't the desktop users simply use the gwt app? On Tue, Jul 12, 2011 at 6:15 PM, Alain Ekambi jazzma...@googlemail.comwrote: If you want to turn you GWT applicattion into a desktop application Adobe AIR is a good option. Appcelerator Titanium is also a solid but i personally prefer AIR. 2011/7/12 Juan Pablo Gardella gardella...@gmail.com gwt4air perhaps help. 2011/7/12 Warren Tang warren...@gmail.com I need to build an application which has both a web font-end and a desktop front-end. There is a relational database. Lightweight frameworks are preferred. My previous project was done with SmartGWT + GWT + MyBatis. And it is the only java project I've done. Currently my thought is GWT + Spring + MyBatis. I also heard about SpringRoo. But the idea is quite vague for me. So could someone kindly make it clear for me? How can I use GWT + Swing/SwingRoo to support both the web and the desktop client, and reuse the business code? What else do I need? What's their roles? -- 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/-/**HF43CGyLvqQJhttps://groups.google.com/d/msg/google-web-toolkit/-/HF43CGyLvqQJ . To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://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-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://groups.google.com/group/google-web-toolkit?hl=en **. -- GWT API for non Java based platforms http://code.google.com/p/**gwt4air/ http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.**com/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group,
Catching MouseDown in custom widget's children
Hi, With GWT 2.3 I have been struggling a while with the event handling in my custom widget. I have created a custom widget by extending SimplePanel. I am aware that it is usually better to create a Composite, but I have at least one reason not to do so in this case. Please do not reply that I should use a Composite. I am trying to understand the underlying concepts. Here is code showing what I try to achieve: code package se.festivitas.gwt.portal.client.view.dock; import com.google.gwt.event.dom.client.HasMouseDownHandlers; import com.google.gwt.event.dom.client.MouseDownEvent; import com.google.gwt.event.dom.client.MouseDownHandler; import com.google.gwt.event.shared.HandlerRegistration; import com.google.gwt.user.client.DOM; import com.google.gwt.user.client.Window; import com.google.gwt.user.client.ui.FlowPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.SimplePanel; public class SimplePanelTest extends SimplePanel { class FocusFlowPanel extends FlowPanel implements HasMouseDownHandlers { @Override public HandlerRegistration addMouseDownHandler(MouseDownHandler handler) { return addDomHandler(handler, MouseDownEvent.getType()); } } public SimplePanelTest() { FocusFlowPanel ffp = new FocusFlowPanel(); Label lbl = new Label(SimplePanelTest); ffp.add(lbl); DOM.appendChild(getElement(), ffp.getElement()); lbl.addMouseDownHandler(new MouseDownHandler() { @Override public void onMouseDown(MouseDownEvent event) { Window.alert(FlowPanel Clicked!); } }); } } /code When instanciating this widget and adding it to the RootPanel, the onMouseDown never fires. Why? Is there something I missed? Adding the MouseDownHandler to the whole widget works: the onMouseDown fires. Thank you for any help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
List Receiver in RequestFactory
Hi there, Trying to make my way around GWT and request factory, I'm currently trying to receive a list of EntityProxies from the server, I am using locators and as such I might be making a mistake there somewhere. I am able to receive a single EntityProxy but when I pull through a ListEntityProxy, a list of the correct size is pulled through, but each item is the exact same object (well copies of), namely the first item repeated. Here is my Receiver code: ReceiverListEmptyObjectProxy emptyObjectReceiver = new ReceiverListEmptyObjectProxy() { @Override public void onSuccess(ListEmptyObjectProxy response) { Window.alert(response.size() + ); emptyObjectViewTable.setRowData(0, response); emptyObjectViewTable.setRowCount(response.size(), true); } }; context.getAll().fire(emptyObjectReceiver); Any help would be greatly appreciated. Regards. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: FlexTable and clickHandler depreciated?
I tested the code with GWT 2.3 and I do not get any warnings. Try a Project-Clean.. and/or Project-Build All in Eclipse. Regards, Johan On Jul 12, 11:32 pm, seven.reeds seven.re...@gmail.com wrote: Hi, gwt: 2.3.0 eclipse: 3.6.2 I must be doing something wrong. I have a FlexTable and I try to add a ClickHandler but I am told it is depreciated. FlexTable panel = new FlexTable(); SponsorrList() { initWidget(panel); panel.setStyleName(SpeakerList); panel.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { ... } }); } If I mouse over new ClickHandler eclipse suggests adding a Suppress Depreciation pragma. If I mouse over addClickHandler I see: The method addClickHandler(ClickHandler) in the type HTMLTable is not applicable for the arguments (new ClickHandler(){}) I do not understand. sr -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to use id attribute from UiBinder.
I tried to include the id attribute like this g:TextBox ui:field=username styleName=text id=userNameId/ g:TextBox But in that case the GWT is giving error. Is there any simple way to achieve this from UiBinder? 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: Populating ListBox's using Activities and Places
We use a slight various of Thomas' suggestion. We introduced a new interface / class called a Broker which we define all of our rpc calling methods in. Then be default we typically have the activity implement the Broker interface, but if need be we could have a new class implement it. We pass the Broker to the View so if the view needs access to rpc services it can call methods on the broker as need be. This still allows for the View to be stupid, but can help keep the activity code cleaner. On Jul 13, 5:44 am, Thomas Broyer t.bro...@gmail.com wrote: One of the goal of MVP is to make your presentation logic quickly easily testable (in GWT, that means using pure JUnit rather than the sluggish GWTTestCase). As a result, you'd like to make you view as dumb as possible (without necessarily pushing everything to presenter though, as it'd lose readability and thus maintainability). So, you'd better put your RPC call in your presenter (activity). -- 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: Need suggestions on supporting both Web and Desktop front-end.
Don't forget that HTML5 brings with it a lot of support for offline apps: app cache, local storage, and the filesystem API ( http://www.html5rocks.com/en/tutorials/file/filesystem/). GWT will auto-generate an app cache manifest for you via an app cache linker (see Chris Ramsdale's presentation on mobile apps with GWT from I/O this year), and GWT 2.3 offers the Local Storage API (also discussed in the same presentation). /dmc On Wed, Jul 13, 2011 at 7:33 AM, Magno Machado magn...@gmail.com wrote: You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. As a said before, I never done that before (using RF from non-gwt clients), but Thomas confirmed that it's possible. Your app will carry the requestfactory-client.jar, I don't think you need any server localy. You will need, of course, configure the app to tell it where the RF server is located Anyway, can't the desktop users simply use the gwt app? What limitations does it have? Well, desktop apps are desktop apps. It's far easier to do things like access filesystem, external devices, etc. If you don't depend on such things, then I think your users will be ok with only the gwt frontend On Wed, Jul 13, 2011 at 5:28 AM, Alain Ekambi jazzmatad...@googlemail.com wrote: If you (or your customer) can afford writing 2 different client for the same application, then a native desktop client(be it Java, C#, or C++) is good choice. As for having your businnes code on the client(desktop). No matter which language you choose the businnes code will be on the client. So if someone really really want to crack it he will. If it s supposed to be the same application running on 2 different platforms why not simply reuse code instaed of duplicating it ? 2011/7/13 Warren Tang warren.c.t...@gmail.com The desktop application works offline (do all the job locally without ever connecting to a server). And the business code can work with or without a database. So AIR may not be the choice as I'm not so confident to compile the business code into Javascript (AIR). You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. Anyway, can't the desktop users simply use the gwt app? What limitations does it have? On Wednesday, July 13, 2011 5:54:30 AM UTC+8, Magno Machado wrote: I never used it before, but afaik requestfactory can be used from non gwt clients You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Anyway, can't the desktop users simply use the gwt app? On Tue, Jul 12, 2011 at 6:15 PM, Alain Ekambi jazzma...@googlemail.com wrote: If you want to turn you GWT applicattion into a desktop application Adobe AIR is a good option. Appcelerator Titanium is also a solid but i personally prefer AIR. 2011/7/12 Juan Pablo Gardella gardella...@gmail.com gwt4air perhaps help. 2011/7/12 Warren Tang warren...@gmail.com I need to build an application which has both a web font-end and a desktop front-end. There is a relational database. Lightweight frameworks are preferred. My previous project was done with SmartGWT + GWT + MyBatis. And it is the only java project I've done. Currently my thought is GWT + Spring + MyBatis. I also heard about SpringRoo. But the idea is quite vague for me. So could someone kindly make it clear for me? How can I use GWT + Swing/SwingRoo to support both the web and the desktop client, and reuse the business code? What else do I need? What's their roles? -- 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/-/** HF43CGyLvqQJhttps://groups.google.com/d/msg/google-web-toolkit/-/HF43CGyLvqQJ . To post to this group, send email to google-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this group at http://groups.google.com/** group/google-web-toolkit?hl=enhttp://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-we...@googlegroups.com. To unsubscribe from this group, send email to google-web-tool...@** googlegroups.com. For more options, visit this
Re: Tutorial Create your first web application: application does not work in production mode.
Hi Scott, your post makes me think it might be time to retire the webAppCreator Getting Started tutorial in favor of Google Plugin for Eclipse. It used to be that webAppCreator produced custom shell scripts to start/stop the app; however, they were a pain to maintain on all platforms and the Google Plugin for Eclipse offers a better experience overall, so the only way to start the built-in Web server with the webAppCreator-generated build.xml is to run ant devmode. The way to switch from dev mode to production mode is simply to drop ?gwt.codesvr=127.0.0.1:9997 from the URL. That's the hook that invokes the dev mode plugin in the browser, and without it, you'll be running the compiled JS instead. I think it's easier to get started with GWT by working your way down the left nav in the Google Plugin for Eclipse user guide: http://code.google.com/eclipse/docs/users_guide.html Feel free to post back with anything you find confusing. /dmc On Mon, Jul 4, 2011 at 1:12 AM, sf_g...@bellsouth.net sf_g...@bellsouth.net wrote: Okay, brand new to GWT, I am starting at ground zero with the first app tutorial at http://code.google.com/webtoolkit/gettingstarted.html#create The MyWebApp runs fine in devmode (ant devmode from the MyWebApp directory. In the section labeled Compile and run in production mode , when I build the app (ant build) in the directory and then execute the html from browser. It fails, being unable to connect to server. I know Jetty is used in devmode, the error looks like it not running when executing the prod mode. Again, new to this, what do I need to do to get this simple app to work in prod mode? Scott -- 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.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: List Receiver in RequestFactory
First, check that they all have a different ID and that they don't compare equals() to each others. -- 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/-/x8Q9DFNcE2sJ. 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: List Receiver in RequestFactory
Hi Thomas, Thanks for the reply, it was the IDs, was thinking that the getId() and getVersion() needed to be implemented by the actual modifying was done automatically by the RequestFactory not that it needed to be done manually. Thanks for the help! Regards. On Jul 13, 3:12 pm, Thomas Broyer t.bro...@gmail.com wrote: First, check that they all have a different ID and that they don't compare equals() to each others. -- 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 set ListBox selection with UiBinder?
Argh! The attribute is selectedIndex, not selectedItem. On Jul 12, 7:05 pm, Thad thad.humphr...@gmail.com wrote: Just that: How do I set a ListBox's selection with UiBinder? I've tried g:ListBox g:item value='1' first /g:item g:item value='2' selected='true' second /g:item g:item value='3' third /g:item /g:ListBox but selected disappears in the final HTML. I tried g:ListBox selectedItem='1' and got an error when I tried to load the page. -- 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: Java 7
On Jul 5, 1:21 am, Magno Machado magn...@gmail.com wrote: Is there any current work on supporting java 7 syntax on gwt? Will it be available on GWT 2.4? I think this question is of general interest. But as nobody replied yet, I suppose not :( -Alex -- 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.
AbstractActivity handling and start
hey, I'm asking you guys for a best practice. Imagine the following case: - there is a class ``UserProfileActivity`` where you as user see your profile - you switch from your profile to another persons one, this causes the class ``UserProfileActivity`` to be used again - ``UserProfileActivity`` won't get a call to ``start`` again, cause the ActivityManager knows this is the same instance again. But it needs a notification to reload its data for another user... Problem: for the ``ActivityManager`` this is the same thing, for the user/context/content its not. I see two solutions so far, but I'm not that much convinced of any. Maybe there is one much better ;) - any activity must be handled as a unique instance - no singletons - we apply a custom interface that triggers some kind of ``reloadData`` method. Anyone has two cents left ;) andi -- 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: Mac + Google Maps 1.1 Library + Google Web Toolkit 2.2.0 SDK Bundle for Eclipse 3.5
Alberto sturialby88@... writes: Hi Can you tell me how you solved it? I am facing exactly the same problem too. Did you simply recompile using an older-then-2.2.0 earlier version? Thanks, Soe -- 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: Java 7
Well, GWT uses Eclipse's JDT (a patched version AFAIK), so it would first have to be updated to a version that supports Java 7, and then GWT code updated to support the changes (such as mapping switch on strings to the same switch on strings construct in JavaScript). …but Eclipse's JDT support for Java7 is still in beta, so… See http://wiki.eclipse.org/JDT/Eclipse_Java_7_Support_(BETA) and http://wiki.eclipse.org/JDT_Core/Java7 Also, GWT added support for Java 5 when Java 1.4 reached EOL, and Java 6 was already released, and GWT does not officially support Java 6 (that's going to change, and a few features are already there, such as @Override on implementations of interface methods, and String#isEmpty); let's hope it'll be faster for Java 7, but don't be too impatient IMO. -- 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/-/7Cg33qsKa0gJ. 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: Mac + Google Maps 1.1 Library + Google Web Toolkit 2.2.0 SDK Bundle for Eclipse 3.5
If you are using a Pre 2.2 version of GWT, you need to use the released version. If you are using 2.2 or later version of GWT, use the release candidate. On Wed, Jul 13, 2011 at 9:44 AM, Soe soeto...@gmail.com wrote: Alberto sturialby88@... writes: Hi Can you tell me how you solved it? I am facing exactly the same problem too. Did you simply recompile using an older-then-2.2.0 earlier version? Thanks, Soe -- 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. -- Eric Ayers | Software Engineer | zun...@google.com | +1 404 487 9229 -- 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: FlexTable and clickHandler depreciated?
Thank you, thank you! I found the issue with Project-Clean! I had not used that before. The real issue was that when I was typing the addClickHandler line Eclipse underlined the ClickHandler portion and offered me the option to include one of several headers for ClickHandler. I picked one for the ...gen2... family by mistake. The Clean option then pointed this out. On Jul 12, 5:54 pm, Johan Natt och Dag johan.nattoch...@gmail.com wrote: I tested the code with GWT 2.3 and I do not get any warnings. Try a Project-Clean.. and/or Project-Build All in Eclipse. Regards, Johan -- 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: AbstractActivity handling and start
In general its better to not use singleton activities because the browser can not garbage collect them if they are not needed anymore (not active) and you always have clean new instances. So I would change the UserProfileActivity to a non singleton. If you really do not want that (maybe the UserProfileActivity loads a large number of static data that you do not want to reload every time a user navigates between user profiles) then you have to define a method like setPlace(newPlace) and call it in your ActivityMapper before returning your singleton/cached instance. Alternatively you can implement PlaceChangeHandler in your activity and listen for UserProfilePlace changes and then update the internal state of the activity. Personally I implement PlaceChangeHandler because its more like an opt-in approach (If you have not many singleton/cached activities). -- 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/-/7EO3b_UbyRcJ. 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.
TimeZoneInfo, how to use it or build a new one?
I have been searching hi and lo to find some information/answers to my problem: I need to report the clients timezone in my app and I don't want to show it as UTC+2 or such like. And I also need it to pass it to my web server for session specific information/convertions. So I need some format/info that the Java-servlet can use to convert it to the appr java.util.TimeZone the client runs in. The TimeZoneInfo class docs says The relevant strings of JSON can be found in TimeZoneConstants, or versions localized for non-en locales can be downloaded elsewhere. Can anyone point me to such an elsewhere, were I can find the necessary localized TimeZone info for, let's say, the german locale? Or, failing that, what is the format of json String that I need to provide to buildTimeZoneData()? -- 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.
Tr.lời: HTMLPanel Mouseover events
You can use FocusPanel to wrap your HTMLPanel. See: http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/FocusPanel.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/-/mBDpf2r9FjsJ. 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: AbstractActivity handling and start
ok, thanks for your responses. usually we don't have the activities bound as singleton explicitly, but as we saw now, they're injected into the ``MasterPanelAcitivityMapper`` via constructor arguments, which makes it de-facto to singletons ;) we also thought about inheriting ``AbstractActivity`` and implement some ``reload`` method via ``PlaceChangeEvent.Handler``, but I don't like to build stuff that is usually not GWT managed. so I think we'll try building activityproviders and see how this works without singleton behavior. best, andi On 13 Jul., 16:06, Jens jens.nehlme...@gmail.com wrote: In general its better to not use singleton activities because the browser can not garbage collect them if they are not needed anymore (not active) and you always have clean new instances. So I would change the UserProfileActivity to a non singleton. If you really do not want that (maybe the UserProfileActivity loads a large number of static data that you do not want to reload every time a user navigates between user profiles) then you have to define a method like setPlace(newPlace) and call it in your ActivityMapper before returning your singleton/cached instance. Alternatively you can implement PlaceChangeHandler in your activity and listen for UserProfilePlace changes and then update the internal state of the activity. Personally I implement PlaceChangeHandler because its more like an opt-in approach (If you have not many singleton/cached activities). -- 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-*.jar libs in GWT 2.4
Hi Alex, The requestfactory jars in 2.4 are much smaller than gwt-servlet and are provided for the convenience of those using only RF for server communication. Validation will not be bundled with RF jars. You must continue to obtain validation from gwt-servlet-deps and/or validation-api + hibernate-validator jars. /dmc On Wed, Jul 13, 2011 at 10:55 AM, Alexander Orlov alexander.or...@loxal.net wrote: I've build GWT 2.4... There are several requestfactory-*.jars in the lib folder. Are those libs going to replace/consolidate any other GWT libs in the coming release? Currently I've to use hibernate-validator to be able to use RF functionality. Are any of the rf-*.jars going to replace the hibernate- validator lib? Actually I'm not using any hibernate functionality at all; I'm using JPA2. However currently I've to provide the hibernate- validator at runtime to satisfy RF's needs. -Alex -- 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.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.
R: Re: Re: Can't install Google Web Toolkit Developer Plugin under Chrome
Hi Chris, I turned off the firewall to avoid any conflict, and also added my ip address, something like 26.2, and the loopback ip address to the GWT Developer option page, but Chrome still asks for installing the Google Web Toolkit Developer Plugin. -- 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/-/lWxoddzvKMcJ. 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.
Integrating datejs
Battling with timezones in my app I come across the datejs project (datejs.com). Is anybody out there who can help me integrating this stuff in my GWT (2.3.0) project? I followed the Getting started examples but executing anything described therein results in errors like undefined in Firebug. (Yes, I loaded date.js from SVN). Any help/hints greatly appreciated -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Please help - GWT Designer / UiBinder bug or clueless new user?
I posted this issue before but didn't get any help so trying again... Using GWT Designer, when looking at a UiBinder *.ui.xml file in the Design tab, the setStyle property doesn't appear in the Properties window. Shouldn't the property be there? The docs seem to indicate that it should be. Thanks Chuck -- 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: HTMLPanel Mouseover events
I guess GWT Designer doesn't support it, but you actually bind any event you like to any widget using Widget#addDomHandler. -- 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/-/WlPV1I6pFvYJ. 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-*.jar libs in GWT 2.4
Actually, hibernate-validator (or any other JSR303 validator) is not required. If you don't have a JSR 303 validator in classpath, you'll have an info message printed to your log at startup and that's all, it'll work OK (my unit tests are green despite the absence of hibernate-validator FWIW). And you can easily turn the warning off if it bothers you, as it's using java.util.logging. -- 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/-/qwYENAR0qjgJ. 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: Populating ListBox's using Activities and Places
I'm stumped on how dumb I can make a particular view. Maybe this is another thread, but I have a view with two FormPanels, each FormPanel holding a FileUpload. In my onSubmitCompleteHandlers, I'd like the view to respond, in once case by calling an RPC function. How do I get all this into my presenter/Activity? Can I still use UiBinder? On Jul 13, 5:44 am, Thomas Broyer t.bro...@gmail.com wrote: One of the goal of MVP is to make your presentation logic quickly easily testable (in GWT, that means using pure JUnit rather than the sluggish GWTTestCase). As a result, you'd like to make you view as dumb as possible (without necessarily pushing everything to presenter though, as it'd lose readability and thus maintainability). So, you'd better put your RPC call in your presenter (activity). -- 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 Spring MVC implementation
Hi, I am trying to use GWT in my existing Spring Web MVC project. I am having 2 problems: a) I am using Maven. When GWT code is compiled, the compiled files (including browser permutations html files and File.nocache.js) will be generated in the root of application war. I want it to be created in /WEB-INF/views directory. How can this be done? b) I want the .html files generated by GWT compiler to be generated with some another extension say .htm How can this be done? Cheers -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
dispatch request from one RemoteServiceServlet to another
Hello i am using GWT RPC with Spring. when i process the GWT RemoteService service RPC.invokeAndEncodeResponse creates RemoteServiceServlet separate than the RemoteServiceServlet used by Spring. the result is a null value for getThreadLocalRequest() in GWT RemoteServiceServlet. My question is how can i dispatch Spring RemoteServiceServlet to the GWT RemoteServiceServlet to pass servlet request and response up to GWT??? public class GwtRpcController extends RemoteServiceServlet implements Controller, ServletContextAware { private RemoteService remoteService; private ServletContext servletContext; private Class remoteServiceClass; public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { super.doPost(request, response); return null; } @Override public String processCall(String payload) throws SerializationException { try { RPCRequest rpcRequest = RPC.decodeRequest(payload, this.remoteServiceClass); // delegate work to the spring injected service String response = RPC.invokeAndEncodeResponse(this.remoteService, rpcRequest.getMethod(), rpcRequest.getParameters()); return response; } catch (IncompatibleRemoteServiceException ex) { getServletContext() .log( An IncompatibleRemoteServiceException was thrown while processing this call., ex); return RPC.encodeResponseForFailure(null, ex); } } @Override public ServletContext getServletContext() { return servletContext; } public void setRemoteService(RemoteService remoteService) { this.remoteService = remoteService; this.remoteServiceClass = this.remoteService.getClass(); } @Override public void setServletContext(ServletContext servletContext) { this.servletContext = servletContext; } } 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: Integrating datejs
Are you using $wnd.Date to access the enhanced Date object? Also, how are you loading the date.js script in your app? See http://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI.html (if you haven't already) FYI, searching for datejs gwt on Google leads to http://code.google.com/p/kiyaa/wiki/Modules which already provides a GWT wrapper for DateJS. -- 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/-/UeidMDPr5dIJ. 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-*.jar libs in GWT 2.4
Minor clarification: a validation impl like hibernate-validator is not required except for some configurations of Spring, in which case the presence of validation-api without a corresponding impl will cause server startup to fail. IIRC, that's why we had to unbundle validation-api from gwt-servlet. On Wed, Jul 13, 2011 at 11:15 AM, Thomas Broyer t.bro...@gmail.com wrote: Actually, hibernate-validator (or any other JSR303 validator) is not required. If you don't have a JSR 303 validator in classpath, you'll have an info message printed to your log at startup and that's all, it'll work OK (my unit tests are green despite the absence of hibernate-validator FWIW). And you can easily turn the warning off if it bothers you, as it's using java.util.logging. -- 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/-/qwYENAR0qjgJ. 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.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: requestfactory-*.jar libs in GWT 2.4
On Wednesday, July 13, 2011 5:28:34 PM UTC+2, David Chandler (Google) wrote: Minor clarification: a validation impl like hibernate-validator is not required except for some configurations of Spring, in which case the presence of validation-api without a corresponding impl will cause server startup to fail. OK, so Spring is worse that I'd imagined ;-) IIRC, that's why we had to unbundle validation-api from gwt-servlet. Oh, I thought it was because of Maven, and overall dependency management (where you'd then have, for instance, to exclude the validation-api dependency from hibernate-validator because the lcasses are already in gwt-servlet or live with potential conflicts if validation-api is updated to 1.1 or 2.0 but the 1.0 version bundled in gwt-servlet would be used because it comes first in the classpath –i.e. gwt-servlet defeating version conflict resolution of Maven, and possibility leading to breakages of third-party libs that depend on a newer version). -- 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/-/uF0MENLpcRoJ. 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.
Playing MP3 and AVI in GWT application
What is the best way to support playing MP3(audio) and AVI (video) files in a GWT application. We have gone a long way into developing our application on top of GWT and now we have a requirement to support playing mp3 and avi files. However I can't find a widget or player that I can use with GWT to support both of these formats. Has anyone used this functionality in your application and how? What is the best practice ? -- 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-*.jar libs in GWT 2.4
On Wed, Jul 13, 2011 at 11:41 AM, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, July 13, 2011 5:28:34 PM UTC+2, David Chandler (Google) wrote: Minor clarification: a validation impl like hibernate-validator is not required except for some configurations of Spring, in which case the presence of validation-api without a corresponding impl will cause server startup to fail. OK, so Spring is worse that I'd imagined ;-) IIRC, that's why we had to unbundle validation-api from gwt-servlet. Oh, I thought it was because of Maven, and overall dependency management (where you'd then have, for instance, to exclude the validation-api dependency from hibernate-validator because the lcasses are already in gwt-servlet or live with potential conflicts if validation-api is updated to 1.1 or 2.0 but the 1.0 version bundled in gwt-servlet would be used because it comes first in the classpath –i.e. gwt-servlet defeating version conflict resolution of Maven, and possibility leading to breakages of third-party libs that depend on a newer version). Yes, it was definitely about Maven. Folks using Maven with Spring were unlucky enough to spot the problem first. -- 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/-/uF0MENLpcRoJ. 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.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: Playing MP3 and AVI in GWT application
HTML5 to the rescue... http://www.slideshare.net/turbomanage/gwt-plus-html-5 http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/media/client/Audio.html http://google-web-toolkit.googlecode.com/svn/javadoc/2.3/com/google/gwt/media/client/Video.html The APIs are changing slightly in GWT 2.4 to enable you to more easily specify multiple formats. /dmc On Wed, Jul 13, 2011 at 12:10 PM, shahid shahidza...@gmail.com wrote: What is the best way to support playing MP3(audio) and AVI (video) files in a GWT application. We have gone a long way into developing our application on top of GWT and now we have a requirement to support playing mp3 and avi files. However I can't find a widget or player that I can use with GWT to support both of these formats. Has anyone used this functionality in your application and how? What is the best practice ? -- 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, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.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: requestfactory-*.jar libs in GWT 2.4
On Jul 13, 5:04 pm, David Chandler drfibona...@google.com wrote: The requestfactory jars in 2.4 are much smaller than gwt-servlet and are provided for the convenience of those using only RF for server communication. Validation will not be bundled with RF jars. You must continue to obtain validation from gwt-servlet-deps and/or validation-api + hibernate-validator jars. Thx for this info! Finally I've replaced the gwt-servlet 5MB monster with rf-server (-4,5MB in runtime scope!) and assigned the provided scope to gwt- servlet-deps. -Alex -- 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: Java 7
Also, GWT added support for Java 5 when Java 1.4 reached EOL, and Java 6 was already released, and GWT does not officially support Java 6 (that's going to change, and a few features are already there, such as @Override on implementations of interface methods, and String#isEmpty); let's hope it'll be faster for Java 7, but don't be too impatient IMO. Are you sure this is true? I thought 1.6 is supported as of 2.3, but not required. 1.6 will be required in future releases of GWT however (it may be required for 2.3, i'm not sure) but I know commits to trunk are going in with @Override on interface methods, so in order to get stuff to compile 1.6 will be required. -- 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/-/Laj9dlhZOe8J. 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: R: Re: Re: Can't install Google Web Toolkit Developer Plugin under Chrome
You may want to try the offline installation Firefox - https://dl.google.com/dl/gwt/plugins/firefox/gwt-dev-plugin.xpi Chrome - https://dl.google.com/dl/gwt/plugins/chrome/gwt-dev-plugin.crx Safari - https://dl.google.com/dl/gwt/plugins/safari/gwt-dev-plugin.dmg -- 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/-/mscUYIFIjwoJ. 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-*.jar libs in GWT 2.4
On Jul 13, 5:41 pm, Thomas Broyer t.bro...@gmail.com wrote: On Wednesday, July 13, 2011 5:28:34 PM UTC+2, David Chandler (Google) wrote: Minor clarification: a validation impl like hibernate-validator is not required except for some configurations of Spring, in which case the presence of validation-api without a corresponding impl will cause server startup to fail. OK, so Spring is worse that I'd imagined ;-) Don't use Spring either :) Thx to your hint I could streamline my pom.xml: I've removed the hibernate-validator; the Unable to initialize a JSR 303 Bean Validator 'error message' actually doesn't matter at all. Since I could remove hibernate-validator, I could also remove slf4j-log4j12 which was required by hibernate-validator. Also I've removed the validation-api although its sources are still required at runtime(?). -Alex -- 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: Java 7
GWT requiring a Java6 JVM is different from officially supporting Java 6 language features in what the GWT Compiler accepts as input ;-) (I believe Java 6 is supported –as I said, at least some features already are, for quite some time, and I've almost always been using Java 6 compliance level in Eclipse without any issue–, what I don't know is whether we can call it official support for Java 6 –a couple features might not be enough for that claim, or maybe they are?–) -- 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/-/3RqkCd6MYPIJ. 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 + collectios
Hi Dev guides say that RF supported collection types are Set and List Is there a way to get around RF this limitation? What do you do if an entity contains a map? 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.
java.lang.Character emulation
What's the best way to implement isWhitespace(char c)? It's not included in the GWT emulation. I read an earlier post that advises writing a java regex but is this really sensible? It gets a bit too involved and you need an emulation of CharBuffer since that's all native code. Isn't it better to provide a js implementation like this? public static native boolean isWhitespace(char c) /*-{ return /\s/.test(c); }-*/; Also, there is a huge TODO in the Character emulation code which talks about deferred binding and Unicode database (eek), I wonder if some of the missing emulation couldn't be provided by taking a more simplistic approach along the lines above? -- 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 + collectios
On Wednesday, July 13, 2011 7:48:27 PM UTC+2, frog wrote: Hi Dev guides say that RF supported collection types are Set and List Is there a way to get around RF this limitation? What do you do if an entity contains a map? Send a List of pairs (make a ValueProxy for that) instead, representing the Map#entrySet() (I've seen bugs reported about Sets of proxies, so you'd better use a List). Map will be supported in due time, as it's already supported at the AutoBean level AFAIK. …or you could contribute the Map support if you really need it and would better spend time building it than working around it ;-) -- 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/-/-JizIZq_GWgJ. 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.
Many problems with designer LoginManager tutorial
I'm trying to follow this tutorial: http://code.google.com/webtoolkit/tools/gwtdesigner/tutorials/loginmanager.html I'm a real Java newbie, and perhaps some of the following confusion is due to that. 1. 1. Set the path to the GWT installation directory. - It doesn't tell my which level of the directory tree I should point at. Perhaps I guessed right. 2. 3. Create the Login Composite. - What in the heck is a Composite? I couldn't find the illustrated menu pick. I made a wild guess that what I wanted was a UiBinder. What's a UiBinder? 3. Add the following widgets to the FlexTable and arrange it as follows: - The FlexTable refuses to take any widgets. What's this all about? I finally used two HorizontalPanels to group the labels and text boxes, but it doesn't look right. 4. Add a TextBox next to the Username and change the variable property to textBoxUsername. - There is no variable property. Is name the right property? 5. 4. Create and apply CSS styles Let's create a CSS style for the Label widgets. Click on the CSS toolbar item to open the CSS Style Editor. - Where in the heck is the CSS toolbar icon? OK, I can ignore styles for now... 6. 5. Add Event Handlers First, let's convert the text boxes from local to field variables. Switch to Design mode, select the Username text box and click the Convert local to field button from the properties pane. Do the same with the Password text box. - The pictured icon is grayed out, and the balloon says Conversion is not supported. And when I try the code that follows, Eclipse claims the text boxes are undefined. At this point I gave up and started typing here... Windows 7 Pro 64-bit Eclipse SDK 3.7.0.I20110613-1736org.eclipse.sdk.ide null Google App Engine Java SDK 1.5.1 1.5.1.r37v201106211634 com.google.appengine.eclipse.sdkbundle.e37.feature.feature.group Google, Inc. Google Plugin for Eclipse 3.7 2.3.2.r37v201106211634 com.google.gdt.eclipse.suite.e37.feature.feature.group Google, Inc. Google Web Toolkit SDK 2.3.0 2.3.0.r37v201106211634 com.google.gwt.eclipse.sdkbundle.e37.feature.feature.group Google, Inc. GWT Designer 2.3.2.r37x201106201114 com.google.gdt.eclipse.designer.feature.feature.group Google, Inc. -- 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: Designer Problem : « uibinder template should be in client package »
try to move package1.gwt.xml into package1, package2.gwt.xml into package2. i have this kind of issue too, keeping this helps: package client server shared module.gwt.xml On Wed, Jul 13, 2011 at 8:29 AM, cruser crusercru...@gmail.com wrote: Thanks Kojo, I had a look there and all the source is included. :( Here is a basic package layout, perhaps there is something wrong : src-- | topPackage | package1 | client server package2 | client | widget | timewidget | TimeView.java TimeView.ui.xml server public | images(folder) package1.css package2.css package1.gwt.xml package2.gwt.xml ...(referenced libraries and war directory etc) In this example layout the TimeView.ui.xml gives the error uibinder template should be in client package. Is there anything you can spot is wrong with the package layout? Is there anything that says there can be only one client package? When running the project everything works fine, I just can't use the designer -- 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/-/rfkZElLh7-IJ. 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: java.lang.Character emulation
Looks reasonable, but the GWT team will want to probe this at the margins (is it consistent with Java? does it need to be?). FWIW, the open issue for this is: http://code.google.com/p/google-web-toolkit/issues/detail?id=1983 Definitions of isWhitespace(): http://en.wikipedia.org/wiki/Whitespace_character#Unicode http://download.java.net/jdk7/docs/api/java/lang/Character.html#isWhitespace(char) http://download.java.net/jdk7/docs/api/java/lang/Character.html#isWhitespace(int) http://blog.stevenlevithan.com/archives/javascript-regex-and-unicode On Jul 13, 10:54 am, AdrianBlakey adrianbla...@gmail.com wrote: What's the best way to implement isWhitespace(char c)? It's not included in the GWT emulation. I read an earlier post that advises writing a java regex but is this really sensible? It gets a bit too involved and you need an emulation of CharBuffer since that's all native code. Isn't it better to provide a js implementation like this? public static native boolean isWhitespace(char c) /*-{ return /\s/.test(c); }-*/; Also, there is a huge TODO in the Character emulation code which talks about deferred binding and Unicode database (eek), I wonder if some of the missing emulation couldn't be provided by taking a more simplistic approach along the lines above? -- 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: GPE Support for m2e 1.0
Hi Mike, Sorry for the late reply. To begin you can try/take a look at: https://github.com/cheleb/m2eclipse-wtp-gdt Here is a first attempt (from Fred Bricon and I) to support GWT / m2e for indigo / m2e 1.0 I guess that google will soon support m2e out of the box (the current GEP depends on org.sonatype.m2eclipse :-/ ). This plugin support: * GWT SDK configuration (Change settings to ignore missing SDK). * I18N bundle (code generation). HIH On 29 juin, 00:03, youngm you...@gmail.com wrote: Thanks for the response David. Is there any way you can better qualify what you mean by a while before we're able to support that? The thread you referenced talked about the m2e Discovery stuff. You're not required to make your configurer available through that service if that is an issue. You can bundle the configurer with GPE like you have before. The Indigo release of our internal eclipse distro is somewhat stalled with this feature missing. If this feature may be coming in a month or sooner we may delay release of our internal distro for this feature. If you're thinking several (2+ months) before m2e 1.0 support then we'd probably need to internally develop a way to work around this for now. Thanks, Mike On Jun 28, 9:41 am, David Chandler drfibona...@google.com wrote: Thomas, are you sure you're using m2e 1.0 (not 0.12x)? According to this thread, m2e core is now released from Eclipse and it will be a while before we're able to support that. But yes, 0.12 with m2extras works for me also in Indigo. http://dev.eclipse.org/mhonarc/lists/m2e-users/msg00754.html /dmc On Tue, Jun 28, 2011 at 4:31 AM, Thomas Broyer t.bro...@gmail.com wrote: Works for me… -- 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/-/jkdrp2GXJQYJ. 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: java.lang.Character emulation
In order successfully translate into js and not cause gwtc to throw, the method signature has to be exactly the same - therefore the native code needs to be put in a private method that is called from isWhitespace. On Jul 13, 10:54 am, AdrianBlakey adrianbla...@gmail.com wrote: What's the best way to implement isWhitespace(char c)? It's not included in the GWT emulation. I read an earlier post that advises writing a java regex but is this really sensible? It gets a bit too involved and you need an emulation of CharBuffer since that's all native code. Isn't it better to provide a js implementation like this? public static native boolean isWhitespace(char c) /*-{ return /\s/.test(c); }-*/; Also, there is a huge TODO in the Character emulation code which talks about deferred binding and Unicode database (eek), I wonder if some of the missing emulation couldn't be provided by taking a more simplistic approach along the lines above? -- 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.
ConditionalProperties
Hi, Is this working already? http://code.google.com/p/google-web-toolkit/wiki/ConditionalProperties define-property name=mobile.user.agent values=android, iphone, not_mobile / property-provider name=mobile.user.agent![CDATA[ { var ua = window.navigator.userAgent.toLowerCase(); if (ua.indexOf('android') != -1) { return 'android'; } if (ua.indexOf('iphone') != -1) { return 'iphone'; } return 'not_mobile'; } ]]/property-provider !-- Constrain the value for non-webkit browsers -- set-property name=mobile.user.agent value=not_mobile none !-- Actually means NOR, in this case not safari -- when-property-is name=user.agent value=safari / /none /set-property I made a small project example but when I compile it I get only 6 permutations, when I should get 8? (5 other browsers + (safari * mobile.user.agent))? the documentation says that this example should generate 9 permutations... I am testing with gwt trunk compiled yesterday. What am I doing wrong? Thanks in advnc -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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.
java.lang.Object emulation - clone
I added methods for clone and array clone as described in another thread, to google.gwt.emul.java.lang and replaced them in gwt- user.jar. I now get the following gwtc errors at the point where clone is encountered in my java code - Resolving com.google.gwt.cell.client.FieldUpdater Found type 'com.google.gwt.cell.client.FieldUpdater' [ERROR] Unable to resolve class java/lang/Object [ERROR] Unable to resolve class java/lang/Object [ERROR] Unable to resolve class java/lang/Object Resolving com.google.gwt.cell.client.ValueUpdater Found type 'com.google.gwt.cell.client.ValueUpdater' [ERROR] Unable to resolve class java/lang/Object [ERROR] Unable to resolve class java/lang/Object Resolving com.google.gwt.core.client.Duration Found type 'com.google.gwt.core.client.Duration' [WARN] Unable to resolve supertype java/lang/Object Resolving com.google.gwt.core.client.GwtScriptOnly Found type 'com.google.gwt.core.client.GwtScriptOnly' [WARN] Unable to resolve interface java/lang/annotation/ Annotation Resolving com.google.gwt.core.client.Scheduler Found type 'com.google.gwt.core.client.Scheduler' [WARN] Unable to resolve supertype java/lang/Object ... many many more ... Any ideas what is going on? Methods are like this: protected native Object clone() throws CloneNotSupportedException /*- { var r = {}; // prevents use of same hash code @com.google.gwt.core.client.impl.Impl::getHashCode(Ljava/lang/ Object;)(r); var o = this; for(var i in o) { if(!(i in r)) { r[i] = o[i]; } } return r; }-*/; @SuppressWarnings(unchecked) public static T T[] clone(T[] array) { return (T[]) Arrays.asList(array).toArray(); } -- 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.
Complex Panel
I am trying a build a panel which can take text , widgets anything . This is what I am trying to do As the user types in a Text , check the text and if necessary build a widget . Example : if user types in USA, inside the panel i want to replace the word USA with Image of USa flag or a GWT grid of possible states in US . then User again continue typing the text , Again if a new word the user has typed if i detect the right word in my map of words replace the word with some image or grid or panel . I started with a flow panel but dont know how to do key up on flow panels . -- 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 detect if a Popup is showing
getChildren() doesn't exist (in GWT 2.2.0). However, I could have used RootPanel.get().iterator(). I would have thought when GWT compiled the widgets, they would turn into a div or something similar, and their type would be lost, however, I'm clearly wrong, as it works a treat! -- 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/-/sHlXpT7NcAYJ. 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 detect if a Popup is showing
Sorry, getChildren() does exist, however, it's a protected method. -- 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/-/EJo_4b9Lj6oJ. 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 detect if a Popup is showing
Oh right, sorry, missed the 'protected' keyword in the javadoc. Note however that HasWidgets extends IterableWidget (hence the existence of RootPanel.get().iterator()) so you could write for (Widget w : RootPanel.get()) { ... } (not sure I like it 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/-/4-_n8g-6KCgJ. 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: Need suggestions on supporting both Web and Desktop front-end.
I'll definitely check the Google IO videos. But I assume the new HTML5 features won't work in legacy browsers like IE6? Anyway I don't think it can help me. The desktop application is offline (for a single user), but it should be able to execute *real* java code (not only javascript). I got the idea of embedding a local web server and the running my GWT application inside it from IRC. Should I just go Swing as apposed to an offline GWT application (meaning locally online with an embedded web server in JRE)? Swing should do but the later could be much easier. I just don't know the difficulties of deploying such a GWT application running on an embedded web server. The end users is unskilled so the installation process should be as easy as possible. Are there any guides or should I try it out myself? On 7/13/2011 8:27 PM, David Chandler wrote: Don't forget that HTML5 brings with it a lot of support for offline apps: app cache, local storage, and the filesystem API (http://www.html5rocks.com/en/tutorials/file/filesystem/). GWT will auto-generate an app cache manifest for you via an app cache linker (see Chris Ramsdale's presentation on mobile apps with GWT from I/O this year), and GWT 2.3 offers the Local Storage API (also discussed in the same presentation). /dmc On Wed, Jul 13, 2011 at 7:33 AM, Magno Machado magn...@gmail.com mailto:magn...@gmail.com wrote: You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. As a said before, I never done that before (using RF from non-gwt clients), but Thomas confirmed that it's possible. Your app will carry the requestfactory-client.jar, I don't think you need any server localy. You will need, of course, configure the app to tell it where the RF server is located Anyway, can't the desktop users simply use the gwt app? What limitations does it have? Well, desktop apps are desktop apps. It's far easier to do things like access filesystem, external devices, etc. If you don't depend on such things, then I think your users will be ok with only the gwt frontend On Wed, Jul 13, 2011 at 5:28 AM, Alain Ekambi jazzmatad...@googlemail.com mailto:jazzmatad...@googlemail.com wrote: If you (or your customer) can afford writing 2 different client for the same application, then a native desktop client(be it Java, C#, or C++) is good choice. As for having your businnes code on the client(desktop). No matter which language you choose the businnes code will be on the client. So if someone really really want to crack it he will. If it s supposed to be the same application running on 2 different platforms why not simply reuse code instaed of duplicating it ? 2011/7/13 Warren Tang warren.c.t...@gmail.com mailto:warren.c.t...@gmail.com The desktop application works offline (do all the job locally without ever connecting to a server). And the business code can work with or without a database. So AIR may not be the choice as I'm not so confident to compile the business code into Javascript (AIR). You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Does your suggestion still applies? The desktop application should be easy to install and do not need to configure any servers locally. I'm relative now to Java, so I'd be really grateful if you could elaborate. Anyway, can't the desktop users simply use the gwt app? What limitations does it have? On Wednesday, July 13, 2011 5:54:30 AM UTC+8, Magno Machado wrote: I never used it before, but afaik requestfactory can be used from non gwt clients You could write your backend in java exposing services through requestfactory and consume them from the gwt and swing frontend Anyway, can't the desktop users simply use the gwt app? On Tue, Jul 12, 2011 at 6:15 PM, Alain Ekambi jazzma...@googlemail.com wrote: If you want to turn you GWT applicattion into a desktop application Adobe AIR is a good option. Appcelerator Titanium is also a solid but i personally prefer AIR. 2011/7/12 Juan Pablo Gardella gardella...@gmail.com gwt4air perhaps help.
RequestFactory several locators for a domain object
I want to be able to use different locators for the same domain object. I use Twig and it has an option to load an object fully or partially. When I run the lite request, the wrong locator (TwigLocator) is used instead of TwigLiteLocator. My current implementation is: Proxies @ProxyFor(value = MyDomain.class, locator = TwigLocator.class) public interface MyDomainProxy extends EntityProxy {} @ProxyFor(value = MyDomain.class, locator = TwigLiteLocator.class) public interface MyDomainLiteProxy extends EntityProxy {} Request @Service(value = MyDao.class, locator = DaoServiceLocator.class) public interface MyRequest extends RequestContext { RequestListMyDomainProxy fetchRange(Integer start, Integer length); RequestInteger getCount(); RequestListMyDomainLiteProxy fetchRangeLite(Integer start, Integer length); } DAO public ListMyDomain fetchRange(Integer start, Integer length) { ... } public ListMyDomain fetchRangeLite(Integer start, Integer length) { ... } -- 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/-/QsOW5kNGwo4J. 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: Need suggestions on supporting both Web and Desktop front-end.
I have done this. I embedded GWT inside a Jetty server and ran it on the users PC. It all launches from a JNLP file. You can check it out if you like http://simplevnc.appspot.com/ (still very much in beta, but shows you downloading and running a GWT web server). BTW: Most companies I know of are trying to get away from using Swing. -- 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/-/K3voFLk4b6oJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to run development mode on a separate web server
Hello, I'm running a tomcat web server with spring-framework installed. How can I run GWT development mode on a separate web server??. I also followed the instruction from the GWT website but still could not figure out how. Any help will be appreciated. Thank you -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
Serialization Exception
We're coming up with a SerializationException for an RPC call DTO that we can't seem to resolve. Essentially, I've added an instance of a class that extends ArrayListVStruct (where VStruct is a Serializable class) and contains one Serializable field. Does someone know what our problem might be? If not, are there tips on how to debug /. troubleshoot these SerializationException problems? -- 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: Need suggestions on supporting both Web and Desktop front-end.
What do you mean with run real java code ? 2011/7/14 Craig Mitchell craig...@gmail.com I have done this. I embedded GWT inside a Jetty server and ran it on the users PC. It all launches from a JNLP file. You can check it out if you like http://simplevnc.appspot.com/ (still very much in beta, but shows you downloading and running a GWT web server). BTW: Most companies I know of are trying to get away from using Swing. -- 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/-/K3voFLk4b6oJ. 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 API for non Java based platforms http://code.google.com/p/gwt4air/ http://www.gwt4air.appspot.com/ -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Integrating datejs
On 13 Jul., 17:22, Thomas Broyer t.bro...@gmail.com wrote: Are you using $wnd.Date to access the enhanced Date object? yes, I found this valuable hint in one of your posts! Right now I'm trying the examples mentioned in Getting started and even they don't work. Also, how are you loading the date.js script in your app? I have added the loading in my initial .html File. There I evaluate the locale and then load the corresponding date-XXX.js File: document.write(script type=\text/javascript\ src=\'dates/ core.js\'/script) document.write(script type=\text/javascript\ src=\'dates/ date- + locale.replace(_, -, g) + .js\'/script) document.write(script type=\text/javascript\ src=\'dates/ extras.js\'/script) In Firebug I can see that the correct datejs files are loaded successfully so the stuff should be available Seehttp://code.google.com/webtoolkit/doc/latest/DevGuideCodingBasicsJSNI...(if you haven't already) check, done that, been there, ... FYI, searching for datejs gwt on Google leads tohttp://code.google.com/p/kiyaa/wiki/Moduleswhich already provides a GWT wrapper for DateJS. I had seen this but didn't have a closer look what it is. I'll check it out... -- 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] [google-web-toolkit] r10448 committed - tag the 2.4-rc1 release
Revision: 10448 Author: mrruss...@google.com Date: Wed Jul 13 08:21:48 2011 Log: tag the 2.4-rc1 release http://code.google.com/p/google-web-toolkit/source/detail?r=10448 Added: /tags/2.4.0-rc1/2.4 -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add StringKey to gwt-servlet.jar to support RequestFactory users. (issue1479802)
LGTM http://gwt-code-reviews.appspot.com/1479802/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Performance improvements for ElementBuilder. (issue1477801)
LGTM Thanks for this, John . There is still a ~10% perf regression, even after this. I'll keep on removing checks to see how much faster we can get. http://gwt-code-reviews.appspot.com/1477801/diff/1/user/src/com/google/gwt/dom/builder/shared/ElementBuilderImpl.java File user/src/com/google/gwt/dom/builder/shared/ElementBuilderImpl.java (right): http://gwt-code-reviews.appspot.com/1477801/diff/1/user/src/com/google/gwt/dom/builder/shared/ElementBuilderImpl.java#newcode265 user/src/com/google/gwt/dom/builder/shared/ElementBuilderImpl.java:265: assertStartTagOpen(Attributes cannot be added after appending HTML or adding a child element.); 101 cols http://gwt-code-reviews.appspot.com/1477801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10449 committed - A rollback of the following change (fails on some JVMs):...
Revision: 10449 Author: to...@google.com Date: Wed Jul 13 06:37:30 2011 Log: A rollback of the following change (fails on some JVMs): Reduces chances of deadlock when CompilingClassLoader and MultiParentClassLoader are concurrently accessed from multiple threads. http://code.google.com/p/google-web-toolkit/source/detail?r=10449 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java === --- /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java Tue Jul 12 13:27:01 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java Wed Jul 13 06:37:30 2011 @@ -70,7 +70,6 @@ import java.util.SortedSet; import java.util.Stack; import java.util.TreeSet; -import java.util.concurrent.locks.ReentrantLock; /** * An isolated {@link ClassLoader} for running all user code. All user files are @@ -354,10 +353,22 @@ public MultiParentClassLoader(ClassLoader parent, ClassLoader resources) { super(parent); - assert parent != null; this.resources = resources; } +@Override +public Class? loadClass(String name) throws ClassNotFoundException { + try { +return getParent().loadClass(name); + } catch (Throwable t) { +// Make a second attempt not only on ClassNotFoundExceptions, but also errors like +// ClassCircularityError +Class c = findClass(name); +resolveClass(c); +return c; + } +} + @Override protected synchronized Class? findClass(String name) throws ClassNotFoundException { @@ -369,28 +380,6 @@ byte[] bytes = Util.readURLAsBytes(url); return defineClass(name, bytes, 0, bytes.length); } - -@Override -protected Class? loadClass(String name, boolean resolve) throws ClassNotFoundException { - try { -Class c = findLoadedClass(name); -if (c != null) { - if (resolve) { -resolveClass(c); - } - return c; -} -return getParent().loadClass(name); - } catch (Throwable t) { -// Make a second attempt not only on ClassNotFoundExceptions, but also errors like -// ClassCircularityError -Class c = findClass(name); -if (resolve) { - resolveClass(c); -} -return c; - } -} } /** @@ -906,8 +895,6 @@ private final DispatchClassInfoOracle dispClassInfoOracle = new DispatchClassInfoOracle(); - private final Method findBootstrapClassMethod = getFindBootstrapClassMethod(); - private Class? gwtClass, javaScriptHostClass; /** @@ -915,8 +902,6 @@ */ private boolean isInjectingClass = false; - private final ReentrantLock loadLock = new ReentrantLock(); - private final TreeLogger logger; private final SetString scriptOnlyClasses = new HashSetString(); @@ -1059,7 +1044,8 @@ } @Override - protected Class? findClass(String className) throws ClassNotFoundException { + protected synchronized Class? findClass(String className) + throws ClassNotFoundException { if (className == null) { throw new ClassNotFoundException(null class name, new NullPointerException()); @@ -1071,148 +1057,87 @@ // happens to look. return ClassLoader.getSystemClassLoader().loadClass(className); } - -loadLock.lock(); -try { - - if (scriptOnlyClasses.contains(className)) { -// Allow the child ClassLoader to handle this -throw new ClassNotFoundException(); - } - - // Check for a bridge class that spans hosted and user space. - if (BRIDGE_CLASS_NAMES.containsKey(className)) { -return BRIDGE_CLASS_NAMES.get(className); - } - - // Get the bytes, compiling if necessary. - byte[] classBytes = findClassBytes(className); - if (classBytes == null) { -throw new ClassNotFoundException(className); - } - - if (HasAnnotation.hasAnnotation(classBytes, GwtScriptOnly.class)) { -scriptOnlyClasses.add(className); -maybeInitializeScriptOnlyClassLoader(); - -/* - * Release the lock before side-loading from scriptOnlyClassLoader. This prevents deadlock - * conditions when a class from scriptOnlyClassLoader ends up trying to call back into this - * classloader from another thread. - */ -loadLock.unlock(); - -// Also don't run the static initializer to lower the risk of deadlock. -return Class.forName(className, false, scriptOnlyClassLoader); - } - - /* - * Prevent reentrant problems where classes that need to be injected have - * circular dependencies on one another via JSNI and inheritance. This check - * ensures that a class's supertype can refer to the subtype (static - * members, etc) via JSNI references by ensuring that the Class for the - * subtype will have
[gwt-contrib] [google-web-toolkit] r10451 committed - Add StringKey to gwt-servlet.jar to support RequestFactory users....
Revision: 10451 Author: b...@google.com Date: Wed Jul 13 07:16:05 2011 Log: Add StringKey to gwt-servlet.jar to support RequestFactory users. Patch by: bobv Review by: drfibonacci Review at http://gwt-code-reviews.appspot.com/1479802 http://code.google.com/p/google-web-toolkit/source/detail?r=10451 Modified: /trunk/servlet/build.xml === --- /trunk/servlet/build.xmlWed Jun 8 16:44:32 2011 +++ /trunk/servlet/build.xmlWed Jul 13 07:16:05 2011 @@ -26,6 +26,7 @@ fileset dir=${gwt.dev.bin} include name=com/google/gwt/dev/asm/** / include name=com/google/gwt/dev/util/Name*.class / +include name=com/google/gwt/dev/util/StringKey.class / /fileset fileset dir=${gwt.user.bin} exclude name=**/rebind/** / -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] maven source jars
Hi, How do the maven artifacts that end up in the repos get generated? I'm making trunk builds and would like to have jars similar to those that end up in the maven repo, primarily with source jars (so far I cheat and use gwt-user with .java files as a source jar). I found the maven_script.sh, but that doesn't make/install source jars. Is there a script/ant target I'm missing, or is this done with some script that isn't published? If so, could it be published? Thanks, Stephen -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] [google-web-toolkit] r10452 committed - Re-rolled: Reduces chances of deadlock when CompilingClassLoader and M...
Revision: 10452 Author: to...@google.com Date: Wed Jul 13 10:19:26 2011 Log: Re-rolled: Reduces chances of deadlock when CompilingClassLoader and MultiParentClassLoader are concurrently accessed from multiple threads. Review by: zun...@google.com http://code.google.com/p/google-web-toolkit/source/detail?r=10452 Modified: /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java === --- /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java Wed Jul 13 06:37:30 2011 +++ /trunk/dev/core/src/com/google/gwt/dev/shell/CompilingClassLoader.java Wed Jul 13 10:19:26 2011 @@ -70,6 +70,7 @@ import java.util.SortedSet; import java.util.Stack; import java.util.TreeSet; +import java.util.concurrent.locks.ReentrantLock; /** * An isolated {@link ClassLoader} for running all user code. All user files are @@ -353,22 +354,10 @@ public MultiParentClassLoader(ClassLoader parent, ClassLoader resources) { super(parent); + assert parent != null; this.resources = resources; } -@Override -public Class? loadClass(String name) throws ClassNotFoundException { - try { -return getParent().loadClass(name); - } catch (Throwable t) { -// Make a second attempt not only on ClassNotFoundExceptions, but also errors like -// ClassCircularityError -Class c = findClass(name); -resolveClass(c); -return c; - } -} - @Override protected synchronized Class? findClass(String name) throws ClassNotFoundException { @@ -380,6 +369,28 @@ byte[] bytes = Util.readURLAsBytes(url); return defineClass(name, bytes, 0, bytes.length); } + +@Override +protected Class? loadClass(String name, boolean resolve) throws ClassNotFoundException { + try { +Class c = findLoadedClass(name); +if (c != null) { + if (resolve) { +resolveClass(c); + } + return c; +} +return getParent().loadClass(name); + } catch (Throwable t) { +// Make a second attempt not only on ClassNotFoundExceptions, but also errors like +// ClassCircularityError +Class c = findClass(name); +if (resolve) { + resolveClass(c); +} +return c; + } +} } /** @@ -705,6 +716,11 @@ } } + /** + * Only loads bootstrap classes, specifically excluding classes from the classpath. + */ + private static final ClassLoader bootstrapClassLoader = new ClassLoader(null) { }; + /** * The names of the bridge classes. */ @@ -902,6 +918,8 @@ */ private boolean isInjectingClass = false; + private final ReentrantLock loadLock = new ReentrantLock(); + private final TreeLogger logger; private final SetString scriptOnlyClasses = new HashSetString(); @@ -1044,8 +1062,7 @@ } @Override - protected synchronized Class? findClass(String className) - throws ClassNotFoundException { + protected Class? findClass(String className) throws ClassNotFoundException { if (className == null) { throw new ClassNotFoundException(null class name, new NullPointerException()); @@ -1057,87 +1074,132 @@ // happens to look. return ClassLoader.getSystemClassLoader().loadClass(className); } - -if (scriptOnlyClasses.contains(className)) { - // Allow the child ClassLoader to handle this - throw new ClassNotFoundException(); -} - -// Check for a bridge class that spans hosted and user space. -if (BRIDGE_CLASS_NAMES.containsKey(className)) { - return BRIDGE_CLASS_NAMES.get(className); -} - -// Get the bytes, compiling if necessary. -byte[] classBytes = findClassBytes(className); -if (classBytes == null) { - throw new ClassNotFoundException(className); -} - -if (HasAnnotation.hasAnnotation(classBytes, GwtScriptOnly.class)) { - scriptOnlyClasses.add(className); - maybeInitializeScriptOnlyClassLoader(); - return Class.forName(className, true, scriptOnlyClassLoader); -} - -/* - * Prevent reentrant problems where classes that need to be injected have - * circular dependencies on one another via JSNI and inheritance. This check - * ensures that a class's supertype can refer to the subtype (static - * members, etc) via JSNI references by ensuring that the Class for the - * subtype will have been defined before injecting the JSNI for the - * supertype. - */ -boolean localInjection; -if (!isInjectingClass) { - localInjection = isInjectingClass = true; -} else { - localInjection = false; -} - -Class? newClass = defineClass(className, classBytes, 0, classBytes.length); -if (className.equals(JavaScriptHost.class.getName())) { - javaScriptHostClass = newClass; - updateJavaScriptHost(); -} - -/* -
[gwt-contrib] [google-web-toolkit] r10453 committed - Cherry-pick r10451 into GWT 2.4 branch....
Revision: 10453 Author: b...@google.com Date: Wed Jul 13 10:55:20 2011 Log: Cherry-pick r10451 into GWT 2.4 branch. Add StringKey to gwt-servlet.jar. http://code.google.com/p/google-web-toolkit/source/detail?r=10453 Modified: /releases/2.4/servlet/build.xml === --- /releases/2.4/servlet/build.xml Wed Jun 8 16:44:32 2011 +++ /releases/2.4/servlet/build.xml Wed Jul 13 10:55:20 2011 @@ -26,6 +26,7 @@ fileset dir=${gwt.dev.bin} include name=com/google/gwt/dev/asm/** / include name=com/google/gwt/dev/util/Name*.class / +include name=com/google/gwt/dev/util/StringKey.class / /fileset fileset dir=${gwt.user.bin} exclude name=**/rebind/** / -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Performance improvements for ElementBuilder. (issue1477801)
committed as r10450 http://gwt-code-reviews.appspot.com/1477801/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Only require @Service mapping for RequestContext types referenced from a RequestFactory. (issue1478803)
Reviewers: drfibonacci, Description: Only require @Service mapping for RequestContext types referenced from a RequestFactory. This allows RequestContext base types to be defined. Patch by: bobv Review by: drfibonacci Please review this at http://gwt-code-reviews.appspot.com/1478803/ Affected files: M user/src/com/google/web/bindery/requestfactory/apt/RequestContextScanner.java M user/src/com/google/web/bindery/requestfactory/apt/RequestFactoryScanner.java M user/src/com/google/web/bindery/requestfactory/apt/State.java M user/test/com/google/web/bindery/requestfactory/apt/MyRequestContext.java M user/test/com/google/web/bindery/requestfactory/apt/MyRequestFactory.java Index: user/src/com/google/web/bindery/requestfactory/apt/RequestContextScanner.java === --- user/src/com/google/web/bindery/requestfactory/apt/RequestContextScanner.java (revision 10431) +++ user/src/com/google/web/bindery/requestfactory/apt/RequestContextScanner.java (working copy) @@ -79,10 +79,6 @@ Service service = x.getAnnotation(Service.class); ServiceName serviceName = x.getAnnotation(ServiceName.class); JsonRpcService jsonRpcService = x.getAnnotation(JsonRpcService.class); -if (service == null serviceName == null jsonRpcService == null) { - state.poison(x, Messages.contextMustBeAnnotated(state.requestContextType.asElement() - .getSimpleName())); -} if (service != null) { poisonIfAnnotationPresent(state, x, serviceName, jsonRpcService); Index: user/src/com/google/web/bindery/requestfactory/apt/RequestFactoryScanner.java === --- user/src/com/google/web/bindery/requestfactory/apt/RequestFactoryScanner.java (revision 10431) +++ user/src/com/google/web/bindery/requestfactory/apt/RequestFactoryScanner.java (working copy) @@ -41,7 +41,9 @@ if (!returnTypeElement.getKind().equals(ElementKind.INTERFACE)) { state.poison(x, Messages.factoryMustReturnInterface(returnTypeElement.getSimpleName())); } else { -state.maybeScanContext((TypeElement) returnTypeElement); +TypeElement contextElement = (TypeElement) returnTypeElement; +state.maybeScanContext(contextElement); +state.requireMapping(contextElement); } } else { state.poison(x, Messages.factoryMustBeAssignable(state.requestContextType.asElement() Index: user/src/com/google/web/bindery/requestfactory/apt/State.java === --- user/src/com/google/web/bindery/requestfactory/apt/State.java (revision 10431) +++ user/src/com/google/web/bindery/requestfactory/apt/State.java (working copy) @@ -128,7 +128,7 @@ */ private final MapElement, SetString previousMessages = new HashMapElement, SetString(); - private final SetTypeElement proxiesRequiringMapping = new LinkedHashSetTypeElement(); + private final SetTypeElement typesRequiringMapping = new LinkedHashSetTypeElement(); public State(ProcessingEnvironment processingEnv) { clientToDomainMain = new HashMapTypeElement, TypeElement(); @@ -234,9 +234,14 @@ poison(job.element, sw.toString()); } } -for (TypeElement proxyElement : proxiesRequiringMapping) { - if (!getClientToDomainMap().containsKey(proxyElement)) { -poison(proxyElement, Messages.proxyMustBeAnnotated()); +for (TypeElement element : typesRequiringMapping) { + if (!getClientToDomainMap().containsKey(element)) { +if (types.isAssignable(element.asType(), requestContextType)) { + poison(element, Messages.contextMustBeAnnotated(types.asElement(requestContextType) + .getSimpleName())); +} else { + poison(element, Messages.proxyMustBeAnnotated()); +} } } } @@ -331,8 +336,8 @@ } } - public void requireMapping(TypeElement proxyElement) { -proxiesRequiringMapping.add(proxyElement); + public void requireMapping(TypeElement interfaceElement) { +typesRequiringMapping.add(interfaceElement); } /** Index: user/test/com/google/web/bindery/requestfactory/apt/MyRequestContext.java === --- user/test/com/google/web/bindery/requestfactory/apt/MyRequestContext.java (revision 10431) +++ user/test/com/google/web/bindery/requestfactory/apt/MyRequestContext.java (working copy) @@ -23,7 +23,10 @@ import com.google.web.bindery.requestfactory.shared.Request; import com.google.web.bindery.requestfactory.shared.RequestContext; -@Expect(method = contextMustBeAnnotated, args = RequestContext) +/* + * No error about a missing mapping expected because this type isn't referenced + * from a RequestFactory. + */ interface MyRequestContext extends RequestContext { @Expect(method = proxyMustBeAnnotated)
[gwt-contrib] Add chunking to the xsiframe linker (issue1477802)
Reviewers: zundel, Description: Add chunking to the xsiframe linker Please review this at http://gwt-code-reviews.appspot.com/1477802/ Affected files: M dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java M dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptAlreadyIncluded.js M dev/core/src/com/google/gwt/core/ext/linker/impl/installScriptEarlyDownload.js M dev/core/src/com/google/gwt/core/linker/CrossSiteIframeLinker.java M dev/core/src/com/google/gwt/core/linker/IFrameLinker.java M dev/core/test/com/google/gwt/core/linker/ScriptChunkingTest.java M user/test/com/google/gwt/core/ext/LinkerTest.gwt.xml M user/test/com/google/gwt/core/ext/test/LinkerTest.java -- http://groups.google.com/group/Google-Web-Toolkit-Contributors