Re: PSA: starting unbundling dependencies from gwt-dev published to Maven Central, could break your build
Adding http://mvnrepository.com/artifact/org.ow2.asm/asm/5.0.3 it worked again. El diumenge 12 d’octubre de 2014 10:35:09 UTC+2, Thomas Broyer va escriure: Hi all, If you're using 2.7.0-SNAPSHOT, your build might start failing as of today as we started unbundling dependencies from gwt-dev as published to the Central Repository. java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor If you get this error, be sure to also update your gwt-maven-plugin to the latest 2.7.0-SNAPSHOT too. If that doesn't work, add gwt-dev or (better) gwt-codeserver as a project dependency (and report the problem to https://groups.google.com/d/forum/codehaus-mojo-gwt-maven-plugin-users). This is likely to become the preferred way to use GWT in the future, and the gwt-maven-plugin might stop automatically adding GWT deps to the classpath in gwt:compile or gwt:run in a future version (probably not 2.7 though): as we'll unbundle more dependencies from gwt-dev (and gwt-user), you might want to gain control over those dependencies (e.g. using a newer version of Guava, or ASM, etc.) and this is not possible with plugin dependencies as it's done today within the gwt-maven-plugin. Also noteworthy: that same change also turned com.google.gwt:gwt into a BOM (bill of material); that means that instead of including the version in all your GWT dependencies you can now declare com.google.gwt:gwt into your dependencyManagement section with scopeimport/scope. As a bonus, it should ensure transitive dependencies to GWT will all use the same version, so you'll have fewer risks of conflicts. I'll soon update the GWT samples, WebAppCreator templates and various archetypes to use those new best practices. -- 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.
Java Generics in GWT-RPC
We are having a SerializationException error when sending a list of objects using RPC and Java Generics. I'm creating this widget to show the error: public class TestT { ListDataProviderT ldp = new ListDataProviderT(); public void setItems(ListT list){ for(T t :list){ ldp.getList().add(t); } } public ListT getItems(){ return ldp.getList(); } } This is the code for creating the Test widget and passing a list of POJOs (where ExporterFormKey is the POJO object) ListExporterFormKey list = new ArrayListExporterFormKey();ExporterFormKey key = new ExporterFormKey(); key.setKey(key1); list.add(key); TestExporterFormKey test = new TestExporterFormKey(); test.setItems(list); At the end the next code throws a SerializationException: service.sendList(test.getList(), new AsyncCallback...); While the next one does fine: service.sendList(list, new AsyncCallback...); I found that doing the next code also works ListExporterFormKey newList = new ArrayListExporterFormKey(test.getItems()); -- 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/-/mC_WrinxxRkJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Java Generics in GWT-RPC
This change on Test works!! It seems a problem with the ListDataProvider object. public ListT getItems(){ return new ArrayListT(ldp.getList());} El dimecres 19 de desembre de 2012 10:35:14 UTC+1, Ramon Salla va escriure: We are having a SerializationException error when sending a list of objects using RPC and Java Generics. I'm creating this widget to show the error: public class TestT { ListDataProviderT ldp = new ListDataProviderT(); public void setItems(ListT list){ for(T t :list){ ldp.getList().add(t); } } public ListT getItems(){ return ldp.getList(); } } This is the code for creating the Test widget and passing a list of POJOs (where ExporterFormKey is the POJO object) ListExporterFormKey list = new ArrayListExporterFormKey();ExporterFormKey key = new ExporterFormKey(); key.setKey(key1); list.add(key); TestExporterFormKey test = new TestExporterFormKey(); test.setItems(list); At the end the next code throws a SerializationException: service.sendList(test.getList(), new AsyncCallback...); While the next one does fine: service.sendList(list, new AsyncCallback...); I found that doing the next code also works ListExporterFormKey newList = new ArrayListExporterFormKey(test.getItems()); -- 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/-/nIRPhK9-HvQJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: Debugging is terribly slow
Quite amazing. https://www.youtube.com/watch?feature=player_embeddedv=-xJl22Kvgjg#! El dimecres 30 de maig de 2012 16:50:03 UTC+2, Thomas Broyer va escriure: On Wednesday, May 30, 2012 3:59:26 PM UTC+2, Dimitrijević Ivan wrote: It is sad but FF has much better performances when GWT debugging is the subject. I hope that GWT 2.5 will come up with SourceMaps support so debugging will not require any additional plugin. So a new FF versioning approach as well as other incompatibility issues will be solved. 2.5 *should* come with SuperDevMode, but it'll be *experimental*. As for SourceMaps, only Chrome supports them for the moment, so SuperDevMode won't really help with debugging in Firefox until the guys at Mozilla finish their SourceMaps work: https://wiki.mozilla.org/DevTools/Features/SourceMap It will definitely help with debugging in Chrome though, which currently with the DevMode plugin is both slow (due to sandboxing) and broken ( http://code.google.com/p/google-web-toolkit/issues/detail?id=5778#c65), as well as Chrome for Android, Mobile Safari, and UIWebView-based iOS apps (through http://www.iwebinspector.com/ or similar means). When other browsers catch up on SourceMaps, then we can ditch the DevMode plugins entirely. -- 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/-/RpeFJO02Y9IJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Object and wmode
Hi, I use a FlowPanel and the method getElement().setInnerHtml(String html) to use an activex object custom video player like this: String object = object ... param name=x value=y/ param name=z value = o ... /object. The activeX object is working nice but I need to use the wmode parameter in order to let a DIV to layout on top of the player. It seems that GWT deletes my param name=wmode value=transparent but keeps other params. Why? Thankyou. -- 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/-/I-2BQvxa7R8J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: building custom event differently to avoid boiler plate coding?
+1 to this! -- 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/-/SAqQBT-i0iAJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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 Project Structure Frontend/Backend
Yes. We are already doing this. We started using RequestBuilder and Json (Des)Serialization but we ended up using plain RPC services as development is so much easier. We are wrapping some of those RPC services with REST using jersey. We have two dependent projects one with server code and the other with shared and client code. Be careful with this because of SOP and GWT policyFiles! they are tricky. Ramon Salla -- 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/-/GYcElCLyMDgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Object Tag with wmode parameter
Hi, I am using HTML widget to get an object params.../ /object with a wmode = transparent param. (we use a custom ActiveX player) But, when inspecting the ouput html code, several params (including wmode) are gone. How can I use it? 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/-/xDTGE3nfXIYJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email 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: CellTable with only div's?
That is true. We are avoiding Vertical/HorizontalPanel. In fact, our idea behind using CellList is for the ability of use float:left (overriding CellList.Style) in even and odd cell styles. We couldn't to this with elements in CellTable because they are TDs (float:left and td are not very good friends) By the way, CellList with cells in float:left is an excellent way to create an Image Gallery for hundreds of images. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable with only div's?
Well, I have just realized that CellList is implemented only with divs. So I can create Cells with tables inside (VerticalPanel and so.). Anyway, thankyou! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: CellTable with only div's?
Hi Ed, Did you manage to extend celltable to work only with divs? can you share the result? I tried it with no luck. Thankyou! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: image gallery with celltable or celllist
Any suggestion about how to create an image gallery for hundreds of images? -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
dynamic image gallery
I am wondering how to use CellTable to have a blazing fast image gallery. Le't me explain my idea for a fixed N image column table with hundreds of rows. 1.- Ask to server for a xml/json object with and array of X images grouped by N images per group. result /result 2.- Build a CellTable with only one column -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
image gallery with celltable or celllist
I am wondering how to use CellTable to have a blazing fast image gallery. Le't me explain my idea for a fixed N image column table with hundreds of rows. 1.- Ask to server for a xml/json object with and array of X images grouped by N images per group. - result - images - group - image - id 1 /id - url http://... /url - /image - /group - /images - /result 2.- Build a CellTable with one column or a CellList. 3.- Build a custom Cell with N img tags. 4.- Build a DataProvider with the list provided by the server. It's that ok to you? Do you think a way to ask the server for a easiest single array of images (without groups) and use with a DataProvider? Thankyou! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Reloading an MVP application throws an error.
Hi I have some trouble when refreshing a MVP application i developer mode. Browser says: GWT Code Server Disconnected Most likely, you closed GWT Development Mode. Or, you might have lost network connectivity. To fix this, try restarting GWT Development Mode and REFRESH this page. And then, pressing refresh it works again. The error only happens when going to url withouth the # at the end (Reloading the entire application and doing onModuleLoad()). The error code line which throws the error is: --- service.sendRequest(requestData, callback); --- And the error is an umbrella error. The relevant part is: --- Caused by: com.google.gwt.core.client.JavaScriptException: (Error): Unknown failure description: Unknown failure --- Is this normal? Do i need to clean my services in a specific way in the @onStop from the activities? Thanks. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: New logging api error with firebug lite
I managed to use firebuglite. Changed FireBugLogHandler to use in native JSNI methods: top.console.info(); instead of window.console.info(); I don't really know why it's working because console should be in the same html application as gwt application. Any thought? On 14 Gen, 18:43, Ramon Salla rsal...@gmail.com wrote: Not working either. Some thoughts: a) with a simple html (no gwt) with a html button with console.info(info) works in firebug lite, chrome console and ie8 console. b) Enabling a simple vanilla gwt application with a jsni method with console.info(info) only works in chrome console. c) Inheritting new gwt logging api inherits name='com.google.gwt.logging.Logging'/ and using the same jsni code only works in chrome (as b) ) d) So, no console neither ie8 nor firebuglite... what do do? Ramon. On 14 Gen, 11:01, Thomas Broyer t.bro...@gmail.com wrote: AFAIK, IE8 has a console.log(), so maybe in this case Firebug lite doesn't (cannot?) use its own implementation. Have you checked the IE Developer Tools' console? (hit the F12 key to bring them up) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: New logging api error with firebug lite
Not working either. Some thoughts: a) with a simple html (no gwt) with a html button with console.info(info) works in firebug lite, chrome console and ie8 console. b) Enabling a simple vanilla gwt application with a jsni method with console.info(info) only works in chrome console. c) Inheritting new gwt logging api inherits name='com.google.gwt.logging.Logging'/ and using the same jsni code only works in chrome (as b) ) d) So, no console neither ie8 nor firebuglite... what do do? Ramon. On 14 Gen, 11:01, Thomas Broyer t.bro...@gmail.com wrote: AFAIK, IE8 has a console.log(), so maybe in this case Firebug lite doesn't (cannot?) use its own implementation. Have you checked the IE Developer Tools' console? (hit the F12 key to bring them up) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Handling clicks on CellWidgets
I think i maybe found another bug: if @Override public void render(Context context, MyValue data, SafeHtmlBuilder sb) { sb.appendHtmlConstant(button class=\gwt-Button\ testbutton); } Clicking to the button fires a click only on the button if using the improved onBrowserEvent you give me in the former link. But if using a table wrapper: @Override public void render(Context context, MyValue data, SafeHtmlBuilder sb) { sb.appendHtmlConstant(table); sb.appendHtmlConstant(tr); sb.appendHtmlConstant(td); sb.appendHtmlConstant(button class=\gwt-Button\ testbutton); sb.appendHtmlConstant(/td); sb.appendHtmlConstant(/tr); sb.appendHtmlConstant(/table); } Using chrome trace tool I can see that the click event is fired but onBrowserEvent is no even called! using wrapper tables is a must to layout cells while no uibinder is supported. On 7 Gen, 12:05, Ramon Salla rsal...@gmail.com wrote: Thanks Thomas. I used the patched ActionCell and ButtonCell from the link you gave me from the issue and it worked great. Using 2 ActionCells in a CompositeCell also worked. I think that is all I need to keep cellwidgets in production (users are great bugfinders! ;) ) . I hope the patch will make its way to the next version. Thanks again, Ramon Salla Rovira On 3 Gen, 22:35, Thomas Broyer t.bro...@gmail.com wrote: On Monday, January 3, 2011 3:33:37 PM UTC+1, Ramon Salla wrote: Hi, Happy new year to all! I have some questions regarding cellwidgets. In the showcase http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler when clicking the cell which contains the button, it reacts not only when pressing the button but also when clicking inside the cell but outside the button. First Question, can i avoid this behavior and only reacting to the button press in a cell? Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5641 (for now, you'd have to use your own ButtonCell if you want the fixed behavior) Inspecting the code for this example and the sample from CellList i see the following: From the CellList example, each cell is a div with a single onclick. div onclick= __idx=0 class=GEGGSC0BI style=outline:none;tabletbodytr ... /tr/tbody/table/ div From the CellSampler (which uses a cellTable) the onclick is not in each cell but in each row. tr onclick= class=GEGGSC0BEDtd class=GEGGSC0BDC GEGGSC0BFD GEGGSC0BGCdiv style=outline:none;/div/td/tr I tried to use a composite cell with two buttons in a celllist but as there is only one handler per cell, clicking on any of the two buttons (and also outside the buttons but inside the cell) reacts with the same handler. I can't distinguish them. Question 2. How can I distinguish clicks inside a cell when using a cell list. Try using ActionCell instead of ButtonCell Question 3 Am I forced to use celltable with different cells for each column. You can use the same Cell for several columns. If you want columns though, you have to use CellTable, of make your own Cell widget (not trivial) Question 4 How do you managed to distinguish cellclicks if there is only one handler per row in a celltable? Cell widgets use event delegation, they register a single event listener but then dispatch accordingly, depending on the exact element targetted by the event (i.e. FieldUpdater for a given Column, onBrowserEvent and ValueUpdater for a given Cell) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
New logging api error with firebug lite
Hi, I guess I am doing something wrong: Log traces does not appear in Firebug Lite (ie8) but they are appearing in chrome console. Any idea? Ramon. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Handling clicks on CellWidgets
Thanks Thomas. I used the patched ActionCell and ButtonCell from the link you gave me from the issue and it worked great. Using 2 ActionCells in a CompositeCell also worked. I think that is all I need to keep cellwidgets in production (users are great bugfinders! ;) ) . I hope the patch will make its way to the next version. Thanks again, Ramon Salla Rovira On 3 Gen, 22:35, Thomas Broyer t.bro...@gmail.com wrote: On Monday, January 3, 2011 3:33:37 PM UTC+1, Ramon Salla wrote: Hi, Happy new year to all! I have some questions regarding cellwidgets. In the showcase http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler when clicking the cell which contains the button, it reacts not only when pressing the button but also when clicking inside the cell but outside the button. First Question, can i avoid this behavior and only reacting to the button press in a cell? Seehttp://code.google.com/p/google-web-toolkit/issues/detail?id=5641 (for now, you'd have to use your own ButtonCell if you want the fixed behavior) Inspecting the code for this example and the sample from CellList i see the following: From the CellList example, each cell is a div with a single onclick. div onclick= __idx=0 class=GEGGSC0BI style=outline:none;tabletbodytr ... /tr/tbody/table/ div From the CellSampler (which uses a cellTable) the onclick is not in each cell but in each row. tr onclick= class=GEGGSC0BEDtd class=GEGGSC0BDC GEGGSC0BFD GEGGSC0BGCdiv style=outline:none;/div/td/tr I tried to use a composite cell with two buttons in a celllist but as there is only one handler per cell, clicking on any of the two buttons (and also outside the buttons but inside the cell) reacts with the same handler. I can't distinguish them. Question 2. How can I distinguish clicks inside a cell when using a cell list. Try using ActionCell instead of ButtonCell Question 3 Am I forced to use celltable with different cells for each column. You can use the same Cell for several columns. If you want columns though, you have to use CellTable, of make your own Cell widget (not trivial) Question 4 How do you managed to distinguish cellclicks if there is only one handler per row in a celltable? Cell widgets use event delegation, they register a single event listener but then dispatch accordingly, depending on the exact element targetted by the event (i.e. FieldUpdater for a given Column, onBrowserEvent and ValueUpdater for a given Cell) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Handling clicks on CellWidgets
Hi, Happy new year to all! I have some questions regarding cellwidgets. In the showcase http://gwt.google.com/samples/Showcase/Showcase.html#!CwCellSampler when clicking the cell which contains the button, it reacts not only when pressing the button but also when clicking inside the cell but outside the button. First Question, can i avoid this behavior and only reacting to the button press in a cell? Inspecting the code for this example and the sample from CellList i see the following: From the CellList example, each cell is a div with a single onclick. div onclick= __idx=0 class=GEGGSC0BI style=outline:none;tabletbodytr ... /tr/tbody/table/ div From the CellSampler (which uses a cellTable) the onclick is not in each cell but in each row. tr onclick= class=GEGGSC0BEDtd class=GEGGSC0BDC GEGGSC0BFD GEGGSC0BGCdiv style=outline:none;/div/td/tr I tried to use a composite cell with two buttons in a celllist but as there is only one handler per cell, clicking on any of the two buttons (and also outside the buttons but inside the cell) reacts with the same handler. I can't distinguish them. Question 2. How can I distinguish clicks inside a cell when using a cell list. Question 3 Am I forced to use celltable with different cells for each column. Question 4 How do you managed to distinguish cellclicks if there is only one handler per row in a celltable? I know the questions are not very concise, sorry. Ramon Salla Rovira -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.