Re: Developers, please don't ignore reported GWT issues.
I have been frustrated with this as well and voiced my concern before. But all they keep on doing is adding features that most of us don't need. GWT is great, but there is a lot of old stuff in there that is half baked and nobody in the GWT team seems to be concerned with actually fixing bugs. When I complained about it the only answer (if any) I get is: you are free to send us a patch. Most of us don't have the time, or even the right to spend our time on working on code for google during our day jobs. And in the evening we need to take care of our family so fixing anything taking more than a few lines of code is totally impossible. I managed to patch one of the issues I reported, but some things are hard to fix unless you really know the GWT internals very well. There is a bug in the Event dispatching after opening a popup in IE and I really don't know how to fix this one since it goes really deep into the root event handling implementation. There is no developer docs available that explains the architecture and the devs that created the code in the first place are doing other things. I filed the bug report, I wrote in GWT and GWT contrib newsgroups and got 0 responses... This is the one: http://code.google.com/p/google-web-toolkit/issues/detail?id=4938 From what I read on google culture it seems like you only get rewarded for writing new stuff, not fixing old stuff (unless it affects a google product launch). -- 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/-/lpCryhzAmzMJ. 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: I need suggestions for compositeCell selection
My bad. The description might have been insufficient. I have an overwritten multiselection model because I want to select multiple items. I'm not sure if this makes any difference but I mentioned it just in case. My problem is how to tick check box when I click on the imageCell when the item is already selected. So once again. I know how to select an item and tick the checkBox by clicking on the image cell - I use custom eventTranslator and make the hasCell with a single checkBox depending on selection and not handle selection on it's own. Now I replaced the hasCell with single checkBoxCell with hasCell containing a cell made of 3 custom checkBoxes ( I added a name attribute describing resolution so that I know which one was selected when change event is fired). I added lastChanged property to the underlying object to remember what fired the event. I set the property in eventTranslator. I want the item to be selected and backgroud color changed if at least one of the checkBoxes is ticked= unticking single checkbox doesn't necessarily lead to deselecting an item. I also want it to be selected when the imageCell is clicked. In that case the default checkBox should be ticked. Clicking on checkBoxes to select image is simple. I can click on the imageCell and tick the default resolution this way but only if the item hasn't been selected yet. If it's already selected the cell is not rerendered . I thought that the problem was in selectionModel.resolveChanges if (selected) { if (oldValue == null || !oldValue.equals(object)) { .. It only fired event if there was no selection or other item had been selected. I needed it to fire a changeEvent if other checkBox in the same item was ticked. In other words when property not the object changed. So I replaced that code with if (oldValue == null || object.lastChange()!= null) So my model is firing the event now but it gets lost somewhere. The cellList isn't calling renderRowValues = the cell isn't re-rendered= box isn't ticked To sum up hacking things is never good idea and my solution doesn't work. How should I implement this properly? 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: GWT CELLTABLE : How to set descending icon to column on celltable header ?
Just call you method twice and the icon will be DESC :) table.getColumnSortList().push(testColumn); = ASC table.getColumnSortList().push(testColumn); = DESC -- 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/-/FSX3ueWLRK0J. 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: avoid row selection on cell click in CellTable
Thanks John! - I was looking to do something similar with a file download cell that I didn't want triggering selection events but pulled my hair out trying to find out how to disable the selection. Your suggestion worked a treat - I used the blacklist 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/-/GJffUQ2gHCsJ. 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: Stange error with Chrome hosted mode
Caused by: com.google.gwt.core.client.JavaScriptException: (TypeError): Object [object Object] has no method 'push' and at com.gwtext.client.widgets.Container.addPreCreate(Container.java) at com.gwtext.client.widgets.Container.add(Container.java:202) at com.gwtext.client.widgets.Container.add(Container.java:144) indicates that GWT-EXT trys to call a method push on a javascript object that does not provide this method. This is done somewhere in com.gwtext.client.widgets.Container.addPreCreate(). I don't know GWT-EXT but maybe you have some old libraries of GWT-Ext or missed to initialize some GWT-EXT specific stuff? -- J. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/G3uMesAPHI4J. 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: Developers, please don't ignore reported GWT issues.
Some time ago I stepped into the issue lifecycle wiki page. http://code.google.com/p/google-web-toolkit/wiki/BugTriageProcess http://code.google.com/p/google-web-toolkit/wiki/ManagingMerges Maybe this can clarify some things about why issues are not updated (looks like most of times this is an expected behavior). And yes, I agree this information should be more visible to people reporting issues :-) Regards Lorenzo On Oct 5, 9:41 am, stuckagain david.no...@gmail.com wrote: I have been frustrated with this as well and voiced my concern before. But all they keep on doing is adding features that most of us don't need. GWT is great, but there is a lot of old stuff in there that is half baked and nobody in the GWT team seems to be concerned with actually fixing bugs. When I complained about it the only answer (if any) I get is: you are free to send us a patch. Most of us don't have the time, or even the right to spend our time on working on code for google during our day jobs. And in the evening we need to take care of our family so fixing anything taking more than a few lines of code is totally impossible. I managed to patch one of the issues I reported, but some things are hard to fix unless you really know the GWT internals very well. There is a bug in the Event dispatching after opening a popup in IE and I really don't know how to fix this one since it goes really deep into the root event handling implementation. There is no developer docs available that explains the architecture and the devs that created the code in the first place are doing other things. I filed the bug report, I wrote in GWT and GWT contrib newsgroups and got 0 responses... This is the one:http://code.google.com/p/google-web-toolkit/issues/detail?id=4938 From what I read on google culture it seems like you only get rewarded for writing new stuff, not fixing old stuff (unless it affects a google product launch). -- You received 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: iframe with GWT
Yeah, I know about the Frame element but I don't know how to edit the head and body areas inside of it or pass it HTML to fill itself with. -- 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/-/v3hQkcze3VwJ. 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: Using Multiple Panels
i dont know if this is important but you also have a typo: you are saying in your html page you have: mainData1 and mainData2 and you are trying to get elements with ids: mailData1, mailData2 RootPanel.get(mailData1).add(mainPanel1); RootPanel.get(mailData2).add(mainPanel2); cheers, agata On 4 Okt., 23:36, paschn lina.nivo...@gmail.com wrote: It still doesn't work. The problem it that between the div elements in the HTML file I have some HTML elements (that cannot be implemented with GWT, like a captcha field), so I have to make those two panels (mainPanel1 and mainPanel2) work independently in 2 different RootPanels. On 4 Οκτ, 14:04, Sudhakar Abraham s.abra...@datastoregwt.com wrote: Wrap your VerticalPanel1, VerticalPanel 2 into a HorizontalPanel . Finally, add your HorizontalPanel into your RootLayoutPanel. Set the size for HorizontalPanel in gwt unit. //example code. public class MyProject implements EntryPoint { private Label firstNameLabel = new Label(First name:); private TextBox firstNameTextBox = new TextBox(); private FlexTable dataFlexTable1 = new FlexTable(); private VerticalPanel mainPanel1 = new VerticalPanel(); private Label lastNameLabel = new Label(Last name:); private TextBox lastNameTextBox = new TextBox(); private FlexTable dataFlexTable2 = new FlexTable(); private VerticalPanel mainPanel2 = new VerticalPanel(); private HorizontalPanel horizontalPanel = new HorizontalPanel(); public void onModuleLoad() { //Assemble data table 1 and 2 dataFlexTable1.setWidget(0, 0, firstNameLabel); dataFlexTable1.setWidget(0, 1, firstNameTextBox); dataFlexTable2.setWidget(0, 0, lastNameLabel); dataFlexTable2.setWidget(0, 1, lastNameTextBox); //Assemble main panel 1 mainPanel1.add(dataFlexTable1); //Assemble main panel 2 mainPanel2.add(dataFlexTable2); //Assemble two verticalPanel into HorizontalPanel horizontalPanel.add(mainPanel1); horizontalPanel.add(mainPanel2); horizontalPanel.setSize(500px, 400px); horizontalPanel.setVisible(true); RootLayoutPanel.get().add(horizontalPanel); } } S. Abrahamwww.DataStoreGwt.com Persist objects directly in GAE -- You received 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: Stange error with Chrome hosted mode
Maybe, but the fact is that 1: GWT-EXT is an old library, not maintened anymore 2: with Firefox and IE, also in hosted mode, i don't have any problem... either with chrome in web mode. I have this error only with chrome and hosted mode -- You received 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.
Continuous editing of a proxy with the Editor framework
Hi there, It seems that the Editor framework implies one-time editing of a proxy, and once you call flush() of the driver you can't get the edited proxy back with updated values until it's persisted. Or am I wrong? I need such feature to make a persistent UI. The idea is to have a proxy object for UI state and persist it each time the user changes UI state. The thing is when the editor request is in process the UI state still can be changed and these changes will be lost. Is it GWT-style solution or is my design completely wrong? Hope this snippet will make sense: 1: *class* UIStateProxy *extends* EntityProxy *{* 2: *boolean* getShowToolbar*(**)**;* 3: *void* setShowToolbar*(**)**;* 4: *}* 5: 6: *class* UIStateWorkflow *implements* EditorUIStateProxy *{* 7: 8: @UIField 9: CheckBox showToolBarEditor*;*10: 11: */* driver initialization and other things */*12: 13: @UiHandler*(*showToolBarEditor*)*14: *void* onSetShowToolbar*(*ValueChangeEventBoolean event*)* *{*15: driver*.*flush*(**)**.*fire*(**)**;*16: */* Now UI state is sent to the server, but what to do next?17: /* It is neither possible to get edited proxy and restart the editor nor abort the request */*18: *}*19: 20: *}* Thank you in advance! -- 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/-/61eE9fMRO78J. 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.
Adding a collection of Suggestion to SuggestBox (replacement strings different from display strings)
Hello, I want to create a suggest box with suggestions that have replacement strings different from display strings I created a collection of MultiWordSuggestion(replString, displayString) but i cannot find how to add them to the SuggestOracle. I have methods add(string) or addAll(stringCollection), and only setDefaultSuggestions(suggestionCollection). the oracle does not have a method addAll(CollectionSuggestion suggestions) or add(Suggestion s). So how do put suggestions with replacement strings different from display strings? -- You received 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: iframe with GWT
So I found this link http://bealetech.com/blogs/sean/2010/01/embedding-html-document-iframe-gwt and I got it to work using these functions: final IFrameElement iframe = Document.get().createIFrameElement(); FlowPanel innerBox = new FlowPanel() { @Override protected void onLoad() { super.onLoad(); // Fill the IFrame with the content html fillIframe(iframe, contentHtml); // Add a HEAD element to the IFrame with the appropriate CSS addHeadElement(iframe, cssUrl); }}; innerBox.getElement().appendChild(iframe); *and * private final native void fillIframe(IFrameElement iframe, String content) /*-{ var doc = iframe.document; if(iframe.contentDocument) doc = iframe.contentDocument; // For NS6 else if(iframe.contentWindow) doc = iframe.contentWindow.document; // For IE5.5 and IE6 // Put the content in the iframe doc.open(); doc.writeln(content); doc.close(); }-*/; I tried to get the head function on that page to work, but wasn't sure how to pass in the HTML and write it to the head element. Right now I'm just using div style=background-color:red; font-size: 18px;Hello World/div to get the styles to work with the divs I need them to. I end up with this in the dom: diviframehtmlhead/headbodydiv style=position:fixed;top:0px;left:0px;color:red;background-color: blue; font-size:44px;Hello World/div/body/html/iframe/div It works but I would imagine there's a better way. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Umjuy8C7iPgJ. 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.
Trouble with GWT 2.0.4, RPC and non root account
Hi. I've the following scenario: - NetBeans IDE 7.0 with GWT4NB - Mid sized application running GWT 2.0.4 with some extensions (like GWT Math, for BigDecimals) - Apache Tomcat 7.0.11 and Apache Tomcat 7.0.20 Exactly same setup running on Windows works great. When running in Linux, if I run as root, works great. As my limited user, throws the following server side exception: GRAVE: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeWithCustomSerializer(ServerSerializationStreamWriter.java: 760) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serializeImpl(ServerSerializationStreamWriter.java: 723) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java: 612)... I've tracked it down to a BigDecimal data type. Why does this happen only with non root accounts? I have already checked permissions on Tomcat, Tomcat Base, and NetBeans, and they are all fine. I really suspect that is something related to permissions, but I have no clue where to look for. I've been searching for 2 days without success. I'll appreciate your help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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.
CellList navigation
Hi there, I have a cell list with custom styling so it displays horizontally and if cells don't fit they fall down to the next line, effectively its looks like a 2row x 4cell table. However, I need to be able to navigate to cells using all arrows not just up and down. Alternatively, I was thinking to use a cellTable instead and pass in an object which holds data for four cells. Any suggestions or ideas? Thanks, -G -- 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/-/GtEtNp70wdEJ. 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.
Getting Two Errors I just need to know Possible Reasons....
I received two errors: -Caused by: java.lang.UnsatisfiedLinkError: com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ lang/String; and -[ERROR] 500 - POST Any help would be greatThanks -- You received 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.
Fundamental MVP Problem
I've got my MVP Project more or less running. But now I more and more and more get into problems with Browser Event Handling (Click, MouseOut/Over, etc.). And connected with that some other things too. I could be that my structure is no true MVP, and maybe that's the cause for my problems?! But have a look yourself: I have a News section. It consists of - NewsPresenter + Display - NewsItemPresenter + Display + Model The first little question: Where in the MVP structure I should fetch the data from the server? Inside the presenter or should I write some kind of controller that handles ONLY the server connection for news? (For instance I could say: 'give me all news' or 'give me the next 5 news after id 5' and 'update id 3 with the following model'). Actually it's all inside the NewsPresenter, it works, but it's bad for the overview... Now my real problems: First all news I'd like to display a fetched from the server (or cache). Then the NewsPresenter has a HashMapNewsItemId, NewsItemPresenter. It takes each NewsItemModel and calls 'new NewsItemPresenter(model)' and puts it into the HashMap. So I have a cache which is pretty handy. Afterwards the NewsPresenter attaches those NewsItemPresenters to the content area of the NewsDisplay. I think that's pretty straight forward. Now each NewsItemDisplay has Click/MouseOver/MouseOut Handlers. And as Google told us, it's better to have a single Handler than one Handler for each item. Right now every NewsItemDisplay has it's own Handlers and tells it's presenter (via well designed Interface) which button was clicked. But I'd like to have the NewsPresenter (or NewsDisplay) to handle such things with a single EventHandler. Sure I could add the ClickHandler to the NewsDisplay but then I don't know which of my items was clicked and even harder: Which button inside of an item was clicked. It would be pretty cool, if someone could give me some advise (or example Code) on how to achieve this. :) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: Using Multiple Panels
I m sorry, I mean mainData1 and mainData2 in both of them. It was a typo here. In my project it's correct. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Getting Two Errors I just need to know Possible Reasons....
I think it has something to do with my URL string and encoding Am i suppose to include the ? and sign in my url string and encode it? or leave them out and insert parameters in the builder.sendRequest(parameters, new RequestCallback) ? Thanks On Oct 5, 7:27 am, coffeMan nmatv...@gmail.com wrote: I received two errors: -Caused by: java.lang.UnsatisfiedLinkError: com.google.gwt.http.client.URL.encodeImpl(Ljava/lang/String;)Ljava/ lang/String; and -[ERROR] 500 - POST Any help would be greatThanks -- You received 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.
DataGrid Pagination Problem
Hi I m getting the following error can anyone please help me in resolving and getting a proper pagination flow, on clicking of the paginate icon. below is the code I have been trying to use and the exception I'm getting : Exception : === 11:17:33.939 [ERROR] [myapps] Unable to load module entry point class com.apps.app1.client.Myapps (see associated exception for details) java.lang.NullPointerException: null at com.google.gwt.user.client.ui.HTMLPanel.addAndReplaceElement(HTMLPanel.java: 197) at com.apps.app1.client.GridData_GridDataUiBinderImpl.createAndBindUi(GridData_GridDataUiBinderImpl.java: 37) at com.apps.app1.client.GridData_GridDataUiBinderImpl.createAndBindUi(GridData_GridDataUiBinderImpl.java: 1) at com.apps.app1.client.GridData.lt;initgt;(GridData.java:61) at com.apps.app1.client.Myapps.onModuleLoad(Myapps.java:14) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java: 396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 200) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 525) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 363) at java.lang.Thread.run(Thread.java:619) The GridData.java file == package com.apps.app1.client; import java.util.ArrayList; import java.util.Comparator; import java.util.Date; import java.util.List; import com.apps.app1.client.Contact.Category; import com.google.gwt.cell.client.CheckboxCell; import com.google.gwt.cell.client.DateCell; import com.google.gwt.cell.client.EditTextCell; import com.google.gwt.cell.client.FieldUpdater; import com.google.gwt.cell.client.NumberCell; import com.google.gwt.cell.client.SelectionCell; import com.google.gwt.core.client.GWT; import com.google.gwt.dom.client.Style.Unit; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickHandler; import com.google.gwt.safehtml.shared.SafeHtmlUtils; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.cellview.client.Column; import com.google.gwt.user.cellview.client.DataGrid; import com.google.gwt.user.cellview.client.Header; import com.google.gwt.user.cellview.client.SafeHtmlHeader; import com.google.gwt.user.cellview.client.SimplePager; import com.google.gwt.user.cellview.client.TextColumn; import com.google.gwt.user.cellview.client.ColumnSortEvent.ListHandler; import com.google.gwt.user.cellview.client.HasKeyboardSelectionPolicy.KeyboardSelectionPolicy; import com.google.gwt.user.cellview.client.SimplePager.TextLocation; import com.google.gwt.user.client.ui.Button; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.DialogBox; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.view.client.ListDataProvider; import com.google.gwt.view.client.SelectionChangeEvent; import com.google.gwt.view.client.SingleSelectionModel; public class GridData extends Composite { private static GridDataUiBinder uiBinder = GWT .create(GridDataUiBinder.class); interface GridDataUiBinder extends UiBinderWidget, GridData { } @UiField(provided = true) DataGridContact table; @UiField(provided = true) SimplePager pager1; public GridData() { table = new DataGridContact(); SimplePager.Resources pagerResources = GWT.create(SimplePager.Resources.class); SimplePager pager1 = new SimplePager(TextLocation.CENTER, pagerResources, false, 0, true); pager1.setDisplay(table); initWidget(uiBinder.createAndBindUi(this)); table.setKeyboardSelectionPolicy(KeyboardSelectionPolicy.ENABLED); /*DockLayoutPanel mainPanel = new DockLayoutPanel(Unit.EM); VerticalPanel panel = new VerticalPanel(); panel.setBorderWidth(5); panel.setTitle(North); VerticalPanel panel1 = new VerticalPanel(); panel.setBorderWidth(5); panel1.setTitle(East); VerticalPanel panel2 = new VerticalPanel(); panel.setBorderWidth(5); panel2.setTitle(West); VerticalPanel panel3 = new VerticalPanel(); panel.setBorderWidth(5); panel2.setTitle(South); mainPanel.insertNorth(panel, 10.0, null); mainPanel.insertWest(panel1, 10.0, null);
GWT Mail Example- StackLayoutPanel Selection Event (The Shortcuts)
Hi all, I'm new to GWT and trying to modify the example GWT Mail application (http://gwt.google.com/samples/Mail/Mail.html) to when I click on one of the shortcut tabs on the left (ie Contacts, Mail etc), it will change the MailList part of the application (basically the maillist table) to be populated with different data. Eg when I click on the Tasks 'box' not only will it animate the left stack layout panel but i would like it so the table (MailList) that has 'subject', 'Email', and 'subject' as table headings to change and table cleared and have eg tasks information in the table instead. I have figured out how to change the table headers and the contents but I cant seem to figure out how to do it on an event when one of those buttons on the left are clicked/selected. Any help would be greatly appreciated. Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Permutation, code splitting and deferred property
Thanks David for the follow-up. Could this be a result of the new PersistentUnitCache / generator caching stuff? I tried having a different generator class for each value but I still had the same issue. Also, Soft Permutations would cause this, so make sure those are not on. I don't use the collapse-property tag so if I'm correct, they aren't soft permutations. I was able to reproduce the issue using replace-with tag in a simple case. I had the following code: public class Widget1 … {} public class Widget11 extends Widget1 { public void oneMethod(){ GWT.runAsync(new RunAsyncCallback { @Override public void onSuccess() { Widget w2 = new Widget2(); ... } ... } …. } public class Widget12 extends Widget1 { public void oneMethod(){ GWT.runAsync(new RunAsyncCallback { @Override public void onSuccess() { Widget w2 = new Widget2(); ... } ... } …. } and have the following configuration: replace-with class=com.test.client.Widget11 when-type-is class=com.test.client.Widget1/ /replace-with replace-with class=com.test.client.Widget12 when-type-is class=com.test.client.Widget1/ when-property-is name=user.agent value=gecko1_8 / /replace-with and then I just create a widget1 in my entry point: public void onModuleLoad() { w1 = GWT.create( Widget1.class ); ... } When I look at the soyc report, for any permutation, GWT detects 2 split points and all the code of Widget2 is in the left-over fragment. I'm not sure why GWT detects 2 split points because when you look at the full code size report, only one of the 2 classes is here (which is the expected behavior). If it can help, you can find the code here: http://mvp4g.googlecode.com/svn/temp/gwt-example2.zip Also this happens only with gwt-2.4.0 but it works fine with gwt-2.3.0. Could it be a bug with gwt-2.4.0 (but I have to admit it is a pretty rare case)? I found one workaround in my case by creating an extra class that contains the split point: public class SplitWidget2(){ public void split(RunAsyncCallback callback){ GWT.runAsync(callback); } } and then in Widget11 and Widget12: public class Widget11 extends Widget1 { public void oneMethod(){ newSplitWidget2().split(new RunAsyncCallback { @Override public void onSuccess() { Widget w2 = new Widget2(); ... } ... } …. } Thanks for your help, Pierre -- You received 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.
Vertical Scroll bar on the page in GWT
HI All, I am pretty new to the GWT world.I am trying to get the vertical scrollable pages. I am using GWT 2.4 and UiBinder to achieve my page layouts. Throughout my application I have a header section, main content area section and footer section. I have created a separate composite for header , footer. I am using the DockLayoutPanel. To the north of the dock panel and I am adding my header , to south of dock panel my footer and to the center of dock panel all my pages created using UiBinder. UiBinder pages make use of the HTML panel . My problem is as my main content area grows, I am not able to get the vertical scroll on the page. One solution for this is using ScrollPanel as parent of HTMLPanel in in my UiBinder pages. But then only my main content area gets the vertical scroll page, not the hole web page itself. Please help me to get the vertical scroll bar. Regards, Vikram -- 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/-/Sv5lpWngkK0J. 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: Using window.open(), Chrome and extensions in GWT project..
I can only PARTLY answer my own question: in a Chrome window opened via open.window() you can right-click on the title bar and select open in tab. this returns the window to traditional form and exposes the extensions bar. This is an extra step and we'd still love to see if extensions bar can be made visible by default from window.open(). On Oct 4, 3:52 pm, Ben ben.falc...@gmail.com wrote: As a part of a larger GWT project we have some native JavaScript in which we use window.open to create a new Chrome instance. So far so good. But we have some Chrome extensions (e.g., a screenshot extension - 'Awesome Screenshot', or 'Screen capture (by Google)') that we want available to this new window. Is is possible to show the extensions bar in the new.window ?? Is there any other hooks so we can make use of the screen-capture capabilities from the new window? (Yes, I realize that on WinXP/Win7 one could use system utils like SnippingTool or alt-printScrn). Thanks. Example window.open(): body ullia href= onclick=window.open('http://www.google.com', 'mywindow', 'width=700, height=700, scrollbars=no, resizable=no, toolbar=no, menubar=no, location=no'); return false;Pop out a new Chrome window (can i make the extensions-bar visible too??)/a/li/ ul /body -- You received 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: Using window.open(), Chrome and extensions in GWT project..
Adding another question to this: How can i get the handler for this opened window? Javascript's window.open() returns a reference to opened window. However, GWT's Window.open() doesn't, so you'll have to use JSNI here On Wed, Oct 5, 2011 at 11:10 AM, Ben ben.falc...@gmail.com wrote: I can only PARTLY answer my own question: in a Chrome window opened via open.window() you can right-click on the title bar and select open in tab. this returns the window to traditional form and exposes the extensions bar. This is an extra step and we'd still love to see if extensions bar can be made visible by default from window.open(). On Oct 4, 3:52 pm, Ben ben.falc...@gmail.com wrote: As a part of a larger GWT project we have some native JavaScript in which we use window.open to create a new Chrome instance. So far so good. But we have some Chrome extensions (e.g., a screenshot extension - 'Awesome Screenshot', or 'Screen capture (by Google)') that we want available to this new window. Is is possible to show the extensions bar in the new.window ?? Is there any other hooks so we can make use of the screen-capture capabilities from the new window? (Yes, I realize that on WinXP/Win7 one could use system utils like SnippingTool or alt-printScrn). Thanks. Example window.open(): body ullia href= onclick=window.open('http://www.google.com', 'mywindow', 'width=700, height=700, scrollbars=no, resizable=no, toolbar=no, menubar=no, location=no'); return false;Pop out a new Chrome window (can i make the extensions-bar visible too??)/a/li/ ul /body -- You received 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. -- Magno Machado Paulo http://blog.magnomachado.com.br http://code.google.com/p/emballo/ -- You received 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.
Cross Site Requests
I am looking to make a cross site request, but i read on googles tutorials that you may need python or another scripting source. Is there a way i can use just Java to do this? I would imagine that there is, if someone can point me in the right direction...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: Trouble with GWT 2.0.4, RPC and non root account
To anyone who faces same problem, check if you don't have gwt- servlet.jar in two or more places. In my case, I had gwt-servlet.jar in $TOMCAT_HOME/lib and WEB-INF/lib. Removed from WEB-INF/lib and now everything is working fine! Regards, Edson. On 5 out, 08:21, Edson Richter brvik...@gmail.com wrote: Hi. I've the following scenario: - NetBeans IDE 7.0 with GWT4NB - Mid sized application running GWT 2.0.4 with some extensions (like GWT Math, for BigDecimals) - Apache Tomcat 7.0.11 and Apache Tomcat 7.0.20 Exactly same setup running on Windows works great. When running in Linux, if I run as root, works great. As my limited user, throws the following server side exception: GRAVE: Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: java.lang.reflect.InvocationTargetException at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeWithCustomSerializer(ServerSerializationStreamWriter.java: 760) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali zeImpl(ServerSerializationStreamWriter.java: 723) at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.seriali ze(ServerSerializationStreamWriter.java: 612)... I've tracked it down to a BigDecimal data type. Why does this happen only with non root accounts? I have already checked permissions on Tomcat, Tomcat Base, and NetBeans, and they are all fine. I really suspect that is something related to permissions, but I have no clue where to look for. I've been searching for 2 days without success. I'll appreciate your help. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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 Designer - Support to reference CSS from ui.xml as well as CSSResource
It seems like GWT designer added an awesome CSS editor, but it looks like it only references the CSS which are referenced from the HTML file. It will be nice to actually be able to look at all the styles currently associated with a widget be it inline inside UIBInder xml or from a CSSResource. Is this something which already exists or planned? -- You received 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.
Upgrade issues: Eclipse plugin to 2.4
I encountered a couple of unexpected problems when I upgraded my plugin for Eclipse (Helios) to v2.4 -- I finally got everything resolved, but I thought it might be worth sharing my experience. 1) The new plugin includes the ability to develop in GWT for Android native apps, but this introduces a new and unexpected dependency during the install: you have to also install the ADT plugin from http://developer.android.com/sdk/eclipse-adt.html (and then, in order to use the ADT plugin if you so desire, you need to install and link an Android SDK...). However, the ADK Plugin site is not on the standard software sources list for Eclipse, so you need to add it. Well, actually, you can either add the ADK plugin software site (and thus download and install the ADK plugin) or uncheck the Android GWT package when you upgrade the GWT plugin (but then you can't compile to native Android). I tried both ways, and they both work. 2) I had several projects which I had written using the GWT 2.3 plugin, and when I upgraded, they all started showing an error in the .../war/WEB-INF/lib/ directory. Oddly, I could still compile and run everything, but there was always this nagging error flag. It turns out that the appengine JAR files in those directories weren't updated as part of the upgrade. The newer, v1.5.4 JAR files need to replace the older, v1.5.2 JAR files. I had to do this by hand. I discovered the problem by starting a new project and comparing the contents of the directory with that in an older project. I hope this helps other people deal with upgrade issues. -- You received 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.
SliderBar
Could someone tell me how to get the GWT incubator project.. so that i can add more to it. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to make plain HttpRequest just to check HTTP_RESPONSE?
Hello Is it possible to make a request to server to check the actual response code? ...so one could check whether the error response was 500 404, etc. So far I would write piece of native JS. Cheers Jarda Z. -- 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/-/kGIjoWO4-yYJ. 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.
Showcase mainMenu, space between MenuItems
I've tried to reduce the space between the main-menu Items without any success. How to do? I was successful with CwCellList same thing did not work with the main menu. Please help, Thanks -- 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/-/BkKNWSuYhD4J. 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 make plain HttpRequest just to check HTTP_RESPONSE?
RequestBuilder request = new RequestBuilder(RequestBuilder.GET, URL); try { request.sendRequest(, new RequestCallback() { @Override public void onResponseReceived(Request request, Response response) { int statusCode = response.getStatusCode(); } @Override public void onError(Request request, Throwable exception) { } }); } catch (RequestException e) { e.printStackTrace(); } Regads, Alfredo 2011/10/5 Jaroslav Záruba jaroslav.zar...@gmail.com Hello Is it possible to make a request to server to check the actual response code? ...so one could check whether the error response was 500 404, etc. So far I would write piece of native JS. Cheers Jarda Z. -- 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/-/kGIjoWO4-yYJ. 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. -- Alfredo Quiroga-Villamil AOL/Yahoo/Gmail/MSN IM: lawwton -- You received 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.
Indexed DB/WebStorage in GWT?
Howdy, all, Is anyone using webstorage or indexedDB client side data storage with GWT? Pointers to projects appreciated... Aside: I note that the WebStorage group reached an impasse and stopped supporting the spec last fall. I note further that http://www.w3.org/TR/IndexedDB/ seems to be alive and kicking, but a brief reading seemed to indicate that this is a great system for key-object mappings, but not so great for the generic sql case of select rows from foo where name is blah group by this order by that kind of queries. ( might be wrong - section 3.1.3 keys can be DOMStrings. Since can supply a keyrange to an index, you may be able to generate the kind of selects I am used to, as long as you can generate an index such that the result of that query would be expressable as either indexkey==foo or low indexkey hig. Aside aside, does anyone have real world experience? I do not mind if the results only work on Chrome/FF/Safari, but IE would also be cool. 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.
Re: Indexed DB/WebStorage in GWT?
On 10/05/2011 10:26 AM, scott.ellswo...@gmail.com wrote: Howdy, all, Is anyone using webstorage or indexedDB client side data storage with GWT? Pointers to projects appreciated... See http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/storage/client/Storage.html You can see an example at http://code.google.com/p/gwt-sked/source/browse/trunk/%20gwt-sked%20--username%20jchimene%40gmail.com/Sked/src/com/systasis/sked/client/model/SkedStorage.java Aside: I note that the WebStorage group reached an impasse and stopped supporting the spec last fall. Could you provide a pointer to this? I'd heard something about it, but I was under the impression that it was resolved by moving to a separate spec from the HTML 5 spec. I note further that http://www.w3.org/TR/IndexedDB/ seems to be alive and kicking, but a brief reading seemed to indicate that this is a great system for key-object mappings, but not so great for the generic sql case of select rows from foo where name is blah group by this order by that kind of queries. ( might be wrong - section 3.1.3 keys can be DOMStrings. Since can supply a keyrange to an index, you may be able to generate the kind of selects I am used to, as long as you can generate an index such that the result of that query would be expressable as either indexkey==foo or low indexkey hig. Aside aside, does anyone have real world experience? I do not mind if the results only work on Chrome/FF/Safari, but IE would also be cool. The GWT storage API works for me in IE9. As usual, YMMV. -- You received 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.
About creating 3D maps using GWT
Hello, I am new to gwt.I am interested in working on 3D maps using GWT.And also add some widgets like check boxes,textboxes,buttons to my 3D maps on my html page.I also want some information on geocoding in gwt 3d maps.Can you guys help me?? Regards, Rahul -- You received 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.
Use html5 webdb in GWT (without Gears)
Hi all!, Recently, I'm testing the Local Storage (com.google.gwt.storage.client.Storage) in my GWT app. It's works fine. Now, Can use the HTML5 webdb (http://www.w3.org/TR/webdatabase/) in gwt witout use G. Gears??.. Google gears is deprecated. Let me know yous opinions.. Cheers. Gere. -- You received 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: Use html5 webdb in GWT (without Gears)
It works in chrome and safari. In chrome you'll have to create an installable app to get more than 5 mb of local storage. Hope this helps, Daniel -- 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/-/iXMS__SCaJwJ. 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: Indexed DB/WebStorage in GWT?
As Jeff points out, Storage is supported in GWT today. Storage is the HTML5 key/value pair datastore and has a 5mb limit (unless you are installed via the Chrome Web Store). John LaBanca has a good overview (that is pretty entertaining) here: http://www.youtube.com/watch?v=KEkR1ox_K10 We don't currently have an IndexedDb wrapper. IndexedDb (http:// www.w3.org/TR/IndexedDB/) is a successor to the defunct WebSQL and is a much more powerful datastore than Storage, supporting queries and such. GWT support for IndexedDb will require some serious work and I don't know of anyone looking into it at the moment. Philip On Oct 5, 1:43 pm, Jeff Chimene jchim...@gmail.com wrote: On 10/05/2011 10:26 AM, scott.ellswo...@gmail.com wrote: Howdy, all, Is anyone using webstorage or indexedDB client side data storage with GWT? Pointers to projects appreciated... Seehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/googl... You can see an example athttp://code.google.com/p/gwt-sked/source/browse/trunk/%20gwt-sked%20-... Aside: I note that the WebStorage group reached an impasse and stopped supporting the spec last fall. Could you provide a pointer to this? I'd heard something about it, but I was under the impression that it was resolved by moving to a separate spec from the HTML 5 spec. I note further thathttp://www.w3.org/TR/IndexedDB/seems to be alive and kicking, but a brief reading seemed to indicate that this is a great system for key-object mappings, but not so great for the generic sql case of select rows from foo where name is blah group by this order by that kind of queries. ( might be wrong - section 3.1.3 keys can be DOMStrings. Since can supply a keyrange to an index, you may be able to generate the kind of selects I am used to, as long as you can generate an index such that the result of that query would be expressable as either indexkey==foo or low indexkey hig. Aside aside, does anyone have real world experience? I do not mind if the results only work on Chrome/FF/Safari, but IE would also be cool. The GWT storage API works for me in IE9. As usual, YMMV. -- You received 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: iframe with GWT
and the example without a line of JSNI :) but be aware of same-domain restriction when retrieving reference iframe's content. public class IframeStyleExample implements EntryPoint { public static StyleElement addStyleSheet(FrameElement frameElement, String cssText) { Document contentDocument = frameElement.getContentDocument(); Element targetElement = contentDocument.getElementsByTagName(head) .getItem(0); if(targetElement == null){ targetElement = contentDocument.getDocumentElement() .getFirstChildElement(); if(targetElement == null){ contentDocument.insertFirst(targetElement = contentDocument .createElement(head)); } } StyleElement styleElement = contentDocument.createStyleElement(); styleElement.setType(text/css); styleElement.setCssText(cssText); targetElement.insertFirst(styleElement); return styleElement; } @Override public void onModuleLoad() { final Frame frame = new Frame(); frame.addLoadHandler(new LoadHandler() { @Override public void onLoad(LoadEvent event) { FrameElement frameElement = frame.getElement().cast(); addStyleSheet(frameElement, div {background: #ff;}); } }); } } -- You received 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.text.MessageFormat working on client?
Hello all, I'm relatively new to GWT. I'm actually developing a web application using SmartGWT, don't know if you've heard of it. Anyway, I'm trying to format some internationalized messages. In the server, I'm using the Java built-in support, through java.text.MessageFormat class. But after doing some research, I understood that this would not work on the client side. But when I run the following code in a client-side class: - String message = Number: {0}; Log.debug( [Is Client: + GWT.isClient() + ] Before formatting: + message ); MessageFormat formatter = new MessageFormat( message ); message = formatter.format( new Object[] { 2.5 } ); Log.debug( [Is Client: + GWT.isClient() + ] After formatting: + message ); - I get the following output: - (WebApplicationContext.java:51) 2011-10-05 15:07:19,662 [DEBUG] [Is Client: true] Before formatting: Number: {0} (WebApplicationContext.java:56) 2011-10-05 15:07:19,690 [DEBUG] [Is Client: true] After formatting: Number: 2,5 - This is using my default locale, 'pt_BR'. But I can even change it with: - Locale locale = new Locale( en, US ); formatter.setLocale( locale ); - and then I would get the output: - (WebApplicationContext.java:52) 2011-10-05 15:12:08,592 [DEBUG] [Is Client: true] Before formatting: Number: {0} (WebApplicationContext.java:59) 2011-10-05 15:12:08,621 [DEBUG] [Is Client: true] After formatting: Number: 2.5 - When I load my application in the browser, GWT output complains that there is no source code available for both java.text.MessageFormat and java.util.Locale. But, even then, the locale-specific formatting appears to be working perfectly. Does anyone understands what is happening? Thank you very much! Best regards, Thiago -- You received 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.text.MessageFormat working on client?
Is the class and the method do you need are herehttp://code.google.com/intl/es/webtoolkit/doc/latest/RefJreEmulation.html, yes. 2011/10/5 Thiago Coraini tcora...@gmail.com Hello all, I'm relatively new to GWT. I'm actually developing a web application using SmartGWT, don't know if you've heard of it. Anyway, I'm trying to format some internationalized messages. In the server, I'm using the Java built-in support, through java.text.MessageFormat class. But after doing some research, I understood that this would not work on the client side. But when I run the following code in a client-side class: - String message = Number: {0}; Log.debug( [Is Client: + GWT.isClient() + ] Before formatting: + message ); MessageFormat formatter = new MessageFormat( message ); message = formatter.format( new Object[] { 2.5 } ); Log.debug( [Is Client: + GWT.isClient() + ] After formatting: + message ); - I get the following output: - (WebApplicationContext.java:51) 2011-10-05 15:07:19,662 [DEBUG] [Is Client: true] Before formatting: Number: {0} (WebApplicationContext.java:56) 2011-10-05 15:07:19,690 [DEBUG] [Is Client: true] After formatting: Number: 2,5 - This is using my default locale, 'pt_BR'. But I can even change it with: - Locale locale = new Locale( en, US ); formatter.setLocale( locale ); - and then I would get the output: - (WebApplicationContext.java:52) 2011-10-05 15:12:08,592 [DEBUG] [Is Client: true] Before formatting: Number: {0} (WebApplicationContext.java:59) 2011-10-05 15:12:08,621 [DEBUG] [Is Client: true] After formatting: Number: 2.5 - When I load my application in the browser, GWT output complains that there is no source code available for both java.text.MessageFormat and java.util.Locale. But, even then, the locale-specific formatting appears to be working perfectly. Does anyone understands what is happening? Thank you very much! Best regards, Thiago -- You received 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.
Declarative UI + Google Maps
Hi I'm trying to use Google Maps in my project so I add inherits name='com.google.gwt.maps.GoogleMaps' / in the gwt.xml file. I use deferred binding for create the UI and the View.ui.xml file's code is: !DOCTYPE ui:UiBinder SYSTEM http://dl.google.com/gwt/DTD/ xhtml.ent ui:UiBinder xmlns:ui=urn:ui:com.google.gwt.uibinder xmlns:g=urn:import:com.google.gwt.user.client.ui xmlns:p1=urn:import:com.google.gwt.user.cellview.client xmlns:p2=urn:import:com.google.gwt.maps.client ui:style .important { font-weight: bold; } /ui:style g:VerticalPanel ui:field=rootPanel width=100% height=100% p2:MapWidget ui:field='map' / /g:VerticalPanel /ui:UiBinder The View.java file's code is: import com.google.gwt.core.client.GWT; import com.google.gwt.maps.client.MapWidget; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.user.client.ui.Composite; import com.google.gwt.user.client.ui.Widget; import com.google.gwt.user.client.ui.VerticalPanel; import com.google.gwt.user.client.ui.Label; import com.google.gwt.user.client.ui.MenuBar; import com.google.gwt.user.cellview.client.CellTable; public class View extends Composite { private static ViewUiBinder uiBinder = GWT .create(ViewUiBinder.class); @UiField VerticalPanel rootPanel; @UiField MapWidget map; interface ViewUiBinder extends UiBinderWidget, View { } public View() { initWidget(uiBinder.createAndBindUi(this)); } } The problem is when i switch from the code view to the design view elipse show me this error: Error loading module(s). GWT Designer can't load a module because of error in gwt.xml module description, incorrect resource which requires processing with GWT generator or by some other configuration error. Please check your $project_dir/.gwt/.gwt-log for GWT-specific errors. This log has the following error messages: [ERROR] Failed to create an instance of 'com.google.gwt.maps.client.MapWidget' via deferred binding Show stack trace. Hide stack trace. Stack trace: org.eclipse.wb.internal.core.utils.exception.DesignerException: 4108 (Error loading module(s).). [ERROR] Failed to create an instance of 'com.google.gwt.maps.client.MapWidget' via deferred binding. The Google Maps API's version is gwt-maps-1.1.1-rc1.jar. I would like to know what I doing wrong.?? Is the Google Maps API version the lastest version?? 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: About creating 3D maps using GWT
Do you see playn http://code.google.com/p/playn/? Perhaps it helps to you 2011/10/5 rahul shambhunira...@gmail.com Hello, I am new to gwt.I am interested in working on 3D maps using GWT.And also add some widgets like check boxes,textboxes,buttons to my 3D maps on my html page.I also want some information on geocoding in gwt 3d maps.Can you guys help me?? Regards, Rahul -- You received 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: FileUpload and IE8
So is this a known issue or just something IE8 does? On Oct 3, 4:27 pm, GeorgeS sxoutt...@gmail.com wrote: This is a cross-post but I realized I'd posted on the GAE forum and this likely belongs here. I have a Java app written using GAE and GWT and it makes use of the FileUpload control to send a file to a datastore. It has been working fine with IE9 and I started testing with other browsers and noticed a problem. All of the current crop of browsers seems to work fine on myuploadusing a standard looking GWT form but whenIE8uploads, the onSubmitComplete fires and regardless of what I do IE hangs up. SinceIE8has around 12% of the browser market I need to find a fix. Any ideas? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-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: SliderBar
The incubator project is dead and no longer suppoted by gwt. Anyway you can fin it here: http://code.google.com/p/google-web-toolkit-incubator/ -- 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/-/ZbuJkAJMXaYJ. 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: iframe with GWT
Thanks! This looks awesome! I'll give it a try. I never would've understood enough on how GWT interacts with the DOM to do this myself, but this'll be a very educational exercise for me. Thanks again! -- 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/-/TRmeYwcG8acJ. 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 localization(i18n): make possible read on server side com.google.gwt.i18n.client.Messages (using spring on server side)
*Problem: * Required ability to have access to GWT client com.google.gwt.i18n.client.Messages files on server side(e.g. inside Servlet). *Problem reason: * In my case I needed to generate the PDF representation of the web page + save some string values in DB(when someone posts comment). *Desired behaviour*: Have a single MessageResource provider that can be executed from both server side and from client side: *Solution: * 1. First of all *make sure that all GWT message resources are generated from *.properties file via com.google.gwt.i18n.tools.I18NSync tool*(or you have to synchronise i18n .properties files with GWT message interfaces all the times). Otherwise, if you just using interfaces without using *.properties files, this approach will not work. 2. Now, let's *educate the server how to read GWT i18n *.properties*: 1. I am using spring framework as server side, so in this example we will educate Spring where the GWT's i18n *.properties are stored in the app: bean id=messageSource class=org.springframework.context.support.ReloadableResourceBundleMessageSource property name=basenames list valueclasspath:messages/value valueclasspath:error_messages/value valueclasspath:/blabla/project/client/resources/i18n/messages/GlobalRes/value /list /property property name=defaultEncoding value=UTF-8/ /bean the classpath:/blabla/project/client/resources/i18n/messages/GlobalRes is full path to GlobalRes.properties file. Make sure you include this file in classpath when yo compile your project. 2. Basically, after telling spring ReloadableResourceBundleMessageSource where to take the resources is pretty enough to have GWT messages being accessed on server side, by just injecting messageSource into any place on server and using messagesCourse.getMessage(messageCode,args[],locale). But this is not what we want to achieve. The aim is to have the same message resource provider that can be executed on server and on client side the same way. 3. So next, let's just create this Messages Provider that can be executed on both client and on server side: public class MessageResourceProvider { public static GlobalRes GLOBAL_RES; public static GlobalRes SERVER_GLOBAL_RES; static { try { GLOBAL_RES = GWT.create(GlobalRes.class); } catch (Exception e) { } } public static GlobalRes getGlobalRes() { if (GLOBAL_RES != null) { return GLOBAL_RES; } else { return SERVER_GLOBAL_RES; } } } First of all, make sure that MessageResourceProvider is stored under *.* client.** package, so GWT client side will be able to access it. So here we have two instances for providing resources: one for server part, the other one for client side. With client side everything is clear: we just try to call GWT.create(GlobalRes.class) in static block and if it's successfully executed(which actually means it executed on client side) then the getGlobalResources will return client version of GlobalRes. But what about SERVER_GLOBAL_RES? Where should it come from? Obviously - it should come from server. 4. Ok, let's *tell server part to how inject SERVER_GLOBAL_RES into MessageResourceProvider wher the server starts*. in order to do that I just added listener in my* web.xml* listener listener-class org.kuali.lum.cmi.server.util.CmiServletListener /listener-class /listener so application will call this listener at startup time. the listener code is very simple: public class CmiServletListener implements ServletContextListener { @Override public void contextInitialized(ServletContextEvent sce) { ServerMessageResourceFactory serverMessageResourceFactory = (ServerMessageResourceFactory) WebApplicationContextUtils.getWebApplicationContext(sce.getServletContext()).getBean(serverMessageResourceFactory); MessageResourceProvider.SERVER_GLOBAL_RES = serverMessageResourceFactory.getGlobalRes(); } @Override public void contextDestroyed(ServletContextEvent sce) { } } As you see at startup time I just set MessageResourceProvider's SERVER_GLOBAL_RES which I take from serverMessageResourceFactory.getGlobalRes(). 5. So this is almost it, except I haven't described the most tricky and interesting part: *how the serverMessageResourceFactory.getGlobalRes() will return the com.google.gwt.i18n.client.Messages resources instance that can de executed from server side and why hadn't we
Development Mode Hangs
I am trying to load a GWT project to run in development mode within Eclipse. It worked fine for a while, but now it's stuck. In the Development Mode tab, I get the message Development mode is loading... and Waiting for launch URLs. This remains indefinitely until I finally shut down the process. When I change the logging level to DEBUG I see that it goes to Loading modules and then sticks on the lone module in my project. It is a very small project, literally just 3 small panels. When I build the WAR and deploy it within JBoss, it runs fine. But when I try to debug, it just hangs. Anybody have any idea of where I can try to look to figure out what's happening? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Development Mode Hangs
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 05.10.2011 23:08, schrieb Steve: I am trying to load a GWT project to run in development mode within Eclipse. It worked fine for a while, but now it's stuck. In the Development Mode tab, I get the message Development mode is loading... and Waiting for launch URLs. This remains indefinitely until I finally shut down the process. When I change the logging level to DEBUG I see that it goes to Loading modules and then sticks on the lone module in my project. It is a very small project, literally just 3 small panels. When I build the WAR and deploy it within JBoss, it runs fine. But when I try to debug, it just hangs. Anybody have any idea of where I can try to look to figure out what's happening? Thanks in advance! run it in debug mode (java debugger), wait for it to get stuck, press pause and look at the threads. you should see what they are doing. a simple thread dump might also help - -- -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.14 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJOjM18AAoJENRtux+h35aGJKcP/19EdhCZC+fUKGcVMb3Nc3jf iXcJdoF6fTxKW5KCGdBLjWXta62HV4Y90DQaAO1soxWQcW1F4JQ89mCDKvkq8tUc ly0KzjKjzCV8jplARyToBhQqWkEtJvYkoQl/rlhag2V13M08rlskv5IJD8byrsxO RgdEy9bJbhf1ZVmK9NNR07IGIW8uPg8JVrqS/J22QTgm6o4ZM/RLhYmncZDAY58R L6GFMyuM805TP/Ry40cyzAZLEUi1lX7yEeXU/zbA2EnAMCGo+Gv5YDUKUjBgLjv6 ul0XG2h274Qqguz8S8P1UGz9Gxi76Atf/61FAOl2hAHREu+CkYtet27HmGAog5No D7PMRopCbsjNy8ToZQYVvlzyOoc9maSnM1/FFKLBnk9LdQ4F9Vrj4A/0cHIlU03F ndBdv/tMAVeTPv+wfiqIuPrmv1WzQto7bNToyEfX7R1NvYVhTJGHxKksXACAZlWm B0yvX1qfRYoRySLh6jjFyzYSeleJ7e45+s21Ei4OmusAfLUylz5O9V5tAI+J2sJa 9Lpwzwzke4WcC2cfQb44KkBzERMJWCwteo9GjcDYeeig69zW99uA8cazn8kjr8Ay MeybC6456Zn/Q3VeZlWzKN/lc0utJQbU1xMYyMnkvkWGFR0LCsgcNYX2QhcPM/fN faMAdgY5VyhO1qD4vGul =aLT/ -END PGP SIGNATURE- -- You received 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 intercept GWT RPC
If you work with spring you probably have a spring controller that extends RemoteServiceServlet implementation. (look at this topic comment) you can stick interceptor on handleRequest method as normally in Spring you would do :). or if you need to get some piece of information from decoded payload - you must override one of RemoteServiceServlet methods - but interceptor would not be possible as they are called internally. -- You received 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 Designer - Support to reference CSS from ui.xml as well as CSSResource
The CSS editorhttp://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/css_support.htmlyou refer to has actually be in the tool for a very long time. It was originally designed to support editing of global CSS styles referenced from HTML or from gwt.xml files. In the most recent GPE / GWT Designer release, we added CSS style editing directly in the property pane of the editor. This new CSS editing approach works with both globals styles as well as local styles defined in the current UiBinder XML file. If you would like to see the original CSS editor extended to support local styles, create a new issue in the GWT Issue Trackerhttp://code.google.com/p/google-web-toolkit/issues/list . http://1.bp.blogspot.com/-p4Y6uH0k1-o/TmjiP80r_XI/ADc/gxj3wKcX9Es/s1600/image4.png -- 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/-/6pTZaBRY5LQJ. 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.
out of memory error increase heap space or lower gwt.jjs.threads
I tried to do code splitting in GWT but i encounter this out of memory error during gwt compilation. even though I increase -Xmx to 1400 M from 1280M. This error still happens. So, what can I do to avoid this error coming during gwt compilation? Can someone help me? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
[gwt-contrib] Re: Firefox 7 DevMode Plugin (issue1560803)
http://gwt-code-reviews.appspot.com/1560803/diff/3001/plugins/xpcom/Makefile File plugins/xpcom/Makefile (right): http://gwt-code-reviews.appspot.com/1560803/diff/3001/plugins/xpcom/Makefile#newcode125 plugins/xpcom/Makefile:125: ifeq ($(BROWSER),ff70) On 2011/10/04 23:11:19, conroy wrote: so, i'm responsible for starting the cascade here, but I think now would be a good opportunity to clean up this section of the makefile by consolidating all the option settings for ff40+ rather than copy pasting this stanza every 6 weeks It seems like GNU Make doesn't have any other fancy control flow like switch-case. It doesn't even have something like if-greater-than. We would have to use shell's expr. Since we still have to set -DGECKO_VERSION, I think this is still cleaner. http://gwt-code-reviews.appspot.com/1560803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Firefox 7 DevMode Plugin (issue1560803)
http://gwt-code-reviews.appspot.com/1560803/diff/3001/plugins/xpcom/Makefile File plugins/xpcom/Makefile (right): http://gwt-code-reviews.appspot.com/1560803/diff/3001/plugins/xpcom/Makefile#newcode125 plugins/xpcom/Makefile:125: ifeq ($(BROWSER),ff70) On 2011/10/05 07:34:06, acleung wrote: On 2011/10/04 23:11:19, conroy wrote: so, i'm responsible for starting the cascade here, but I think now would be a good opportunity to clean up this section of the makefile by consolidating all the option settings for ff40+ rather than copy pasting this stanza every 6 weeks It seems like GNU Make doesn't have any other fancy control flow like switch-case. It doesn't even have something like if-greater-than. We would have to use shell's expr. Since we still have to set -DGECKO_VERSION, I think this is still cleaner. How about moving the MOZALLOC_DLLFLAGS, MOZJS_DLLFLAGS and ALLARCHCFLAGS befire the ifeq ($(BROWSER),ff40)? That would leave only the GECKO_VERSION and CFLAGS in each version-specific ifeq/endif block, as with ff3 to ff36 blocks. http://gwt-code-reviews.appspot.com/1560803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] More control over split point fragments
Hi, I'm finding it too difficult to keep code out of the left overs fragment. I have a single application which has a split point for every html page. Some of my pages use Widgets and other don't but the left overs fragment contains all the code to support Widgets which is a huge drag. Imagine I have three split points for three pages: Initial - A - B - C A and B use Widgets and so I want all the Widget related stuff to go in a common fragment. C does not use Widgets at all (perhaps GQuery) so it should not have to download the tons of java.util classes and other cruft it doesn't need. I first tried to make a WidgetFactory class using the Async Provider pattern outlined in the docs. e.g. WidgetFactory.access(new Callback() { public void widgets(WidgetFactory widgets) { // build ui with widgets Label label = widgets.label(hi); } }); But this does not work because *all *the code that uses the widgets ends up in the factory's split point. The callbacks are all called directly from the same split point as the widget factory. I've tried this too: WidgetFactory.access(new Callback() { public void widgets(WidgetFactory widgets) { build(widgets); } }); // try to force the building code to stay in this fragment build(null); But then all the Widget plumbing code goes in the left overs fragment (because its used in A and B). I want all the widget constructor code (and other methods common to A and B) to go in its own fragment. So my question is, is there any good way to put Widget code into a common fragment? I just can't think of any good way to do this currently. Is the left overs fragment doomed to grow forever? The only approach I can think of is not good for many classes. I could define a new fragment W that loads A and B and preloads all widget code that will be used later: Label l = new Label(); l.setText(null); l.setTitle(null); l.addClickListener(null); But this is not practical to do for every method in every class that will be used. There must be a better way! -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: More control over split point fragments
I think currently the left over fragment will grow forever if you introduce new commonly used classes (used in more than one split point). Maybe a potential solution will make it into one of the next GWT releases. Take a look at: https://groups.google.com/d/msg/google-web-toolkit-contributors/d70--5cWg_w/HILBHZX7WCoJ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] More control over split point fragments
You could try making a split point which contains other split points, something like this: I = Initial Fragment W - Split point from which all Widget using splitpoints exist W1 - Widget using split point 1 W2 - Widget using split point 2 G - Split point from which all GQuery using code exists G1 - GQuery split point page 1 I don't remember if this is so, but if all Widget using code ends up exclusive to W, then it won't be in the leftovers fragment. -Ray On Wed, Oct 5, 2011 at 9:18 AM, John Patterson jdpatter...@gmail.com wrote: Hi, I'm finding it too difficult to keep code out of the left overs fragment. I have a single application which has a split point for every html page. Some of my pages use Widgets and other don't but the left overs fragment contains all the code to support Widgets which is a huge drag. Imagine I have three split points for three pages: Initial - A - B - C A and B use Widgets and so I want all the Widget related stuff to go in a common fragment. C does not use Widgets at all (perhaps GQuery) so it should not have to download the tons of java.util classes and other cruft it doesn't need. I first tried to make a WidgetFactory class using the Async Provider pattern outlined in the docs. e.g. WidgetFactory.access(new Callback() { public void widgets(WidgetFactory widgets) { // build ui with widgets Label label = widgets.label(hi); } }); But this does not work because all the code that uses the widgets ends up in the factory's split point. The callbacks are all called directly from the same split point as the widget factory. I've tried this too: WidgetFactory.access(new Callback() { public void widgets(WidgetFactory widgets) { build(widgets); } }); // try to force the building code to stay in this fragment build(null); But then all the Widget plumbing code goes in the left overs fragment (because its used in A and B). I want all the widget constructor code (and other methods common to A and B) to go in its own fragment. So my question is, is there any good way to put Widget code into a common fragment? I just can't think of any good way to do this currently. Is the left overs fragment doomed to grow forever? The only approach I can think of is not good for many classes. I could define a new fragment W that loads A and B and preloads all widget code that will be used later: Label l = new Label(); l.setText(null); l.setTitle(null); l.addClickListener(null); But this is not practical to do for every method in every class that will be used. There must be a better way! -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: More control over split point fragments
On 05/10/2011 23:35, Jens wrote: I think currently the left over fragment will grow forever if you introduce new commonly used classes (used in more than one split point). Maybe a potential solution will make it into one of the next GWT releases. Take a look at: https://groups.google.com/d/msg/google-web-toolkit-contributors/d70--5cWg_w/HILBHZX7WCoJ That seems likes a step in the right direction - but ideally there would be some algorithm that can put common code into new shared fragments. I'm sure its a lot harder than I imagine to handle all the permutations and load sequences. If some code is shared by A+B and some other code by B+C and more by A+C the algorithm should create a 3 new fragments (rather than a single left-overs) and then merge some of them if they are below some magical threshold. -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: More control over split point fragments
On Wed, Oct 5, 2011 at 12:52 PM, John Patterson jdpatter...@gmail.comwrote: That seems likes a step in the right direction - but ideally there would be some algorithm that can put common code into new shared fragments. I'm sure its a lot harder than I imagine to handle all the permutations and load sequences. If some code is shared by A+B and some other code by B+C and more by A+C the algorithm should create a 3 new fragments (rather than a single left-overs) and then merge some of them if they are below some magical threshold. The basic code splitting algorithm can handle this, and more advanced split strategies were considered by Lex in his initial writeup, but none were ever implemented. There were tons of corner cases in the simple splitting scenario, so I am sure there would be even more trying to do something trickier. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: More control over split point fragments
The problem of detecting common code and putting them into shared fragments of certain size is related to the Graph Partitioning Problem, like many compiler problems, which is NP-Complete. That doesn't mean it can't be done, Alan Leung is working on this for the next release, it just means it has to be done with heuristics, and it takes time to get those right. Basically, you can make a graph, where each vertex is a split point, and each edge between vertices represents a shared fragment of code that is alive in both. This graph is quite tangled up for real code bases, but the general idea is to try and find split points that share lots of common code, and merge them, or move some shared code to the initial fragment, or the leftovers fragment as to permit merging to proceed, so that a whole bunch of other code can be made exclusive to the merged fragment that would otherwise be forced into leftovers. I've probably bungled the explanation, Alan can probably describe it in more detail. -Ray On Wed, Oct 5, 2011 at 11:02 AM, John Tamplin j...@google.com wrote: On Wed, Oct 5, 2011 at 12:52 PM, John Patterson jdpatter...@gmail.com wrote: That seems likes a step in the right direction - but ideally there would be some algorithm that can put common code into new shared fragments. I'm sure its a lot harder than I imagine to handle all the permutations and load sequences. If some code is shared by A+B and some other code by B+C and more by A+C the algorithm should create a 3 new fragments (rather than a single left-overs) and then merge some of them if they are below some magical threshold. The basic code splitting algorithm can handle this, and more advanced split strategies were considered by Lex in his initial writeup, but none were ever implemented. There were tons of corner cases in the simple splitting scenario, so I am sure there would be even more trying to do something trickier. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Re: Add stub support for AutoBeanFactorySource to GWT emul code. (issue1562803)
On 2011/10/05 05:27:27, mbx wrote: LGTM Thanks Mike. http://gwt-code-reviews.appspot.com/1562803/ -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
Re: [gwt-contrib] Re: More control over split point fragments
I think Ray described it perfectly. I am current in process of make the change he described. While I have the basic idea implemented (minus some bugs I am current fixing), the trick is to know what are the right parameters for doing these kinda of things. Example 1) How many Async point do we merge? You can imagine if you merge all N spit points, you'd end up with a zero size leftover. 2) How big should a fragment be before we stop merging? You don't want to merge too much so your exclusive fragment become bigger than the leftover. I have studied Lex Spoon's writeup extensively a few weeks back. While I do believe it is beneficial to leftover code size, when I bought it up with some of the internal projects, they believe the cache-ability lost with multiple leftover fragments is not something they'd trade off. That's why I went down the fragment merging route. -Alan On Wed, Oct 5, 2011 at 11:36 AM, Ray Cromwell cromwell...@google.comwrote: The problem of detecting common code and putting them into shared fragments of certain size is related to the Graph Partitioning Problem, like many compiler problems, which is NP-Complete. That doesn't mean it can't be done, Alan Leung is working on this for the next release, it just means it has to be done with heuristics, and it takes time to get those right. Basically, you can make a graph, where each vertex is a split point, and each edge between vertices represents a shared fragment of code that is alive in both. This graph is quite tangled up for real code bases, but the general idea is to try and find split points that share lots of common code, and merge them, or move some shared code to the initial fragment, or the leftovers fragment as to permit merging to proceed, so that a whole bunch of other code can be made exclusive to the merged fragment that would otherwise be forced into leftovers. I've probably bungled the explanation, Alan can probably describe it in more detail. -Ray On Wed, Oct 5, 2011 at 11:02 AM, John Tamplin j...@google.com wrote: On Wed, Oct 5, 2011 at 12:52 PM, John Patterson jdpatter...@gmail.com wrote: That seems likes a step in the right direction - but ideally there would be some algorithm that can put common code into new shared fragments. I'm sure its a lot harder than I imagine to handle all the permutations and load sequences. If some code is shared by A+B and some other code by B+C and more by A+C the algorithm should create a 3 new fragments (rather than a single left-overs) and then merge some of them if they are below some magical threshold. The basic code splitting algorithm can handle this, and more advanced split strategies were considered by Lex in his initial writeup, but none were ever implemented. There were tons of corner cases in the simple splitting scenario, so I am sure there would be even more trying to do something trickier. -- John A. Tamplin Software Engineer (GWT), Google -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors -- http://groups.google.com/group/Google-Web-Toolkit-Contributors
[gwt-contrib] Make client-side JUnit 3 classes available without GWTTestCase. (issue1564803)
Reviewers: rjrjr, Description: Make client-side JUnit 3 classes available without GWTTestCase. Review by: rj...@google.com Please review this at http://gwt-code-reviews.appspot.com/1564803/ Affected files: M user/src/com/google/gwt/junit/JUnit.gwt.xml A user/src/com/google/gwt/junit/JUnit3.gwt.xml Index: user/src/com/google/gwt/junit/JUnit.gwt.xml === --- user/src/com/google/gwt/junit/JUnit.gwt.xml (revision 10641) +++ user/src/com/google/gwt/junit/JUnit.gwt.xml (working copy) @@ -18,6 +18,7 @@ !-- will inherit this module automatically.-- module inherits name=com.google.gwt.user.User/ + inherits name=com.google.gwt.junit.JUnit3/ super-source path=translatable/ Index: user/src/com/google/gwt/junit/JUnit3.gwt.xml === --- user/src/com/google/gwt/junit/JUnit3.gwt.xml(revision 0) +++ user/src/com/google/gwt/junit/JUnit3.gwt.xml(revision 0) @@ -0,0 +1,26 @@ +!-- -- +!-- Copyright 2011 Google Inc. -- +!-- Licensed under the Apache License, Version 2.0 (the License); you-- +!-- may not use this file except in compliance with the License. You may -- +!-- may obtain a copy of the License at-- +!-- -- +!-- http://www.apache.org/licenses/LICENSE-2.0 -- +!-- -- +!-- Unless required by applicable law or agreed to in writing, software-- +!-- distributed under the License is distributed on an AS IS BASIS, -- +!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or-- +!-- implied. License for the specific language governing permissions and -- +!-- limitations under the License. -- + +!-- Defines GWT-translatable versions of the JUnit 3 classes, such as +junit.framework.Assert. + +Normally you don't need to inherit this module. It isn't necessary when using +GWTTestCase, and these classes shouldn't be used in production web apps. But +you might need it if you're writing testing tools. -- + +module + super-source path=translatable +include name=junit/**/*.java/ + /super-source +/module -- http://groups.google.com/group/Google-Web-Toolkit-Contributors