Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?
On Friday, March 7, 2014 10:30:50 AM UTC+1, Thomas Broyer wrote: There are also a few projects that directly try to use your GWT interfaces on server-side; and it's also a planned feature of GWT proper (no ETA yet). Just curious, but what about https://gwt-review.googlesource.com/#/c/1550/ ? An old commit (still not merged), but is it supposed to help in this way? Theoretically it should, but I can't quite 'grasp' all the bits from such a big change. I guess it was before the GWT.create() on the server era, but again, I'm curious about its future. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: in GWT, can we manage Messages Constants (i18n) at Server as we manage at Client?
Ok, got it. Thank you for the explanation. On Friday, March 7, 2014 6:13:19 PM UTC+1, Thomas Broyer wrote: It is one step towards I18N on the server. GWT.create() on the server was one such other steps. The last one being generating Messages, Constants, etc. implementations for use on the server side, that the GWT.create() on the server could load when called with your I18N interfaces. I can't really tell about the future of this patch, as it's a contribution from an ex-Googler and he probably doesn't have much free time left to contribute such big changes to GWT. But the future of GWT.create() seems to be that same approach: use annotation processors to generate implementations of your interfaces and then GWT.create() will only have to pick the appropriate class for the given interface (no more generator run during the GWT compilation). It's still a long way before we reach that stage though (with probably a lot of breaking changes: GWT generators didn't use to be triggered by annotations, but annotation processors are harder –not impossible though– to trigger on anything else than annotations, so we –as users– might have to change our code to at least introduce annotations here and there to trigger the annotation processors). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
Re: GWT - Send a message from the server to the client?
I'd use http://errai.github.io/ and its bus. On Monday, October 28, 2013 10:01:27 PM UTC+1, Joshua Godi wrote: Good afternoon, I was curious how I would properly send a message from the server to the client? Here is my scenario: Client A - Modifies User1 from the GUI and pushes the data to the server Client B - Is looking at User1 and needs to be notified that there are changes that have been made So the server needs to send a message to all clients that the user has changed. What is the best way to solve this? Thanks, Joshua -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 2.5.1 now available
See https://groups.google.com/d/topic/google-web-toolkit-contributors/Sljy8sRR3Io/discussion According to the timeline there will be a RC on 4th of November and subsequent RCs only if needed. The final release should be out on 2nd of Dec. On Friday, September 27, 2013 4:37:35 PM UTC+2, Ed wrote: When will release 2.6 will come out? (4 nov?) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT JettyLauncher.java How to enable SSL programaticly
Or, enable the SSL support of the embedded Jetty server. See http://stackoverflow.com/questions/6370919/how-to-enable-https-in-gwts-jetty and http://stackoverflow.com/questions/15791758/run-gwt-with-https-enabled/15793359#15793359 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Custom cell in CellTable with TextCell and SelectionCell
A quick view reveals you haven't consumed the desired events in the cell's constructor. Something like: public CustomStatusCell() { super(click, keydown); // And so on. // ... } -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Google GWT with Eclipse eats up disk space -
If you are using Windows, I guess you hit http://code.google.com/p/google-web-toolkit/issues/detail?id=5261 (related to https://code.google.com/p/google-plugin-for-eclipse/issues/detail?id=74). In the first link you can find the folders to clean, as well as some useful scripts to use from time to time. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: DataGrid and using Event.setCapture to implement column resizing.
Not an answer to your problems, but other people in the past have followed the same road. Have a look at http://code.google.com/p/google-web-toolkit/issues/detail?id=6401 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Anchor does not work in IE - very strange problem!
Audio element is supported from IE 8 according to thishttp://caniuse.com/#search=audio . Always use the static method isSupported() for all @PartialSupporthttp://www.gwtproject.org/javadoc/latest/com/google/gwt/dom/client/class-use/PartialSupport.htmlclasses for runtime check. On Monday, June 24, 2013 7:21:07 PM UTC+2, Magnus wrote: Hi, setting the compiler mode to pretty did not result in a more comprehensive error message: com.google.gwt.core.client.JavaScriptException: (TypeError) description: 'null.nullField' ist Null oder kein Objekt But I finally found the nullpointer exception by tracing. It happened in the newly added code for audio: private Audio snd_Move = Audio.createIfSupported (); ... snd_Move.setSrc(...); // snd_Move is null!!! So the original problem is solved now. Many thanks for all the advices! Last questions: - Why isn't this exception alerted with a comprehensive message, without calling setUncaughtExceptionHandler, like other client-side exceptions? - The fact, that Audio.createIfSupported () returns null: Does this mean that IE 8/9 does not support audio at all? Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to add an icon to MenuItem?
You don't need to extend MenuItem. See http://stackoverflow.com/questions/16399241/how-to-add-an-icon-to-a-menuitem-in-gwt -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 2.5.1 - Incubator Deprecated Classes
Unfortunately I can't say much about ADA and 508 compliance, but the CellTable/DataGrid supports ARIA http://www.w3.org/TR/wai-aria/attributes (see docs https://developers.google.com/web-toolkit/doc/latest/DevGuideA11y). Also, such grids are the only enterprise grid officially supported by GWT, that means a lot when it comes to accessibility and browser support. Also, the Incubator has been deprecated long time ago (even before GWT 2.4) and it was a parallel project from Google, not a component nor a dependency of GWT. See the official statementhttps://groups.google.com/forum/?fromgroups=#!searchin/google-web-toolkit-contributors/incubator/google-web-toolkit-contributors/a3_TpzXelS0/fv1sP7UrEj4Jof its deprecation. The refactoring can be quite hard sometimes especially because it involves a logic (and practical) switch, from widgets to cells. But (cells apart) the amount of code needed to create the table, add fetching + paging support, is substantially cleaner and less cumbersome. All the things under com.google.gwt.gen2.table.* are somewhat relative to ScrollTable and PagingScrollTable, but unfortunately there is no drop-in replacemente for the ValueSpinner. But it shouldn't be hard to find or create a new one from scratch. And you can keep using the incubator, but at your own risk :) I do not know if the GWT 2.1-compatible jar is still usable with the latest release, I guess not, so you need to build the incubator on your own and keep fixing the compiling issues (as explained herehttp://code.google.com/p/google-web-toolkit-incubator/wiki/MakingIncubatorBetter ). -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: GWT 2.5.1 - Incubator Deprecated Classes
By the errors above, I guess you need to move from Paging/ScrollTable to DataGrid (or CellTable). But it is not a matter of changing imports. The APIs are quite different, you need to refactor in order to move to DataGrid. You can start from herehttps://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellWidgets#celltable(the same applies to DataGrid which is a CellTable with fixed headers/footers). For paging/retrieving data see herehttps://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellWidgets#Selection_Data_Paging(the same applies for all cell widgets). For column sorting and width adjusting see herehttps://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellTable(the same applies for DataGrid). For custom/multiline header/footer/lines there are unfortunately no official docs, but you can checkout the custom data grid showcase samplehttp://gwt.googleusercontent.com/samples/Showcase/Showcase.html#!CwCustomDataGrid. Also do note that the old PagingScrollTable is based on widgets, whereas the new DataGrid is based on cellshttps://developers.google.com/web-toolkit/doc/latest/DevGuideUiCellWidgets . What are the other classes you used but not listed in the incubator's page? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: columnSortHandler on a Dynamic CellTable
Also, it looks like https://groups.google.com/forum/?start=hl=en#!topic/google-web-toolkit/7CFHEhWUjQA[1-25-false] and http://stackoverflow.com/questions/16146094/gwt-columnsorthandler-setcomparator-for-all-columns-in-a-loop-make-the-sorting -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: JavaDocs are out of date?
See https://plus.google.com/111739836936169749229/posts/7ZYGmbTE5WE -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Multiple instances of a view
This is how GIN works, it always inject a new instance when requested. If you want to inject the same instance, bind the dependency into Singleton scope, using bind(YourClass.class).in(Singleton.class), inside you GinModule. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: moveable areas as in iGoogle?
You need some kind of drag drop functionality. You can either use the built-in GWT drag drop support (which is based on the HTML5 drag drop API [1]), or use the always handy gwt-dnd [2]. Do note that HTML5 dd API is about moving data, not actual widgets, but it can be used also in that way, instead with gwt-dnd you really move things around. See the showcase [3], in which you can find some useful samples that may work for you. [1] http://www.html5rocks.com/en/tutorials/dnd/basics/ [2] http://code.google.com/p/gwt-dnd/ [3] https://gwt-dnd.appspot.com/#InsertPanelExample On Wednesday, April 10, 2013 12:33:33 PM UTC+2, Magnus wrote: Hi, how can one realize such moveable areas, which can be placed with drag drop at predefined positions, such as in iGoogle? Is there a tutorial? Thanks Magnus -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to globally catch all exceptions?
Use the GWT.setUncaughtExceptionHandler() [1]. [1] http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/core/client/GWT.html#setUncaughtExceptionHandler%28com.google.gwt.core.client.GWT.UncaughtExceptionHandler%29 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Removing obfuscation from a stack trace.
Read the StackTraceDeobfuscator doc [1], you are either missing the -deploy dir argument for creating the symbolMaps, or it is not in the right place. [1] http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/logging/server/StackTraceDeobfuscator.html On Tuesday, April 9, 2013 5:06:23 PM UTC+2, Flying-w wrote: I've implemented server side logging of client side exceptions, by making the following changes in gwt.xml: set-property name=compiler.stackMode value=emulated / set-configuration-property name=compiler.emulatedStack.recordLineNumbers value=true / set-configuration-property name=compiler.emulatedStack.recordFileNames value=true / A custom implementation SimpleRemoteLogHandler provides the handler to relay the messages to the server. And a servlet: servlet servlet-nameremoteLogging/servlet-name servlet-classcom.google.gwt.logging.server.RemoteLoggingServiceImpl/servlet-class init-param param-namesymbolMaps/param-name param-valueshark_sencha_prototype/symbolMaps/param-value /init-param /servlet servlet-mapping servlet-nameremoteLogging/servlet-name url-pattern/shark_sencha_prototype/remote_logging/url-pattern /servlet-mapping When an exception occurs (for example an operation on a null string), the stack trace below is typical of what shows up. I was expecting RemoteLoggingServiceImpl to fully remote the obfuscation, however is this as good as it gets? It feels like there should me more, as it's doing nothing more than mirroring what can also be reported on the client concerning the exception. com.google.gwt.core.client.JavaScriptException: (TypeError): Cannot call method 'Bl' of null Unknown.he(StackTraceCreator.java:174) Unknown.Oc(StackTraceCreator.java:501) Unknown.uS(Exceptions.java:29) Unknown.Zid(JobsTab.java:293) Unknown.Kfd(CategoryTabs.java:81) ... Thanks Simon -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Displaying a Label with icon?
For a widget-based solution, without rolling out something in-house, my preferred approach is to use TextButton [1]. Note that there is not a direct method to setup the icon of the inner cell, so you have to subclass TextButton and add a simple method like: public void setIcon(ImageResource icon) { ((TextButtonCell) getCell()).setIcon(icon); } Such button extends CellWidget and is backed by a cell that supports the Appearance pattern [2]. Also it support border collapse in order to make a button-bar-like set of buttons, and also primary/negative styles to let a button stand out. [1] http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/widget/client/TextButton.html [2] http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Uncaught umbrella exception.
For the annotation processor, put requestfactory-apt.jar in you classpath and you should be ok. If you want to manually run it, see the official wiki [1], where you can find the command line, maven and ant (in comments) instructions. [1] http://code.google.com/p/google-web-toolkit/wiki/RequestFactoryInterfaceValidation#ValidationTool On Sunday, April 7, 2013 2:39:32 PM UTC+2, Aman Sharma wrote: Thanks Thomas. Your solution is right. Now I have to do this http://vivagwt.blogspot.in/2011/09/requestfactory-en-gwt-24.html but how do I add requestfactory-apt.jar annotation processor to my project manually. Instructions on this link is for only Eclipse. And also do I have to define a getter method even I am not using it just to prevent those Umbrella Exceptions? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?
Good, another two suggestions: - if you do not want opacity/transition, simply use NativeVerticalScrollbar.Resources as-is; - in order to reliably know the right scrollbar width/height (in case you want to stick with a native scrollbar), you can use the static methods AbstractNativeScrollbar.getNativeScrollbarWidth() for the vertical scrollbar, and AbstractNativeScrollbar.getNativeScrollbarHeight() for the horizontal one. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Changes Opacity for vertical scrollbar inside 2.4 DataGrid?
DataGrid uses a CustomScrollPanel for its data table. Such panel uses transparent-style native scrollbars, but the resources used (NativeVerticalScrollbar.ResourcesTransparant) are hardcoded in the CustomScrollPanel constructor. I guess you can: - extend the DataGrid to obtain a reference of the inner CustomScrollPanel. See [1] on how to do that; - extend the default NativeVerticalScrollbar.ResourcesTransparant to provide your own style (or use the no-op NativeVerticalScrollbar.Resources to remove any opacity); - in the extended DataGrid constructor, after super(), use the CustomScrollPanel reference to set up a new scrollbar using the method setVerticalScrollbar(...) passing in a new NativeHorizontalScrollbar with your new resources. The same applies for the horizontal scrollbar. Or you can look at the DOM and figure out some hack to obtain the scrollbar container (as you tried). [1] https://groups.google.com/forum/#!msg/google-web-toolkit/cdB07DEtmXU/9TNb72MI3Q4J -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Drag and drop (and Internet Explorer)
Check if DragDropEventBase.isSupported() and if not, stop trying :D According to [1] is not supported by ie6 and ie8 and there is a 'maybe' for everything else. I can't see where the problem could be, you are doing the right things: - set the element draggable; - add a dragstarthandler to the element and use setData(...) in it; - add a dragoverhandler on the element target; - add a drophandler on the element target, use preventDefault() and consume the data with getData() (you are not doing that tough, hence try it). See [2] from slide 54. Then I'd try to use the native handlers (e.g, addDropHandler() and so on, instead of addDomHandler()) if supported by the widget. Or change the target widget. Also, as suggested in the commit [3], try to select the text before start to drag. Can't say anything else, at the moment. [1] http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/event/dom/DragEvent.gwt.xml [2] http://static.googleusercontent.com/external_content/untrusted_dlcp/www.google.com/it//events/io/2011/static/presofiles/gwt_html5_a_web_develops_dream.pdf [3] http://gwt-code-reviews.appspot.com/1420811 -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Drag and drop (and Internet Explorer)
Reading [1] seems like IE9 supports dataTransfer object only on images, links, and text. Starting from IE10 it supports dd on any element (using the draggable attribute), and the file attribute to the dataTransfer object. On IE9 try to use an hyperlink/image as a draggable. [1] http://msdn.microsoft.com/en-us/library/ie/hh673539%28v=vs.85%29.aspx On Wednesday, March 20, 2013 6:12:46 PM UTC+1, Helen wrote: Hello all, I've created a test project to experiment with native drag and drop (2.5.1). It works in fine Firefox and Chrome, but in Internet Explorer the dropItem events don't fire. Here is the code: public void onModuleLoad() { final TextBox textBox = new TextBox(); final HTML dragItem = new HTML(pDrag this/p); dragItem.getElement().setDraggable(Element.DRAGGABLE_TRUE); dragItem.addDragStartHandler(new DragStartHandler() { @Override public void onDragStart(DragStartEvent event) { event.setData(text, id); event.getDataTransfer().setDragImage(dragItem.getElement(), 10, 10); } }); final HTML dropItem = new HTML(pDrop onto this/p); dropItem.addDomHandler(new DragOverHandler() { public void onDragOver(DragOverEvent event) { textBox.setText(Dragging over dropItem); } }, DragOverEvent.getType()); dropItem.addDomHandler(new DragLeaveHandler() { @Override public void onDragLeave(DragLeaveEvent event) { textBox.setText(); } }, DragLeaveEvent.getType()); dropItem.addDomHandler(new DropHandler() { public void onDrop(DropEvent event) { event.preventDefault(); Window.alert(Dropped!); } }, DropEvent.getType()); FlowPanel fp = new FlowPanel(); fp.add(dragItem); fp.add(dropItem); fp.add(textBox); RootLayoutPanel.get().add(fp); } Does anyone have any ideas? Many thanks, Helen -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: MultiWordSuggestOracle with multiple values?
Something like... http://raibledesigns.com/rd/entry/creating_a_facebook_style_autocomplete ? I guess you simply have to define you own SuggestionDisplay and when you select an entry, add an inline label styled as you want just before the suggestbox. On Tuesday, March 5, 2013 3:22:03 PM UTC+1, membersound wrote: Hi, is the MultiWordSuggestOracle prepared to somehow being able to display not only one value, but eg a comma separated list of elements chosen fomr the suggest dropdown (facebook like)? Or would I have to extend this on my own? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: New widgets: Best way to implement them?
+1 Just adding few thoughts. Personally I think that, performance wise, cells are the best. But it is also true that they can be tricky to work with, when defining new widgets. Luckily CellWidget helps *a lot* this way. Using CellWidget + Appearance pattern [1] + maybe UiRenderer, let you code widgets using UiBinder with a swappable/device-aware UI that are (supposed to be) a bit faster than the traditional extends Widget/Composite + UiBinder way of defining widgets. Sencha gxt 3 uses extensively the so called cell + appearance pattern, with good results over the previous implementation [2]. I see the IsRenderable strategy simply as an added value, a plus, when using a RenderablePanel as root widget of others composites. I guess it is not (actually) usable with CellWidget (by reading [3]), but in a future it may well be. Such strategy can also potentially open the doors to some sort of server-side widget rendering, using the server-side part of the already available ElementBuilder API (see [4]). As a side note, interesting are the choices made in Collide: low-level mvp-based widgets built upon the Element object coming from the Elemental library, with some added custom listeners, as necessary [5]. [1] http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets [2] http://www.sencha.com/products/gxt/whats-new-in-sencha-gxt-3/ [3] https://groups.google.com/d/topic/google-web-toolkit-contributors/g8WPRxkdqPA/discussion [4] https://groups.google.com/d/topic/google-web-toolkit/neeh5YxKm-I/discussion [5] http://code.google.com/p/collide/source/browse/#git%2Fjava%2Fcom%2Fgoogle%2Fcollide%2Fclient%2Fui -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to attach custom event handler to InputField of EditTextBox?
Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html ? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound wrote: Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement that is created if I click an entry? (My goal is to allow only numbers for a certain TextBox, which is easy using KeyPressEvent. But how can I attach this to that box?) Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to detect number keys in a NativeEvent?
Check if event.getKeyCode() is between 48 and 57 (0 to 9 inclusive). And do the same for the keypad, if necessary. On Saturday, February 9, 2013 5:43:19 PM UTC+1, membersound wrote: Hi, looking at NativeEvent extends JavaScriptObject: how can I detect if the event was a number? I tried using Character.isDigit(event.getKeyCode()), but this would give me an error: The method isDigit(char) in the type Character is not applicable for the arguments (int) How could I else detect his? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to attach custom event handler to InputField of EditTextBox?
Sorry, misread. Then either use a column-based field updater that validates your input, or roll your own, say, EditNumberCell that accepts only number elements, just like NumberCell does (I guess it's easy by extending EditTextBox). In both cases you can use NumberFormat to validate http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/i18n/client/NumberFormat.html . On Saturday, February 9, 2013 5:45:41 PM UTC+1, membersound wrote: Because NumberCell is not an editable Cell? Am Samstag, 9. Februar 2013 15:54:36 UTC+1 schrieb Andrea Boscolo: Why not using http://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/cell/client/NumberCell.html? On Saturday, February 9, 2013 3:43:43 PM UTC+1, membersound wrote: Hi, I have a CellTable with EditTextBox. How can I attach a custom event handler to the InputElement that is created if I click an entry? (My goal is to allow only numbers for a certain TextBox, which is easy using KeyPressEvent. But how can I attach this to that box?) Thanks -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: How to download a file from server without browser opening new window?
Define your anchor in uibinder and use @UiField(provided = true) in thejava file. Then instantiate it with that url before the binding call. On Friday, February 1, 2013 5:18:34 PM UTC+1, membersound wrote: I'm using ui:binder. How should I provide href for the anchor as GWT.getModuleBaseURL()? Am Freitag, 1. Februar 2013 17:13:06 UTC+1 schrieb Thomas Broyer: Can't you just link to your servlet? a href={0}Download/a (where {0} is replaced with your URL) or new Anchor(Download, GWT.getModuleBaseURL() + MyServlet) On Friday, February 1, 2013 4:57:06 PM UTC+1, membersound wrote: Hi, I created a servlet that provides a downloadable file (from String content) by writing to the ServletOutputStream. On the client side, I trigger the file download by an Anchor with: Window.open(GWT.getModuleBaseURL() + MyServlet, _blank, ); It works fine, BUT it seems to open a new browser window, which is somehow directly closed. After this the file download dialog is show. How can I prevent this flickering of a new browser window? Can't I achieve this somehow inline? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: load indicator when loading application
This is interesting. I'm not aware of any technique used to hook the bootstrap phase before the onModuleLoad() gets called. But it's also true that in the bootstrap phase [1] for a gwt app, the linker is the one responsible of its startup (iframe, cross-site, ...). So digging into [2] and [3] is probabily the place to look for answers. The idea is to wait for the DOMContentLoaded/readystate event and alter the dom to show what is happening. Unfortunately I guess that much of the bootstrapping is done before you can freely manipulate the dom. After the onModuleLoad() gets called (always after such DOMContentLoaded/readystate event but not necessarily after the onload() [4]) you are free to use anything you want (dom or not, related): - using a loading gif to be removed when everything is ready; - faking a loading indicator by using some predefined (i.e., defined in the host page) images/divs to be removed in some particular steps (e.g., after an initial async returns) which causes a simple loading progress effect. [1] https://developers.google.com/web-toolkit/doc/latest/DevGuideOrganizingProjects?hl=it#DevGuideBootstrap [2] http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/linker/ [3] http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/ext/linker [4] http://code.google.com/p/google-web-toolkit/source/browse/trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js#88 On Friday, February 1, 2013 11:15:05 AM UTC+1, Thomas Lefort wrote: Is it possible (by fiddling with the bootstrap or else) to display a loading indicator at start-up, I mean to show how much is left to load of the application? Thanks, Thomas -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: how to create columns with common header in data grid.
Have a look at http://showcase3.jlabanca-testing.appspot.com/#!CwCustomDataGrid and see the source (maybe some classe have been renamed, but you got the point). On Thursday, December 27, 2012 12:14:27 PM UTC+1, shray rawat wrote: https://lh5.googleusercontent.com/-SA2dPCsyiG8/UNwthugGWXI/A2c/l1qY23f-GYo/s1600/TABLE.JPG === see the attached files for this question. I AM HAVING A,B,C AS MAIN HEADERS AND D,E,F,G AS THE SUB HEADERS UNDER C. how can i create these columns in data grid -- 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/-/ar6pEEPeynYJ. 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: Upgrading from 2.4 to 2.5: Issues with Generics?
According to https://groups.google.com/d/topic/gwt-steering/9K_HtTdVVpE/discussion there are some regressions. I guess your problem is related. The known regression with generics has a review pending, so you may be able to test is against trunk in a few days, or wait for the 2.5.1 release. On Wednesday, December 19, 2012 3:36:20 AM UTC+1, objectuser wrote: I'm working through the upgrade to 2.5 and I'm having trouble with my use of generics when used with an RPC service. My app works fine in 2.4, but if I change it to use 2.5, my service calls never make it to the server. I've been able to reproduce the problem by using a generic method. If I have something like this, it's fine: public Result execute(Command command) { ... } However, if it's like this, the method is never invoked on the server: public T extends SomeType Result execute(CommandT command) { ... } Has anyone else encountered something similar? -- 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/-/QE6In1CfTP0J. 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/CSS text align problem
There is a typo in the table-row div (missing display). Then use text-align if you want to align just the text. See http://jsfiddle.net/a4RmK/ I'd rather try a cleaner solution though, like http://jsfiddle.net/nnpGb/ On Tuesday, December 18, 2012 9:46:15 AM UTC+1, Magnus wrote: Hi Thomas, I assume you mean something like this: http://jsfiddle.net/3EJ7A/19/ In this case the cells all are aligned to the left. How can we position them left, right and centered? Magnus -- 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/-/KrvqTsIR4qcJ. 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/CSS text align problem
I see it misaligned even on firefox. Anyway simply add the divs to the outer panel in the left, right, center order (not left, center, right as you did). Recheck my last fiddle. AFAIK should work also in IE. On Tuesday, December 18, 2012 6:27:19 PM UTC+1, Magnus wrote: Hi Andrea, I would also prefer a cleaner solution, and I explicitely tried your approach (using the code below). But it also gets misaligned in IE8: http://www.bavaria64.de:8080/bcst/index.html?testStatusBar The word RIGHT is not aligned to the right, but below the word LEFT. There must be a solution that also works for IE... Can you fix this? Thank you Magnus --- private void init_4 () { final String stl_outer = width:100%;; final String stl_lf = float:left;; final String stl_ct = text-align:center;; final String stl_rt = float:right;; pnl_lf = createHTML (stl_lf); pnl_ct = createHTML (stl_ct); pnl_rt = createHTML (stl_rt); FlowPanel outer = new FlowPanel (); setStyle (outer,stl_outer); outer.add(pnl_lf); outer.add(pnl_ct); outer.add(pnl_rt); add(outer); addStyleName (apl-StatusBar); pnl_lf.setHTML(LEFT!); pnl_rt.setHTML(RIGHT!); pnl_ct.setHTML(CENTER!); } -- 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/-/e2kcvNPnhFcJ. 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/CSS text align problem
Actually a !DOCTYPE HTML declaration means standard mode, not strict. So you are fine with it. See https://developers.google.com/web-toolkit/doc/latest/DevGuideUiPanels#Standards To force IE8 standard mode try to add in the head element meta http-equiv=X-UA-Compatible content=IE=8 See http://code.google.com/p/google-web-toolkit/wiki/IE8Support On Wednesday, December 19, 2012 3:17:54 AM UTC+1, Magnus wrote: Hi, in the meantime I tried more than 5 different approaches, using divs with float or display:table/row/cell and that. All approaches work with all browsers except IE8! So I found that the problem may not be located within the CSS! The key observation for me is that the problem went away while playing around with IE's display and document modes: When switching to IE8 standards mode, it works fine! When it didn't work, IE was in IE 7 standards mode (page standard). So the non-working IE 7 standards mode is the page standard. One approach could be to make IE asume that the working IE 8 standards mode is the page standard. But how? I found that my host page simply begins with !doctype html. I know that this means strict mode, but can we extend this so that IE assumes its IE8 standards mode? My current goal is to make IE switch to IE8 standards mode automatically. I believe that it could be a solution to guide IE into that direction... Magnus -- 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/-/Wn9z4pvQRIIJ. 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: Protocol Buffers for GWT: Issue 2649
It is indeed a nice feature to have out of the box. Lately I've been using a really nice library to use protobuf-like messages with GWT. It can generate jso implementation of server-side proto-generated classes, or you can even easily define your own class generator using StringTemplate (e.g., to generate RequestFactory Proxy interfaces). And much more. Take a look http://code.google.com/p/protostuff/ Of course it is not entirely Protobuf, see http://code.google.com/p/protostuff/wiki/ThingsYouNeedToKnow There is also http://code.google.com/p/protobuf-gwt/ by Broyer although I do not know its current status (but I guess, watching the changes, it is suspended since a couple of years). On Monday, December 17, 2012 2:31:06 AM UTC+1, V.B. wrote: For those of you still waiting for Issue 2649http://code.google.com/p/google-web-toolkit/issues/detail?id=2649 to be completed, I opened a parallel feature request on the Protocol Buffers issue tracker (Issue 431http://code.google.com/p/protobuf/issues/detail?id=431). Be sure to star both issues. Hopefully, the missing feature will be completed soon - it has been 4+ years since the original request. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/IFW2e8tZGsQJ. 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 Window Scroll Bottom hit detection
They are more that enough, I guess. maxVerticalScrollHeight = element.getScrollHeight() - element.getClientHeight() then if (element.getScrollTop() == maxVerticalScrollHeight) // bottom reached That's the same idea behid ScrollPanel and the like. On Tuesday, November 27, 2012 10:35:45 AM UTC+1, Alp Yilancioglu wrote: Hello; how can i make the main page ( the page only uses the HTML Scroll Bar (navigators scroll bar) ) auto load more results when the page hits the bottom. (like in ios apps ) unfortunetly i can only get the Scroll Top and ClientHeight and OffSetHeight .. these are not enough values for detecting page the bottom hit ? -- 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/-/boAqZIvlTLkJ. 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: Get an attribute from a GWT object via jsni?
Try with return conte...@com.google.gwt.canvas.dom.client.Context2d::webkitBackingStorePixelRatio; but I don't think it will ever work. -- 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/-/O0A7GLpQgxYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: RequestFactory Proxies and Generics - Compile problem
I guess, you can't. See http://code.google.com/p/google-web-toolkit/issues/detail?id=6967 and http://code.google.com/p/google-web-toolkit/issues/detail?id=5974 For the 2 server calls you can simply (and probabily better) call two different service methods with two different receivers in the same request context, before firing it (that will end up in a single http request, if I remember right). On Wednesday, November 14, 2012 9:52:07 PM UTC+1, otth2oskier wrote: I am writing a bunch of screens using CellTable and the AsyncDataProvider along with RequestFactory calls. I would like to get away from the pattern of making a server call for data and a second call for row count to update the AsyncDataProvider's data and row count. I would like create a generic return object that contains both data and count and make only one cal to the server. My code looks like: public class ResultT extends EntityBase { private final ListT data; private final long count; public Result(ListT data, long count) { this.data = data; this.count = count; } public ListT getData() { return data; } public long getCount() { return count; } } @ProxyFor(value = Result.class, locator = EntityLocator.class) public interface ResultProxyT extends EntityProxy extends ValueProxy { ListT getData(); public long getCount(); } @Service(value=UserDao.class,locator=BaseServiceLocator.class) @ExtraTypes({ResultProxy.class}) public interface UserRequest extends RequestContext { RequestLong count(); RequestUserProxy find(Long id); RequestResultProxyUserProxy findAll(int firstResult, int maxResults); RequestVoid persist(UserProxy instance); RequestVoid remove(UserProxy instance); } @Stateless public class UserDao { @PersistenceContext(unitName = acdb) private EntityManager entityManager; private static Logger LOGGER = Logger.getLogger(UserDao.class.getName()); public long count() { ... } public User find(Long id) { return entityManager.find(User.class, id); } public ResultUser findAll(int firstResult, int maxResults) { ... } public void persist(User instance) { LOGGER.info(Persisting instance: + instance); entityManager.merge(instance); LOGGER.info(Persisted instance: + instance); } public void remove(User instance) { ... } } @ProxyFor(value = User.class, locator = EntityLocator.class) public interface UserProxy extends EntityProxy { Long getId(); String getFirstName(); void setFirstName(String firstName); String getLastName(); void setLastName(String lastName); } When I compile, I am getting: ResultProxy.java:13: warning: Cannot validate this method because the domain mapping for the return type (java.util.List) could not be resolved to a domain type UserRequest.java:19: Could not find domain method similar to com.avaya.gwtproto.shared.model.ResultT findAll(intint) Lines are highlighted in red above. I cannot figure out what I am doing wrong. I am guessing that the compiler is not handling the generics as I would expect it to. I don't want to write a separate return value for each EntityProxy and I don't want to make 2 server calls to get data and count to refresh my CellTable. -- 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/-/NMCy8FBVvxoJ. 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: Toggle Visibility of a Sidebar Element
Actually DockLayoutPanel implements AnimatedLayout thus it has direct animation support. You simply need to use setWidgetSize(widget, size) and call animate() (if necessary). Or even simpler use setWidgetHidden(widget) with gwt = 2.5. On Tuesday, November 6, 2012 10:01:55 PM UTC+1, Manuel wrote: Hey, I try to toggle the visibility of a Element. But I dont get a resizing done :( I use a DockLayoutPanel: In the WEST I got a Sidebar. In the CENTER I got a Frame... I made the Sidebar invisible via: DOM.setStyleAttribute(SideBar.getElement(), display, none); But the CENTER dont take the free space. (DOM.setStyleAttribute(CenterFrame.getElement(), position, relativ); didnt worked) Via Firebug i found out, that the center is wrapped in a div-tag that I cannot manipulate. So anyone know whats the propper way, to make the Sidebar visible/invisible ? Help is much appreciated. Thanks in advanced. Regards -- 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/-/20Gi-TLDv7EJ. 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: compile to display java code line number
And don't forget set-property name=compiler.stackMode value=emulated/ in that case. Have also a look at the experimental SuperDevMode :) On Thursday, November 1, 2012 3:08:37 AM UTC+1, Thad wrote: If you run in devmode, you will see the Java line number. To see something more easily understood in production mode, add -style PRETTY to your program arguments. See https://developers.google.com/web-toolkit/doc/latest/RefCommandLineTools, specifically targets gwtc and devmode generated by webAppCreator. On Wednesday, October 31, 2012 3:22:44 PM UTC-4, Luke wrote: What parameters should I use to compile in order to display java code line number when exception ? Below is error showing on my firefox when exception uncaught exception: Class$S244: Exception caught: 2 exceptions caught: (TypeError) fileName: https://remoteMachine.com/project/71BA89F46C25448983CE4617F27FC4C8.cache.html lineNumber: 221: b.c is null; (TypeError) fileName: https://remoteMachine.com/project/71BA89F46C25448983CE4617F27FC4C8.cache.html lineNumber: 227: b.c is null -- 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/-/a2EondElpHsJ. 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 Help help implementing ClickableSafeHtmlCell
If you want your cell to handle events you need to set those events as consumed by defining a constructor like public ClickableSafeHtmlCell(SafeHtmlRendererString renderer) { super(renderer, click); } But do not reinvent the wheel, http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/cell/client/ClickableTextCell.html is already there (that also is a safehtmlcell). On Wednesday, October 31, 2012 2:31:58 AM UTC+1, Milan Cvejic wrote: Hi, I am trying to implement ClickableSafeHtmlCell but I can not make it to handle events. I am using Field class ClickableSafeHtmlCell extends SafeHtmlCell { public void onBrowserEvent(Cell.Context context, Element parent, SafeHtml value, NativeEvent event, ValueUpdaterSafeHtml valueUpdater) { super.onBrowserEvent(context, parent, value, event, valueUpdater); if (click.equals(event.getType())) { Window.alert(bla); } } } and then creating CellTable column with following code: ColumnData, SafeHtml objectNameColumn = new ColumnData, SafeHtml(new ClickableSafeHtmlCell()) { @Override public SafeHtml getValue(ModuleEntry object) { String name = (object.getName() == null ? : object.getName()); String description = (object.getDescription() == null ? : object.getDescription()); String regex = (([^]+)); return new SafeHtmlBuilder().appendHtmlConstant( span + name + /span/br / + span title=' + new SafeHtmlBuilder().appendEscaped(description.replaceAll(regex, )).toSafeHtml().asString() + ' + description.replaceAll(regex, ) + /span).toSafeHtml(); } }; and set FieldUpdater for that column: objectNameColumn.setFieldUpdater(new FieldUpdaterData, SafeHtml() { public void update(int index, Data object, SafeHtml value) { Window.alert(value.asString()); } }); Is there anything that I am missing? Any suggestion is welcome. Thanks, Milan -- 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/-/JRYUu0zn4ygJ. 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 define AutoBeanFactory?
Have you read http://code.google.com/p/google-web-toolkit/wiki/AutoBean ? I think this can help to get you started. On Thursday, October 18, 2012 10:46:32 PM UTC+2, dhoffer wrote: I'm trying to figure out how to use AutoBeanFactory to decode a JSONString, e.g. AutoBeanIPayload autoBean = AutoBeanCodex.decode(myAutoBeanFactory, IPayload.class, jsonValue.stringValue()); IPayload payload = autoBean.as(); What I'm not clear on is how to define myAutoBeanFactory? I understand that's an interface passed to GWT.create(MyAutoBeanFactory.class), but what methods does MyAutoBeanFactory need? My IPayload and its content is defined as: public interface IPayload extends Serializable { IGWTMessage[] getMessages(); void setMessages(IGWTMessage[] messages); } public interface IGWTMessage extends IGWTMessage { IUUIDReference getMessageId(); void setMessageId(IUUIDReference id); } Then there are about a dozen derived interfaces that extend IGWTMessage and then each of those has its concrete implementation class. How can I handle this with AutoBeanFactory/JSON? Btw, this used to be just Serialized and marshaled that way but now I'm trying to use a different approach that requires JSON. Also, if there was a way to just do a regular Java binary serialization that would be fine too as I could then turn that into a Base64 encoded string and send just that via JSON...then do the reverse on the server. (But I haven't yet seen a way to do Java binary serialization in the GWT client.) Thanks, -Dave -- 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/-/pc_zKSdHe9YJ. 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: Polymorphic requestfactory example wanted
Maps are currently not supported as of http://code.google.com/p/google-web-toolkit/issues/detail?id=5524 a patch has been submitted but apparently it is blocked by http://code.google.com/p/google-web-toolkit/issues/detail?id=5974 so I guess you have to review your transportable type (maybe using a bean wrapper with 'string key' + 'BaseObject value' as suggested in the first issue). When in doubt check the issue list and poke around tests in the gwt suite. For instance: http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/test/com/google/web/bindery/requestfactory/gwt/client/RequestFactoryPolymorphicTest.java On Thursday, October 18, 2012 11:43:00 PM UTC+2, zam...@gmail.com wrote: Hi All, I need a requestfactory, which can transports a MapString, ? extends BaseObject objects. Is there any example to help me to understanding, how can I do it? thx Zamek -- 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/-/X4x5MW3DA0sJ. 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: RPC call from server to client
The problem is that websocket (as any other HTML5 spec) has chages a bit in the last two years making some useful libraries outdated and not definitely working. On Thursday, October 18, 2012 6:56:19 PM UTC+2, Magnus wrote: Hi, I took a look at most of the libraries, but there is no one that can make my happy, because none of them seems to be lightweight. Atmosphere requires Maven. If I go to Maven someday, I would like to do this on the basis of a free decision, but not as a dependency for the library I am looking for. You can always download the jars somewhere and/or use a dependency manager like Apache Ivy (that can be easily integrated with ant) that fetches Maven dependencies and/or build the jar from scratch. Maven is not an obstacle. All the systems mentioned in the context of Comet ( http://cometdaily.com/maturity.html) seem to be big frameworks, with much more functionality than that I am looking for. This also holds for Errai. That article is quite outdated (2009), I suspect there *a lot* more frameworks out there that can make the difference. But if you want to go with websockets as lightweight as possible, both your server and your client (browser) need to support it in the most up-to-date way. I am always careful with such decisions. If I always add a complete framework whenever I need a little bit of functionality, my project will explode very soon. What seems to be nice and small and light is the HTML5 support for WebSockets, at least as described here (*): http://code.google.com/p/gwt-ws/ One Servlet declaration, one Handler at the server and one handler at the client. This seems very attractive to me! Last update is Nov 2010, I guess the websocket specs have changed since then, so I don't think this will ever work. But you can try! However, it seems that GWT supports HTML5 but without WebSockets: https://developers.google.com/web-toolkit/doc/latest/DevGuideHtml5?hl=de Is this correct? Why does GWT support HTML5 but not for such an important thing like WebSockets? Not in GWT, but you can try the GWT Elemental library (for the client) that support all HTML5 specs, just pay attention to the supported browsers. So if I wanted to use the library above (*): How are these projects below code.google.com organized? Is it always a jar file that one has to put into WEB-INF/lib to use the library? You can clone a repository and build from sources or download the jar and place it in the lib folder. I really hope that I can use this lightweight library (*) very soon and I appreciate any help that gets me started. Magnus There is also another library (streaming/long polling tough) I've used some time ago http://code.google.com/p/gwteventservice/ . It adheres somehow to the server-event specifications (that is another way to say server-client communication). Anyway I'd give atmosphere a try. -- 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/-/VY-YjSlPtSsJ. 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: AutoBean polymorphism support
Thanks, you confirmed my suspicions. Are you saying I can use Splittable to achieve polymorphism? How? Have you ever tried? Of course I can somehow get rid of polymorphism in my classes, but I'd rather do not. On Saturday, October 13, 2012 1:41:46 PM UTC+2, Thomas Broyer wrote: No, AutoBean has no mean to support polymorphism, and it specifically cannot be used for your use-case. You can possibly use Splittable, at a lower-level, or Elemental's JSON, JS overlays, or JSONObject. On Saturday, October 13, 2012 12:40:16 PM UTC+2, Andrea Boscolo wrote: Hi all, I am developing an app in which I use (or at least I would like to use) AutoBeans for serializing data. Unfortunately it seems to me that polymorphism is not supported i.e., I lost the concrete type once I deserialize the json in client-side, only the Base supertype is available. I looked everywhere but I haven't found some concrete answer, so I hope someone has already faced (and why not, solved) this problem. I created a really simple testcase that can be found on https://gist.github.com/3884099 I know AutoBean is behind RequestFactory so I though it supports polymorphism as well. I don't want to rely on RF as I do not need such complexity, I just simply need a way to serialize beans using AutoBean, but polymorphism is a must. Is is even achievable? Hope someone can help. Thanks in advance, Andrew. -- 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/-/rQYMv74T3lMJ. 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.
AutoBean polymorphism support
Hi all, I am developing an app in which I use (or at least I would like to use) AutoBeans for serializing data. Unfortunately it seems to me that polymorphism is not supported i.e., I lost the concrete type once I deserialize the json in client-side, only the Base supertype is available. I looked everywhere but I haven't found some concrete answer, so I hope someone has already faced (and why not, solved) this problem. I created a really simple testcase that can be found on https://gist.github.com/3884099 I know AutoBean is behind RequestFactory so I though it supports polymorphism as well. I don't want to rely on RF as I do not need such complexity, I just simply need a way to serialize beans using AutoBean, but polymorphism is a must. Is is even achievable? Hope someone can help. Thanks in advance, Andrew. -- 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/-/Cs0GC6ilJSMJ. 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 Elemental to optionally generate HTML on the server?
I'm using Cell widgets elsewhere but don't think they'll buy me enough here because I can't use paging in this UI - I need to display the whole table. I'm already loading using an async request. Even if you don't use paging, it can increase the rendering speed of a basic, say, flext table. Thanks for the pointer to ElementBuilder. That seems promising but has some drawbacks - it won't help me manipulate the DOM after it's been created. Also it seems incomplete - it currently only has builders for div, select, option and styles. Maybe it's a dead end and is going to be replaced with Elemental? Well given a builder you can call its finish() method to return the actual built DOM element that can be later reused if stored somewhere, I guess. Also AFAICT the builders are all there http://gwt-code-reviews.appspot.com/1463812 and I don't think it's a dead end, for instance they are used internally in CellTable, they are just another (fast) way to build elements. And they have nothing to do with Elemental. I haven't tried any of this yet but I assumed that Elemental would work on non-webkit browsers so long as you kept to the DOM they support (i.e. keep to the simple stuff). Is that not correct? Elemental is library generated automatically from the WebIDL specs, in particular the WebKit ones taken from the Dart project http://code.google.com/p/google-web-toolkit/source/browse/trunk/elemental/README thus I think they'll have problems with old IE versions (but maybe not with the very very basic stuff like elemental.dom.*, you need to try). Anyway I don't think it will buy you much in the short term. The IsRenderable/PotentialElement strategy seems another way to singnificantly cut down rendering time, although its very experimental state and I've not yet figured out its usage. See https://groups.google.com/d/topic/google-web-toolkit/neeh5YxKm-I/discussion and https://groups.google.com/d/topic/google-web-toolkit-contributors/g8WPRxkdqPA/discussion Thanks, Roy -- 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/-/lM1CfZvI2noJ. 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 Elemental to optionally generate HTML on the server?
I'd give CellTable/DataGrid a try, if your model is suitable for it and your cells aren't so 'fancy'. You can use async requests, paging and lightweight widgets (cell widgets); should be more than enough to speed up fetching/rendering time. There is also the ElementBuilder API that makes easy to create DOM elements from chaining calls in a builder fashion. Checkout some examples in http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/javadoc/com/google/gwt/examples/dom/builder/ . One interesting point is that you can use such builders also on server-side (the server-side actual implementation uses string manipulation instead of DOM operations) and send back the generated string to the client (never tried though) http://gwt-code-reviews.appspot.com/1455802/ Also AFAICT Elemental does not work well (or at all) with IE prior to 9. On Tuesday, October 9, 2012 4:08:56 PM UTC+2, Roy wrote: I have a large GWT app which unfortunately is slow in some old browsers I need to support (IE7). A major part of the slowness is my architecture - I am using GWT-RPC to download model objects from the server and then building a large HTML table in the browser using GWT Widgets. The table is not fancy - just text, links, and images - but it can get pretty big. I'm considering fixing this by building some of my HTML on the server and then downloading it over GWT-RPC as a string, and injecting it in to the DOM using setInnerHtml(). I will still have to do some manipulation later in the browser though (my UI refreshes periodically in the background). What I would really like would be to write my code in such a way that I could decide at runtime if it was best to build the table on the server or in the browser. Elemental looks like a promising way to do this - it would not be hard to generate a server-side implementation of the Elemental HTML interfaces that built up an HTML string, and then send that string over the wire to be injected in the browser. My application logic would only interact with the Elemental interfaces, so I could decide at runtime which implementation to use. Does this sound reasonable or am I barking up the wrong tree here? -- 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/-/0wEbiM1POFQJ. 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: Help finding widget that someone posted in this group
Too much generic. One of the best I've seen so far is https://groups.google.com/forum/?fromgroups=#!starred/google-web-toolkit/IbZf2DeINk8 On Thursday, September 20, 2012 4:57:15 AM UTC+2, Milan Cvejic wrote: Hello, I am looking for ListBox implementation that someone posted in this group few months ago. I bookmarked it, but lost my bookmarks :( Thanks for help! Best, Milan -- 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/-/PTDngFQEyHIJ. 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: Two footers in a CellTable?
Yes, check for Header/FooterBuilder API. http://showcase3.jlabanca-testing.appspot.com/#%21CwCustomDataGrid On Monday, September 17, 2012 10:42:59 PM UTC+2, Kevin Buikema wrote: Is there a way within the standard CellTable to add two footers to the table? I need to have two separate non-editable total rows, and I was hoping to be able to do it without having to customize objects or create a separate table for the totals. -- 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/-/E6KeR2hjAAUJ. 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: Asynchronous work - what are our options?
Elemental should support it. And there are also other wrappers here and there that work too. On Tuesday, September 11, 2012 5:31:33 AM UTC+2, markww wrote: Hi, I was hoping to do some asynchronous work, though I do not believe this is possible (due to the limitations of javascript). The work I need to do is not an http request, it's computing some AI stuff for a game. If I understand correctly: 1. RPC is reserved only for http communication. There's no way to just launch an asynchronous task where my own clientside code is run in the async handler. 2. There are now things called web workers as part of html5, but GWT doesn't have wrappers for them yet? 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/-/RMJ7LNT6kC4J. 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: Meteor DDP - or similar - with GWT?
I used it in a past project and it was simple and easy enough. Seems also to be relatively up to date. There is also atmosphere that carries a gwt client side module with also out of the box experimental support for websockets and much more: https://github.com/Atmosphere/atmosphere/tree/master/modules -- 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/-/8Pow80mOjW8J. 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: Elemental documentation
A start is on https://developers.google.com/web-toolkit/articles/elemental Anyway given its generated nature, I don't think it will ever be documented with something else other that javadoc/samples. If you are interested in something in specific, you have to dig into elemental.* packages. On Tuesday, August 21, 2012 10:50:54 AM UTC+2, Sergey wrote: Hi. Where I can find Elemental documentation? -- 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/-/QUsKUTkNVGcJ. 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: Multiple cells per row in CellTable (like a Cell Grid)
It's up to you to create a grid of cells. Try to use a CompositeCell http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/cell/client/CompositeCell.html On Tuesday, August 21, 2012 3:29:20 PM UTC+2, Shaun Tarves wrote: Is there any way to have multiple cells per column in a CellTable? What I would really like is a grid of cells, but it only seems to be one per row. The closest I can come is a CellList whose cells are display: inline-block. Any ideas? -- 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/-/kD2i14CblB8J. 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: AsyncDataProvider and CellTree
How do you bind a cell tree using uibinder? I think you can't call directly the getNodeInfo and expect you tree to be populated. The async data provider fills the tree by calling the onRangeChanged(), there is where you need to put you RPC call. The http://google-web-toolkit.googlecode.com/svn/javadoc/2.5/com/google/gwt/view/client/AsyncDataProvider.html can be used in both celltree and celltable and holds a HasDataT display. In the getNodeInfo the null check should be used to fill in the root element(s). Try to simplify things i.e., removing authenticaton and the load button. -- 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/-/kLTSE8hKexMJ. 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: AsyncDataProvider and CellTree
On Monday, July 30, 2012 10:02:03 PM UTC+2, Thad wrote: I have a CellTree in which I want to represent something similar to a directory listing (actually represented in database records): public class DirectoryObject implements Serializable { public String name; public String type; // 'file' or 'folder' public int group; ... } This listing comes from a server application which the user must log into. Naturally I can't call the RPC to populate the tree until the login takes place. My wish is to draw the UI and upon login (or upon pressing a 'List' or 'Refresh' button to return an ArrayListDirectoryObject. From this I populate the previously empty tree. Objects of type 'folder' will be the branch nodes and will require a new RPC call with the name as a parameter to find the children (null gets me the highest level). My question is how, once the empty tree is present, to trigger that call and start my listing. So far I've got what you see below, but I'm not sure if it's right and I'm stumped on the UiHandler for my list button (at the very bottom). I'm trying to follow the CellTree examples, but they use static data or don't start empty. public class DirectoryPanel extends Composite { private static DirectoryPanelUiBinder uiBinder = GWT .create(DirectoryPanelUiBinder.class); interface DirectoryPanelUiBinder extends UiBinderWidget, DirectoryPanel { } private static class MyDataProvider extends AsyncDataProviderDirectoryObject { private String folderName; public MyDataProvider(DirectoryObject directory) { if (directory != null) folderName = directory.name; } @Override protected void onRangeChanged(HasDataDirectoryObject display) { final Range range = display.getVisibleRange(); AsyncCallbackArrayListDirectoryObject callback = new AsyncCallbackArrayListDirectoryObject() { @Override public void onFailure(Throwable caught) { Window.alert((new GwtOptixException(caught)).getMessage()); } @Override public void onSuccess(ArrayListDirectoryObject result) { int start = range.getStart(); GWT.log(onRangeChanged, start: +start); updateRowData(start, result); } }; Cold.getRpcService().getDirectoryListing(folderName, callback); } } private static class DirectoryTreeModel implements TreeViewModel { private SingleSelectionModelDirectoryObject selectionModel = new SingleSelectionModelDirectoryObject(); public DirectoryTreeModel() { selectionModel.addSelectionChangeHandler(new SelectionChangeEvent.Handler(){ public void onSelectionChange(SelectionChangeEvent event){ /* Huh? from https://groups.google.com/forum/?starthl=en#!searchin/google-web-toolkit/CellTree$20asyncdataprovider/google-web-toolkit/jdQLj_oZTek/fuKmFMrbghsJ but there's no getSelectedObject() in SelectionChangeEvent */ //DirectoryObject rec = (DirectoryObject)event.getSelectedObject(); It's actually selectionModel.getSelectedObject() that returns your real DirectoryObject. } }); } @Override public T NodeInfo? getNodeInfo(T arg0) { if (arg0 instanceof DirectoryObject) { CellDirectoryObject cell = new AbstractCellDirectoryObject() { @Override public void render(Context context, DirectoryObject value, SafeHtmlBuilder sb) { if (value != null) { sb.appendEscaped(value.name); } } }; MyDataProvider provider = new MyDataProvider((DirectoryObject)arg0); return new DefaultNodeInfoDirectoryObject(provider, cell, selectionModel, null); // or return new DefaultNodeInfoDirectoryObject(provider, cell); ?? The first line: generally you should provide a selection model for all your nodes if you want to do something when they are selected (the actual expansion, if not a leaf, is a provider's job). } return null; } @Override public boolean isLeaf(Object arg0) { return arg0 != null ((DirectoryObject)arg0).name != null ((DirectoryObject)arg0).type.equals('file'); } } @UiField(provided = true) CellTree tree; @UiField Button list; DirectoryTreeModel treeModel; public DirectoryPanel() { treeModel = new DirectoryTreeModel(); tree = new CellTree(treeModel, null); initWidget(uiBinder.createAndBindUi(this)); } @UiHandler(list) void onList(ClickEvent event) { // What here?? } } I'd: - create the cell tree only if the user has logged in (and show something like an empty message); - create a root null node (as you did) but refuse the expansion/selection until the user has
Re: GWTEventService listener triggers additional call each time the web application is displayed in the browser
Has been a while since I used the framework, but I suspect you do not 'unlisten' events when you leave your application (see http://code.google.com/p/gwteventservice/wiki/ConnectionHandling), your session stays open and every time you reload the app a new listener is registered. Anyway I'd suggest to update to GWTEventService 1.2 (much more recent) and ask directly in the project's group https://groups.google.com/forum/?fromgroups#!forum/gwteventservice On Tuesday, July 24, 2012 10:58:13 PM UTC+2, gshepherd wrote: I have a web service bundled with my GWT app and I'm using GWTEventService 1.1.1. I need for the client to be notified when a record is added to the database via a web service call. In the OnMonduleLoad I've added the event listener and everything works as expected. For example, an external call comes into my web service to add a new user. My listener gets triggered on this event and updates the GUI accordingly. The problem occurs when I leave the URL of my application and then return sometime later, every time I get a new web service request to add a user my listener fires twice. If I leave the URL again and return now it fires three times and so on. I've verified that I'm only adding the one listener on startup, but I don't understand why my listener keeps triggering additional times each time I leave my URL and return later. Any ideas would be greatly appreciated. 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/-/RK7FZu7VrsEJ. 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: Cell-Backed Widgets
AFAICT the only widget implemeted this way is TextButton (backed by TextButtonCell) and it shouldn't be abandoned. In the new release of Sencha GXT 3 such pattern is hevily used throughout the whole widget set, so it is at least well proven. On Friday, June 29, 2012 5:13:10 AM UTC+2, July wrote: HI all: I found one doc from GWT offcial wiki page, it's about cell-backed widgets: http://code.google.com/p/google-web-toolkit/wiki/CellBackedWIdgets The idea in this doc is really nice, however seem GWT does not continue with this idea? in this package: com.google.gwt.widget.client there are merely only one of the modern widget since 2011. I think It would be very regretful if GWT team quit this wonderful design pattern. -- 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/-/qNNLtTuibKkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: gwt 2.5
See https://developers.google.com/web-toolkit/makinggwtbetter#compiling to compile from trunk. On Monday, June 25, 2012 10:22:51 PM UTC+2, Yuri C wrote: I too would like to know if there is a compiled package. On Friday, June 22, 2012 2:21:39 PM UTC-4, Dennis Haupt wrote: is there a precompiled package? -- 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/-/BlD8tV5mUPAJ. 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 (lazy) Widget rendering: Comparison of approaches
What about the relation between IsRenderable and the ElementBuilder API? I know that IsRenderable is used to first render the widget content as safehtml/html, and then attach (claim) the 'real' widget to it. Can the rendering part be deferred to the server (given the lazy nature of RenderablePanel)? Any samples out there of this technique? The other element I see somehow involved in a possible server-side rendering, is ElementBuilder (http://gwt-code-reviews.appspot.com/1455802). Reading the RFC, it is possible to define even server-side builders (like HtmlDivBuilder) and build an html/safehtml context by chaining calls. But what if I would like to add/remove handlers to a such server-side-generated dom element? Wrap? Maybe is this the IsRenderable purpose? Server-side widget rendering it's a really interesting topic (mobile development, server-driven UIs, ...), but I can't find any more informations/design docs/samples other than reading all relevant commits/experiment myself. On Wednesday, May 23, 2012 12:57:22 PM UTC+2, Thomas Broyer wrote: On Wednesday, May 16, 2012 4:03:40 PM UTC+2, Chris Lercher wrote: There are several competing (or complemental) new/experimental (or deprecated) classes around, which deal with rendering Widgets in alternative (often lazy) ways in GWT: - GXT2's lazy Componenthttp://grepcode.com/file/repo1.maven.org/maven2/com.extjs/gxt/2.2.0/com/extjs/gxt/ui/client/widget/Component.java (which has been deprecated in GXT3) - LazyPanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/LazyPanel.html - PotentialElementhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/PotentialElement.html [experimental] - IsRenderablehttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/IsRenderable.html [very experimental] and RenderablePanelhttp://google-web-toolkit.googlecode.com/svn/javadoc/latest/com/google/gwt/user/client/ui/RenderablePanel.html [experimental] Seeing how GXT2 had problems with their lazy rendering, what can we expect from these concepts? Looking into trunk, IsRenderable seems to evolve (using a new RenderableStamper class), so there's probably something in the pipeline... I know, that this is not a concrete question - I'm just curious if someone has interesting information about this subject? AFAICT, PotentialElement and IsRenderable are to speed-up rendering of widgets, particularly when used within an HTMLPanel or RenderablePanel in a UiBinder template: the widget is rendered to SafeHtml (and stamped), concatenated to the HTML of the containing HTMLPanel and rendered as a single big HTML string, then the stamped element is retrieved out of the HTMLPanel and the widget is attached to it (claimElement) and finally logically attached to the HTMLPanel (as its parent widget). I suppose they could also be used to attach widgets to some HTML generated (pre-rendered) on the server-side (similar to Closure's decorate(), and the various static wrap() methods used in basic GWT widgets; there's no notion of canDecorate() as in Closure though, so it'd be your responsibility to build this into your widgets; not really for reusable widgets, more for applications you control from end-to-end). -- 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/-/j8J_cdBENwgJ. 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: XmlAdapter compile error
If your classes are simply annotated with JAXB annotations, you should follow http://code.google.com/p/google-web-toolkit/issues/detail?id=4020 (comment 10) for the workaround, and keep them in the 'shared' package, so they can communicate and used with both sides (and you don't violate DRY). But If you have adapters (i.e., classes that extend XmlAdapterV, B) that are in the client/shared side, you should move them in the server, 'cause they cannot be compiled and are useful only when taking marshalling/unmarshalling in account. I don't think your solution work. You are only excluding files from compilation, but what if they are useful? Move adapters to the server. Keep annotated classes in the 'shared' and follow the above link. On Thursday, June 21, 2012 1:38:40 PM UTC+2, shawnjohnson wrote: Sorry, I didn't mean to post that reply quite that way (hit some new keyboard combo)... My.gwt.xml (before) module source path=common/ /module (after) module source path=common exclude name=MyXmlAdapter1.java / exclude name=MyXmlAdapter2.java / exclude name=MyXmlAdapter2.java / /source /module On Jun 21, 7:35 am, shawnjohnson shawnjohnson...@gmail.com wrote: Thank for the reply. I'm only marshalling/unmarshalling on the server-side - so does that mean I should move those classes into a server package? That's even if the annotation is in the shared bean? Yes, still using GWT-RPC. Is the workaround as simple as this? My.gwt.xml (before) module source path=common//module module source path=common exclude name=MyXmlAdapter1.java / exclude name=MyXmlAdapter1.java / /source On Wednesday, June 20, 2012 6:16:03 PM UTC-4, Andrea Boscolo wrote: Such annotations are not GWT compatible (i.e., they are not known to the GWT emulated JRE and definitely cannot be compiled in js, even providing the relative sources - that I think they can be found in jaxb-api-src.jar inside the jaxb distribution). To allow jaxb annotations (and annotations only) to be used in client/shared side, you have to tell the gwt compiler to compile those classes ignoring such annotations while still allow the server side to use them. Seehttp:// code.google.com/p/google-web-toolkit/issues/detail?id=4020#c8fortheworkaround. If you are using an XmlAdapter (the class) in client code, move it to server side (i.e., keep your marshalling/unmmarshalling logic in the server). I assumed you are using GWT-RPC of course. With RequestFactory you should have no problem at all. On Wednesday, June 20, 2012 11:33:54 PM UTC+2, shawnjohnson wrote: I am having this issue as well. The annotations are in models in our 'shared' package - shared between client and server. Anyone know what I should change to resolve this? On Thursday, December 30, 2010 1:38:27 PM UTC-5, Andrea Boscolo wrote: I suppose you are trying to use that annotation on a client side class; javax is not emulated by gwt compiler, so you couldn't use it client side. Why not moving the adapter to the server side? Does your client really need it? Annotated jaxb classes can be used by the client (with a couple of tweaks and not for all annotations), but marshalling/unmarshalling to/ from xml, still need to be handled server side. In this point of view, the adapter can be known only to your server. I can tell you the tweak, but first try to move it server side. -- 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/-/R7LbxAI9W_sJ. 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: XmlAdapter compile error
Such annotations are not GWT compatible (i.e., they are not known to the GWT emulated JRE and definitely cannot be compiled in js, even providing the relative sources - that I think they can be found in jaxb-api-src.jar inside the jaxb distribution). To allow jaxb annotations (and annotations only) to be used in client/shared side, you have to tell the gwt compiler to compile those classes ignoring such annotations while still allow the server side to use them. See http://code.google.com/p/google-web-toolkit/issues/detail?id=4020#c8 for the workaround. If you are using an XmlAdapter (the class) in client code, move it to server side (i.e., keep your marshalling/unmmarshalling logic in the server). I assumed you are using GWT-RPC of course. With RequestFactory you should have no problem at all. On Wednesday, June 20, 2012 11:33:54 PM UTC+2, shawnjohnson wrote: I am having this issue as well. The annotations are in models in our 'shared' package - shared between client and server. Anyone know what I should change to resolve this? On Thursday, December 30, 2010 1:38:27 PM UTC-5, Andrea Boscolo wrote: I suppose you are trying to use that annotation on a client side class; javax is not emulated by gwt compiler, so you couldn't use it client side. Why not moving the adapter to the server side? Does your client really need it? Annotated jaxb classes can be used by the client (with a couple of tweaks and not for all annotations), but marshalling/unmarshalling to/ from xml, still need to be handled server side. In this point of view, the adapter can be known only to your server. I can tell you the tweak, but first try to move it server side. -- 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/-/6GpT7o35rQ8J. 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: SuperDevMode and APT
I can confirm that copying the CodeServer's .gwt.rpc files in the local war dir, works but it's a pain: every time they change, they need to be copied. Using a -workDir under the war didn't work for me. The CodeServer output directory structure does not help. In http://tbroyer.posterous.com/how-does-gwts-super-dev-mode-work (thanks for the clarifications Thomas) is it said that can be possible to override loadSerializationPolicy to search for the SuperDevMode app space. Haven't tried yet, I'll find the time to check this out. Anyway, seems strange that the new development mode does not work well with GWT-RPC. Probably I see the problem from the wrong point of view. On Friday, June 8, 2012 3:36:13 PM UTC+2, Stefano Ciccarelli wrote: The .gwt.rpc files are correctly generated in the war relative to the CodeServer workDir, I have to found a way to copy them to the container war when they change (not quite often), would be nice if the CodeServer could do that for me :) 2012/6/8 Thomas Broyer t.bro...@gmail.com On Friday, June 8, 2012 2:18:28 PM UTC+2, Stefano Ciccarelli wrote: I know, I'm using App Engine as a servlet container. But the problem is to generate .gwt.rpc files that are compatibles with the compiled javascript generated by SuperDevMode. Oops, sorry; I read too fast. Switch to RequestFactory? ;-) More seriously, I doubt it'll ever be possible to use GWT-RPC with SuperDevMode, due to how/where it generates its output; though maybe you could tweak the way serialization policies are loaded on the server-side? (hmm, with AppEngine, that might be impossible, as you'd have to access files on the file-system; or maybe set SuperDevMode's workDir as a subfolder of your -war?) -- 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/-/Rj4sG6PpW_oJ. 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. -- Nel mondo esistono 10 categorie di persone, quelle che capiscono il binario e quelle che non lo capiscono. -- 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/-/-wEN2AbAAcMJ. 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: can DialogBox has a x close button in the upper right hand corner like most window have?
DialogBox uses a Caption element for the header. By default the caption is simply text. Extend it to provide all the buttons you need. Search in the groups to find out some samples. On Thursday, May 31, 2012 10:54:44 AM UTC+2, tong123123 wrote: I think it is very difficult if not impossible, just requested by my company and try to ask here. -- 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/-/O4UV9UbBpHwJ. 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: resize celltable column by user using mouse
It's not possible using the current API. See http://code.google.com/p/google-web-toolkit/issues/detail?id=6401 for a couple of useful workarounds. On Thursday, April 12, 2012 11:17:41 AM UTC+2, tong123123 wrote: how to allow user to just use the mouse to drag the column widths to a desired size by grabbing an edge of the header with the mouse? in gwt 2.4 developer guide, it just tell set table layout to fixed and then set the column width in code, but I want allow user can drag the column width with mouse, it is very common property of gird like structure. Any method to do it in gwt 2.4? -- 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/-/ueH3XAkeE1AJ. 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
Read the docs at least. https://developers.google.com/web-toolkit/gettingstarted On Monday, April 2, 2012 1:52:27 PM UTC+2, monal wrote: How to download use projectCreator -- 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/-/CjJB5Z3fMmEJ. 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: Source maps
Are you sure the whole machinery is already available in the public (trunk) repo? I thought it's not. https://plus.google.com/u/1/110412141990454266397/posts/Nvr6Se6eAPh On Sunday, April 1, 2012 12:16:05 PM UTC+2, Honza Rames wrote: Hi everyone, I tried to compile my GWT app with source maps support (as explained here http://stackoverflow.com/questions/9804492/how-to-try-sourcemaps-with-gwt) and it failed at first (some json stuff was missing) so I added it to my project's class path then it compiled OK and I can see the source maps generated in WEB-INF/deploy/project/symbolMaps. I should also note that I'm using custom build of GWT from trunk. I enabled source maps support in Chrome's Developer tools setting panel but I the source maps doesn't seem to work. I'm launching the app through jetty but not in dev mode (obviously ;-) ) I compiled the project in obfuscated mode as standard compile (no draft or anything like that). Do I have to use another version of Chrome? Does anyone tried this as well and succeeded? Honza -- 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/-/hcGUk2-d124J. 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: Programming a custom scrollbar with GWT
I don't know if this is related, but starting from GWT 2.3 (I think) there is a CustomScrollPanel that allows to provide custom scrollbars to override native ones. But you have to create them by yourself. http://code.google.com/p/google-web-toolkit/source/browse/trunk/user/src/com/google/gwt/user/client/ui/CustomScrollPanel.java Relevant commit: http://gwt-code-reviews.appspot.com/1427804/ -- 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/-/Fadp8exWzkQJ. 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: ScrollPanel with a CellList Widget
See the showcase sample http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellList On Thursday, March 22, 2012 11:38:18 AM UTC+1, Saik0 wrote: Hi @all, i have a confusing issue with the ScrollPanel. Im trying to add a CellList with n-Elements to a ScrollPanel. The ScrollPanel itself is add to a VerticalPanel. Now i add more Elements to the Celllist and redraw the view. Normally i except, that the ScrollPanel shows his Scrollbar if the CellList reached a certain Element size but the ScrollBar don't show up and no scrolling is visible.. is this possible with a CellList? Is there a good anywhere example? kind regards Saik0 -- 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/-/FDOx3KsOH94J. 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 FileUpload - Servlet options and handling response
Check out the http://code.google.com/p/gwtupload/ project. Easy to use and extend. On Friday, March 16, 2012 10:27:39 PM UTC+1, Ashish wrote: I am new to GWT and am trying to implement a file upload functionality. Found some implementation help over the internet and used that as reference. But have some questions related to that: The actual upload or writing the contents of file on server(or disk) will be done by a servlet. Is it necessary that this servlet (say MyFileUploadServlet) extends HttpServlet? OR I can use RemoteServiceServlet or any other servlet or implement any other interface? If yes, which method do I need to implement/override? In my servlet, after everything is done, I need to return back the response back to the client. I think form.addSubmitCompleteHandler() can be used to achieve that. From servlet, I could return text/html (or String type object) and then use SubmitCompleteEvent.getResults() to get the result. Question is that can I use my custom object instead of String (lets say MyFileUploadResult), populate the results in it and then pass it back to client? or can I get back JSON object? Currently, after getting back the response and using SubmitCompleteEvent.getResults(), I am getting some HTML tags added to the actual response such as : pre Image upload successfully /pre . Is there a way to get rid of that? Thanks a lot in advance! Regards, Ashish -- 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/-/Lsccms1eoSoJ. 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: Custom header using CompositeCell or AbstractCell
GWT 2.5 will give this opportunity I guess. Relevant issue is http://code.google.com/p/google-web-toolkit/issues/detail?id=5423#c13 Relevant commits are: http://gwt-code-reviews.appspot.com/1501803 http://gwt-code-reviews.appspot.com/1499808/ Relevant demos are: http://showcase2.jlabanca-testing.appspot.com/#!CwCustomDataGrid http://showcase3.jlabanca-testing.appspot.com/#!CwCustomDataGrid I you can't wait for the 2.5 release you can use the trunk. -- 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/-/wQZFQI8FrFIJ. 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 add a link (anchor) to a CellTable?
See docs: http://code.google.com/webtoolkit/doc/latest/DevGuideUiCustomCells.html -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/GVWxakQw59sJ. 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: Collapsible Component in GWT2.4
For an example, check the third comment (from Mauro) on https://groups.google.com/forum/#!topic/google-web-toolkit/C6S4jS1UsM0/discussion and see if it fits you needs. The sample is beyond simple layouting but you can find the collapsing/resizing logic you are looking for in the AppLayoutImpl class. -- 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/-/s_afvP7vpOsJ. 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: The (currently) definite way to achieve Push/Comet/Streaming in a GWT app? :)
There are a lot of libraries out there dealing with comet/push/reverse ajax technology. Some could be: - http://code.google.com/p/gwt-comet/ (I don't see a valid update in almost an year) - http://code.google.com/p/rocket-gwt/wiki/Comet (over 2 year of inactivity) - http://code.google.com/p/atmosphere-gwt-comet/ (should be a gwt wrapper for atmosphere) - http://code.google.com/p/gwt-comet-streamhub/ (I don't know if it could be work with tomcat) - http://code.google.com/p/gwteventservice/ (updated, can be easily used with RPC, long polling/streaming options) There are also websocket libraries (http://code.google.com/p/gwt-websocketrpc/wiki/ServerPushExample http://code.google.com/p/gwt-ws/), servlet 3.0 suspend/resume options, server-event communications and so on. Probabily there are too many options to look into... http://code.google.com/p/google-web-toolkit/issues/detail?id=267colspec=ID%20Type%20Status%20Owner%20Milestone%20Summary%20Stars worth a read, even if it states a PatchesWelcome status and is ment for request factory. GWT has always been server-agnostic, so you can still use whatever server tech you prefer. Of course by using servlets/app engine you can find some advantages. Hope that helps. Andrew. -- 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/-/s1SYmS8ZV4cJ. 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: The (currently) definite way to achieve Push/Comet/Streaming in a GWT app? :)
It has its own group: https://groups.google.com/forum/?hl=it#!forum/gwteventservice and forum http://gwteventservice.freeforums.org/ I've been using it in the last few weeks and looks (and works) good for my simple requests. Andrew. -- 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/-/d4_-bzRGE64J. 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: Basic MDI (Multiple Document Interface) question
Interesting. Can you share the resize part if by resize you mean via mouse? -- 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/-/exi-uPmpzuIJ. 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: When will you launch the GWT plugin for Firefox 8?
Check the relevant topic: https://groups.google.com/forum/#!topic/google-web-toolkit/wElYN-Thi2M -- 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/-/zx87VvvFhqwJ. 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: ClientBundle not able to set background image
Should be ImageResource yes, and I also think the setBackgroundImage(...) method accepts a String, not an ImageResource. In the 2.4 release you should use ...setBackgroundImage(clientbundle.topbar2().getSafeUri().asString()); cause in 2.4 the getUrl() in the ImageResource is deprecated. -- 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/-/-NpRnD2DgMAJ. 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: hoe to make GWT TabPanel draggable and resizable
Can http://allen-sauer.com/com.allen_sauer.gwt.dnd.demo.DragDropDemo/DragDropDemo.html#ResetCacheExample helps you out? -- 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/-/-OslXI8XvkUJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT 2.4 MVP tutorial
http://code.google.com/webtoolkit/doc/latest/DevGuideMvpActivitiesAndPlaces.html It explains how activities and places can be used in a MVP way. It references a helloworld sample, but in the mid of the doc there's also a link to another and more complete sample (mobilewebapp) that takes in account many other things. -- 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/-/7SRrGUTwBIoJ. 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: Places Activities any suggestion?
See https://groups.google.com/forum/?starthl=en#!starred/google-web-toolkit/PzlyZ3Gjazg -- 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/-/hPF_9ncXO0gJ. 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.