Re: [gwt-contrib] JSInterop @JsProperty overriding name
Is there a better idea of exactly what Js Interop will look like when 2.8 is released. The document referenced above was last updated on Sept 2014. From this proposal, what will and wont make it into 2.8. This whole area has become very confusing with all the changes in direction that seem to be happening. On Thursday, July 30, 2015 at 7:15:12 AM UTC-4, Ümit Seren wrote: ok sorry, forget what I said. It actually works fine, when I take the approach that is described in the google docs. On Thursday, July 30, 2015 at 11:49:26 AM UTC+2, Ümit Seren wrote: Thanks for the heads up. One additional question. I am trying to wrap a 3rd javascript library that is relying on `hasOwnProperty` to check if the object contains a specific property. As far as I can tell the @JsProperty will create a property using `defineProperty`. Is there any way how to avoid the automatic creation of the property (or is anything planned?) Currently my workaround is to use JSNI for those fields. On Wednesday, July 29, 2015 at 9:11:58 PM UTC+2, Goktug Gokdogan wrote: On Tue, Jul 28, 2015 at 8:36 AM, Ümit Seren uemit...@gmail.com wrote: I started to play around with JSInterop and GWT 2.8.0-SNAPSHOT. Primarily I was following these documentation: https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit# However I ran into some issues regarding properties that don’t follow Java bean style convention (i.e. xAxisParser) . According to the javaDocs on the @JsProperty annotation it should be possible to define properties also in this way : @JsProperty x(intx) which translates to this.x=y. The javadoc is not accurate, only bean convetions is supported at the moment. However when I try this, the compiler complains that the property doesn’t follow Java Bean naming conventions. I found a recent post about overhaul of JsInterop’s annotations ( https://groups.google.com/forum/#!searchin/google-web-toolkit-contributors/annotations/google-web-toolkit-contributors/Dwdk-aEHs8Y/OvSNe6egUekJ) and that it should be possible to override the property name. I was curious if this is planned for the 2.8.0 release or if this will go into GWT 3.0 ? It is planned for 2.8 release. Currently my only workaround is to use JSNI: to set the property directly: @JsType interface MyInterface { @JsProperty void setTitle(String title); @JsProperty String getTitle(); void setXAxisParser(Callback callback); } public MyClass implements MyInterface { public String title; public Callback callback; @Override public void setTitle(String title) { this.title = title; } @Override public String getTitle() { return title; } @Override public void setXAxisParser(Callback callback)/*-{ this.xValueParser = callback; }*-/; } -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/5ac37b91-0a0f-4497-84a8-561fb9d19bc9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [GWT] [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core'
I just had the same error message and it turned out to be my GWTUnit test classes being named SomeName*Test* instead of *GwtTest*SomeName. Ending on Test the GWTUnit test classes were picked up by the Surefire plugin instead of the GWT plugin. Removing the Test postfix and adding the GwtTest prefix solved that. On Thursday, April 23, 2015 at 9:06:15 AM UTC+2, Danish Khan wrote: Hi all, I am upgrading to GWT 2.7.0 / Smartgwt 5, and I am seeing the following error when I try to build it through maven: [GWT][ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User') Here is my gwt.xml. Please let me know if you have any suggestions to fix this error. ?xml version=1.0 encoding=UTF-8? module rename-to='dregtool' inherits name='com.google.gwt.user.User'/ inherits name=com.google.gwt.core.Core / inherits name=com.google.gwt.user.History/ inherits name=com.dreg.tools.ui.GWTFramework / inherits name=com.dreg.at.atcommon.ATCommon / inherits name=com.dreg.at.atcommon.smartgwt.Components / inherits name=com.gwtext.GwtExt / inherits name=com.dreg.ajax.smartgwt.dregSmartGwt / inherits name=com.googlecode.gchart.GChart / inherits name=com.dreg.i18n.dregI18n / source path='ui'/ stylesheet src='css/dreg-tool.css'/ entry-point class='com.dreg.at.ui.Main'/ set-property name=gwt.suppressNonStaticFinalFieldWarnings value=true / add-linker name=xsiframe/ /module -- 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: Using Lightbox with GWT (some events not catched)
Hi, Xandre, Could you pls share me your sample code ? I am figuring out how to use it in my project. TIA On Friday, April 25, 2014 at 4:15:23 AM UTC+8, JoyaleXandre wrote: If it may help, I noticed that the problem occur only when Lightbox is launch from a DialogBox with Glass enabled. Le mardi 22 avril 2014 18:20:47 UTC-4, JoyaleXandre a écrit : Hello! I'm trying to use Lightbox with the HTML widget in GWT. I manage to make the example from a standard HTML page in my GWT code. Here is the example: http://lokeshdhakar.com/projects/lightbox2/. Everything is good when I try to navigate with the keyboard, but when I want to quit by clicking the X button or got next with the arrow image, nothing happen. The mouse events seem to be missing. I can't even right click and see the Firefox context menu. Do you have any idea where the problem may be? Alexandre -- 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 2.7.0 is here
Hi, it's awesome. On september I will migrate for 2.5.1 to 2.7.0 but i wonder if do you have a scheduler for the next stable release? for go to the next on september? Thanks a lot for your awesome work. Alex Sanz El jueves, 20 de noviembre de 2014, 11:59:06 (UTC+1), Daniel Kurka escribió: Today we are excited to announce the GWT 2.7.0 release. Thanks to everyone who contributed to this release, especially our non-Google open source contributors. One major feature of this release is a new super fast compilation path in Super Dev mode that replaces the old dev mode. For a run-down of all changes since GWT 2.6.1, read the release notes http://www.gwtproject.org/release-notes.html#Release_Notes_2_7_0. The release is available for download here http://www.gwtproject.org/download.html or on maven central. If you find any issues with this release, please file a bug in our issue tracker. Daniel, on behalf of the GWT team at Google -- 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-contrib] JSInterop @JsProperty overriding name
Most of the direction changes are presented and discussed in the contributor group but it is not well formed as a document. Before 2.8, the document will be updated with the latest info. This is still a work in progress, we are making sure what will be available with jsinterop will be inline with future directions we are taking with the SDK. On Thu, Jul 30, 2015 at 7:01 AM, Paul Stockley pstockl...@gmail.com wrote: Is there a better idea of exactly what Js Interop will look like when 2.8 is released. The document referenced above was last updated on Sept 2014. From this proposal, what will and wont make it into 2.8. This whole area has become very confusing with all the changes in direction that seem to be happening. On Thursday, July 30, 2015 at 7:15:12 AM UTC-4, Ümit Seren wrote: ok sorry, forget what I said. It actually works fine, when I take the approach that is described in the google docs. On Thursday, July 30, 2015 at 11:49:26 AM UTC+2, Ümit Seren wrote: Thanks for the heads up. One additional question. I am trying to wrap a 3rd javascript library that is relying on `hasOwnProperty` to check if the object contains a specific property. As far as I can tell the @JsProperty will create a property using `defineProperty`. Is there any way how to avoid the automatic creation of the property (or is anything planned?) Currently my workaround is to use JSNI for those fields. On Wednesday, July 29, 2015 at 9:11:58 PM UTC+2, Goktug Gokdogan wrote: On Tue, Jul 28, 2015 at 8:36 AM, Ümit Seren uemit...@gmail.com wrote: I started to play around with JSInterop and GWT 2.8.0-SNAPSHOT. Primarily I was following these documentation: https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit# However I ran into some issues regarding properties that don’t follow Java bean style convention (i.e. xAxisParser) . According to the javaDocs on the @JsProperty annotation it should be possible to define properties also in this way : @JsProperty x(intx) which translates to this.x=y. The javadoc is not accurate, only bean convetions is supported at the moment. However when I try this, the compiler complains that the property doesn’t follow Java Bean naming conventions. I found a recent post about overhaul of JsInterop’s annotations ( https://groups.google.com/forum/#!searchin/google-web-toolkit-contributors/annotations/google-web-toolkit-contributors/Dwdk-aEHs8Y/OvSNe6egUekJ) and that it should be possible to override the property name. I was curious if this is planned for the 2.8.0 release or if this will go into GWT 3.0 ? It is planned for 2.8 release. Currently my only workaround is to use JSNI: to set the property directly: @JsType interface MyInterface { @JsProperty void setTitle(String title); @JsProperty String getTitle(); void setXAxisParser(Callback callback); } public MyClass implements MyInterface { public String title; public Callback callback; @Override public void setTitle(String title) { this.title = title; } @Override public String getTitle() { return title; } @Override public void setXAxisParser(Callback callback)/*-{ this.xValueParser = callback; }*-/; } -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA20qeA8kjZO2iSWsh0nhwxqbXGTjPD-de-XKcxgrZZsHA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
GWT
Hi Team, I am getting the below exception while loading my project. Please tell me the solution for the same. error com.google.web.bindery.requestfactory.shared.ServerFailure@778e3d5c Thanks Regards, SUBBAREDDY -- 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-contrib] JSInterop @JsProperty overriding name
Thanks for the heads up. One additional question. I am trying to wrap a 3rd javascript library that is relying on `hasOwnProperty` to check if the object contains a specific property. As far as I can tell the @JsProperty will create a property using `defineProperty`. Is there any way how to avoid the automatic creation of the property (or is anything planned?) Currently my workaround is to use JSNI for those fields. On Wednesday, July 29, 2015 at 9:11:58 PM UTC+2, Goktug Gokdogan wrote: On Tue, Jul 28, 2015 at 8:36 AM, Ümit Seren uemit...@gmail.com javascript: wrote: I started to play around with JSInterop and GWT 2.8.0-SNAPSHOT. Primarily I was following these documentation: https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit# However I ran into some issues regarding properties that don’t follow Java bean style convention (i.e. xAxisParser) . According to the javaDocs on the @JsProperty annotation it should be possible to define properties also in this way : @JsProperty x(intx) which translates to this.x=y. The javadoc is not accurate, only bean convetions is supported at the moment. However when I try this, the compiler complains that the property doesn’t follow Java Bean naming conventions. I found a recent post about overhaul of JsInterop’s annotations ( https://groups.google.com/forum/#!searchin/google-web-toolkit-contributors/annotations/google-web-toolkit-contributors/Dwdk-aEHs8Y/OvSNe6egUekJ) and that it should be possible to override the property name. I was curious if this is planned for the 2.8.0 release or if this will go into GWT 3.0 ? It is planned for 2.8 release. Currently my only workaround is to use JSNI: to set the property directly: @JsType interface MyInterface { @JsProperty void setTitle(String title); @JsProperty String getTitle(); void setXAxisParser(Callback callback); } public MyClass implements MyInterface { public String title; public Callback callback; @Override public void setTitle(String title) { this.title = title; } @Override public String getTitle() { return title; } @Override public void setXAxisParser(Callback callback)/*-{ this.xValueParser = callback; }*-/; } -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com javascript:. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/2b5b9006-4779-46a8-95d3-b4b13853387c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] JSInterop @JsProperty overriding name
ok sorry, forget what I said. It actually works fine, when I take the approach that is described in the google docs. On Thursday, July 30, 2015 at 11:49:26 AM UTC+2, Ümit Seren wrote: Thanks for the heads up. One additional question. I am trying to wrap a 3rd javascript library that is relying on `hasOwnProperty` to check if the object contains a specific property. As far as I can tell the @JsProperty will create a property using `defineProperty`. Is there any way how to avoid the automatic creation of the property (or is anything planned?) Currently my workaround is to use JSNI for those fields. On Wednesday, July 29, 2015 at 9:11:58 PM UTC+2, Goktug Gokdogan wrote: On Tue, Jul 28, 2015 at 8:36 AM, Ümit Seren uemit...@gmail.com wrote: I started to play around with JSInterop and GWT 2.8.0-SNAPSHOT. Primarily I was following these documentation: https://docs.google.com/document/d/1tir74SB-ZWrs-gQ8w-lOEV3oMY6u6lF2MmNivDEihZ4/edit# However I ran into some issues regarding properties that don’t follow Java bean style convention (i.e. xAxisParser) . According to the javaDocs on the @JsProperty annotation it should be possible to define properties also in this way : @JsProperty x(intx) which translates to this.x=y. The javadoc is not accurate, only bean convetions is supported at the moment. However when I try this, the compiler complains that the property doesn’t follow Java Bean naming conventions. I found a recent post about overhaul of JsInterop’s annotations ( https://groups.google.com/forum/#!searchin/google-web-toolkit-contributors/annotations/google-web-toolkit-contributors/Dwdk-aEHs8Y/OvSNe6egUekJ) and that it should be possible to override the property name. I was curious if this is planned for the 2.8.0 release or if this will go into GWT 3.0 ? It is planned for 2.8 release. Currently my only workaround is to use JSNI: to set the property directly: @JsType interface MyInterface { @JsProperty void setTitle(String title); @JsProperty String getTitle(); void setXAxisParser(Callback callback); } public MyClass implements MyInterface { public String title; public Callback callback; @Override public void setTitle(String title) { this.title = title; } @Override public String getTitle() { return title; } @Override public void setXAxisParser(Callback callback)/*-{ this.xValueParser = callback; }*-/; } -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com . To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/64db778c-7fca-45b7-a0c8-52aae0c6968f%40googlegroups.com?utm_medium=emailutm_source=footer . For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups GWT Contributors group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/9301e6ac-086f-4c28-9f2c-27beb1bfbd06%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.