[gwt-contrib] A new library to integrate GWT with any CSS Framework
Hello Everyone, I come up here to let you know about a library i build, aiming at* integrating efficiently any CSS framework with GWT*. This allows your application to type-safely use *Sass, Less, Susy, GSS, vanilla css or any other*. From the developper point of view, it *works almost the same way as CssResource* which is the default in GWT. Link : http://www.lteconsulting.fr/hexacss/ Benefits : - you can use *any css framework* and not only GSS (especially Sass and Less have a very good variable and mixin systems) - you can bind* multiple CSS files to one GWT application*. This allows you to theme your application in a very effective way - you can then *switch your application theme dynamically* without reloading the application - there is *still optimization happening* : non used CSS classes will be pruned. Also there is name obfuscation, for reducing CSS file size - the *API is very similar to CssResource* so you don't have much to learn to use it. The product page is here : http://www.lteconsulting.fr/hexacss/ The product page tells you how to use it, how to build it. It has three use case demos. The project is hosted on github : https://www.github.com/ltearno/hexa.tools Of course, it is open source and will stay so ! Stay tuned, because i have other announcements to make soon Please tell me if you find the idea interesting and if it might help you. I also very much welcome anyone wishing to contribute to this project ! Thanks Arnaud Tournier www.lteconsulting.fr twitter : @ltearno -- 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/d3e08dc9-c6ee-4648-9234-eb8dee137745%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] A new library to integrate GWT with any CSS Framework
Hi Arnaud, great work! Have you considered using a APT generator instead of hooking into the old GWT Generator API? -Daniel On Wed, Apr 1, 2015 at 11:08 AM, Arnaud TOURNIER ltea...@gmail.com wrote: Hello Everyone, I come up here to let you know about a library i build, aiming at integrating efficiently any CSS framework with GWT. This allows your application to type-safely use Sass, Less, Susy, GSS, vanilla css or any other. From the developper point of view, it works almost the same way as CssResource which is the default in GWT. Link : http://www.lteconsulting.fr/hexacss/ Benefits : - you can use any css framework and not only GSS (especially Sass and Less have a very good variable and mixin systems) - you can bind multiple CSS files to one GWT application. This allows you to theme your application in a very effective way - you can then switch your application theme dynamically without reloading the application - there is still optimization happening : non used CSS classes will be pruned. Also there is name obfuscation, for reducing CSS file size - the API is very similar to CssResource so you don't have much to learn to use it. The product page is here : http://www.lteconsulting.fr/hexacss/ The product page tells you how to use it, how to build it. It has three use case demos. The project is hosted on github : https://www.github.com/ltearno/hexa.tools Of course, it is open source and will stay so ! Stay tuned, because i have other announcements to make soon Please tell me if you find the idea interesting and if it might help you. I also very much welcome anyone wishing to contribute to this project ! Thanks Arnaud Tournier www.lteconsulting.fr twitter : @ltearno -- 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/d3e08dc9-c6ee-4648-9234-eb8dee137745%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Google Germany GmbH Dienerstr. 12 80331 München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Katherine Stephens -- 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/CALLujirghXxptfJ3KkSbhgfwPhb4GP_ss3ep%2BG47vpSofq2fyQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] JsInterop Questions
Thanks Goktug ! That works better with GWT 2.8 indeed. However, it seems there is a bug with @JsExport and super dev mode in the last snapshot. When I use sdm, the prototype of my JsType is correctly defined (fields and function are defined with the right name) but the constructor is not exported and I cannot instantiated my Java object from Javascript. AgeSlider.java: @JsNamespace(jdramaix) @JsType public class AgeSlider { public int age; @JsExport public AgeSlider() { } // other public methods are exported } With sdm, in javascript, I'm not able to do: var slider = new jdramaix.AgeSlider(); By looking a bit in the javascript code generated by sdm, the part exporting the constructor under AgeSlider is not present: _ = provide('jdramaix'); _.AgeSlider = AgeSlider; That works fine with a normal compilation. Julien On Wed, Apr 1, 2015 at 2:07 AM 'Goktug Gokdogan' via GWT Contributors google-web-toolkit-contributors@googlegroups.com wrote: On Tue, Mar 31, 2015 at 2:30 PM, Julien Dramaix julien.dram...@gmail.com wrote: Dear GWT lovers, I've finally started to play with JsInterop in GWT 2.7 and mainly I'm trying to use JsInterop in order to write polymer components. So far, I have two questions: 1. I'm using super dev mode and so I'm obliged to use the CrossSiteIframeLinker. As the javascript code generated by GWT is loaded in an iframe, the exported types are not accessible from the main window (only from the iframe). The workaround I found to expose java type from the main window is to prefix my namespace by *$wnd* @JsNamespace($wnd.jdramaix) public class AgeSliderImpl Isn't it a better way to do that ? Yes, in 2.7 you need to use $wnd to expose your code to main window. In GWT 2.8 snapshot, this is the default behavior, you don't need $wnd. 2. I want to expose some java field of my class to javascript field. I'm trying to use @JsProperty for this purpose but it seems not to work: @JsNamespace($wnd.jdramaix) public class AgeSliderImpl implements AgeSlider { public int age; @Override public int getAge() { return age; }} @JsType public interface AgeSlider { @JsProperty int getAge(); } If I try to access the field in the javascript console,it is undefined: var slider = new jdramaix.AgeSliderImpl() slider.age undefined But the method getAge exists: slider.getAge function getAge_0_g$(){ return this.age_3_g$; } Same problem if I rename the method to age(). slider.age is defined by point to a function. Does @JsProperty work (at least when we export Java to Javascript) in GWT 2.7. ? If so how to use it ? @JsProperty methods defined in @JsType that is implemented by concrete classes does not work with GWT 2.7 (basically the scenario in your code snippet), it doesn't generate the code with a javascript property setter/getters. In GWT 2.8 snapshot, javascript property setter/getter are still not implemented (yet) but instead you can use @JsType with concrete class and a public field, and you can skip the JsType interface completely. i.e. @JsType public class AgeSlider { public int age;} if you want to export the constructor, don't forget to add @JsExport as well. Thanks Julien -- 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/CABb_3%3D6WZanScYy1ZqHBR23yssh9uvDLWe%3DquGaiixcpOusBog%40mail.gmail.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D6WZanScYy1ZqHBR23yssh9uvDLWe%3DquGaiixcpOusBog%40mail.gmail.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%3DyUA2CSorYH4oHFzGsVrRD1cfnDM1n_jEOJ4upOYyeukm4eQ%40mail.gmail.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA2CSorYH4oHFzGsVrRD1cfnDM1n_jEOJ4upOYyeukm4eQ%40mail.gmail.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
Re: [gwt-contrib] A new library to integrate GWT with any CSS Framework
Hi Daniel, Not yet, i wrote the project well before use APT in GWT was hype ! But that's definitely something i will do on all my projects, as time goes by. If i manage to migrate to APT for this project, that will replace the whole chain of gwt generators + gwt linker (which i use in this library)... Thanks Arnaud Le mer. 1 avr. 2015 à 12:22, 'Daniel Kurka' via GWT Contributors google-web-toolkit-contributors@googlegroups.com a écrit : Hi Arnaud, great work! Have you considered using a APT generator instead of hooking into the old GWT Generator API? -Daniel On Wed, Apr 1, 2015 at 11:08 AM, Arnaud TOURNIER ltea...@gmail.com wrote: Hello Everyone, I come up here to let you know about a library i build, aiming at integrating efficiently any CSS framework with GWT. This allows your application to type-safely use Sass, Less, Susy, GSS, vanilla css or any other. From the developper point of view, it works almost the same way as CssResource which is the default in GWT. Link : http://www.lteconsulting.fr/hexacss/ Benefits : - you can use any css framework and not only GSS (especially Sass and Less have a very good variable and mixin systems) - you can bind multiple CSS files to one GWT application. This allows you to theme your application in a very effective way - you can then switch your application theme dynamically without reloading the application - there is still optimization happening : non used CSS classes will be pruned. Also there is name obfuscation, for reducing CSS file size - the API is very similar to CssResource so you don't have much to learn to use it. The product page is here : http://www.lteconsulting.fr/hexacss/ The product page tells you how to use it, how to build it. It has three use case demos. The project is hosted on github : https://www.github.com/ ltearno/hexa.tools Of course, it is open source and will stay so ! Stay tuned, because i have other announcements to make soon Please tell me if you find the idea interesting and if it might help you. I also very much welcome anyone wishing to contribute to this project ! Thanks Arnaud Tournier www.lteconsulting.fr twitter : @ltearno -- 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/d3e08dc9-c6ee-4648-9234-eb8dee137745%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. -- Google Germany GmbH Dienerstr. 12 80331 München Registergericht und -nummer: Hamburg, HRB 86891 Sitz der Gesellschaft: Hamburg Geschäftsführer: Graham Law, Katherine Stephens -- You received this message because you are subscribed to a topic in the Google Groups GWT Contributors group. To unsubscribe from this topic, visit https://groups.google.com/d/ topic/google-web-toolkit-contributors/nR2HqBTo0v4/unsubscribe. To unsubscribe from this group and all its topics, 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/CALLujirghXxptfJ3KkSbhgfwPhb4G P_ss3ep%2BG47vpSofq2fyQ%40mail.gmail.com. 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/CANjaDndo4%2BpxApB0D16MLmwjj7is_SnZpqdFbtWJ2-7GNY3x_Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] JsInterop Generator from webidl
http://www.gwtproject.org/articles/elemental.html Is it the same? Il giorno mer 1 apr 2015 alle 23:32 nick936 niklas...@googlemail.com ha scritto: Hi, while playing with the new JsInterop feature i decided to write a code generator which generate the interfaces out of webidls fetched from https://html.spec.whatwg.org/ or the mozilla repository. Yesterday i started this littel project. It's a prototype and far away from being stable, but enough to use the generated interfaces for test purposes. I did a rather quick and dirty just to use the interfaces my internal test project and the code needs some refactoring. I used ANTLR4, javasoup and javapoet. You can find the sources in this github repo https://github.com/Nickel671/JsInteropGenerator. You can find the generated Interfaces here https://github.com/Nickel671/JsInteropGenerator/tree/master/target/generated-sources/gwt/org/niklas/elemental/Elemental/client/elements. If you are interested in this i will improve it. -- 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/d32b27c4-a1eb-40cb-9720-3d1f6c535b03%40googlegroups.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/d32b27c4-a1eb-40cb-9720-3d1f6c535b03%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/CAK5-kh41Zt_3pz9JdBg5AW3seRCGBGZ8tyk2HK6oqMJj_qqCiw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
Re: [gwt-contrib] JsInterop Questions
If you have JsExport on a class in the first compilation, it works fine right? Nope I doesn't work. Even in the first compilation I receive a Uncaught ReferenceError: jdramaix is not defined On Wed, Apr 1, 2015 at 8:15 PM 'Goktug Gokdogan' via GWT Contributors google-web-toolkit-contributors@googlegroups.com wrote: [+stalcup, +cromwellian] If you have JsExport on a class in the first compilation, it works fine right? I guess, it doesn't work only if you add JsExport after the first compilation? Last week we were suspecting exporting might not be working properly w/ SDM. We need to write some incremental compilation test to make sure this works properly before 2.8. On Wed, Apr 1, 2015 at 5:27 AM, Julien Dramaix julien.dram...@gmail.com wrote: Thanks Goktug ! That works better with GWT 2.8 indeed. However, it seems there is a bug with @JsExport and super dev mode in the last snapshot. When I use sdm, the prototype of my JsType is correctly defined (fields and function are defined with the right name) but the constructor is not exported and I cannot instantiated my Java object from Javascript. AgeSlider.java: @JsNamespace(jdramaix) @JsType public class AgeSlider { public int age; @JsExport public AgeSlider() { } // other public methods are exported } With sdm, in javascript, I'm not able to do: var slider = new jdramaix.AgeSlider(); By looking a bit in the javascript code generated by sdm, the part exporting the constructor under AgeSlider is not present: _ = provide('jdramaix'); _.AgeSlider = AgeSlider; That works fine with a normal compilation. Julien On Wed, Apr 1, 2015 at 2:07 AM 'Goktug Gokdogan' via GWT Contributors google-web-toolkit-contributors@googlegroups.com wrote: On Tue, Mar 31, 2015 at 2:30 PM, Julien Dramaix julien.dram...@gmail.com wrote: Dear GWT lovers, I've finally started to play with JsInterop in GWT 2.7 and mainly I'm trying to use JsInterop in order to write polymer components. So far, I have two questions: 1. I'm using super dev mode and so I'm obliged to use the CrossSiteIframeLinker. As the javascript code generated by GWT is loaded in an iframe, the exported types are not accessible from the main window (only from the iframe). The workaround I found to expose java type from the main window is to prefix my namespace by *$wnd* @JsNamespace($wnd.jdramaix) public class AgeSliderImpl Isn't it a better way to do that ? Yes, in 2.7 you need to use $wnd to expose your code to main window. In GWT 2.8 snapshot, this is the default behavior, you don't need $wnd. 2. I want to expose some java field of my class to javascript field. I'm trying to use @JsProperty for this purpose but it seems not to work: @JsNamespace($wnd.jdramaix) public class AgeSliderImpl implements AgeSlider { public int age; @Override public int getAge() { return age; }} @JsType public interface AgeSlider { @JsProperty int getAge(); } If I try to access the field in the javascript console,it is undefined: var slider = new jdramaix.AgeSliderImpl() slider.age undefined But the method getAge exists: slider.getAge function getAge_0_g$(){ return this.age_3_g$; } Same problem if I rename the method to age(). slider.age is defined by point to a function. Does @JsProperty work (at least when we export Java to Javascript) in GWT 2.7. ? If so how to use it ? @JsProperty methods defined in @JsType that is implemented by concrete classes does not work with GWT 2.7 (basically the scenario in your code snippet), it doesn't generate the code with a javascript property setter/getters. In GWT 2.8 snapshot, javascript property setter/getter are still not implemented (yet) but instead you can use @JsType with concrete class and a public field, and you can skip the JsType interface completely. i.e. @JsType public class AgeSlider { public int age;} if you want to export the constructor, don't forget to add @JsExport as well. Thanks Julien -- 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/CABb_3%3D6WZanScYy1ZqHBR23yssh9uvDLWe%3DquGaiixcpOusBog%40mail.gmail.com https://groups.google.com/d/msgid/google-web-toolkit-contributors/CABb_3%3D6WZanScYy1ZqHBR23yssh9uvDLWe%3DquGaiixcpOusBog%40mail.gmail.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
[gwt-contrib] JsInterop Generator from webidl
Hi, while playing with the new JsInterop feature i decided to write a code generator which generate the interfaces out of webidls fetched from https://html.spec.whatwg.org/ or the mozilla repository. Yesterday i started this littel project. It's a prototype and far away from being stable, but enough to use the generated interfaces for test purposes. I did a rather quick and dirty just to use the interfaces my internal test project and the code needs some refactoring. I used ANTLR4, javasoup and javapoet. You can find the sources in this github repo https://github.com/Nickel671/JsInteropGenerator. You can find the generated Interfaces here https://github.com/Nickel671/JsInteropGenerator/tree/master/target/generated-sources/gwt/org/niklas/elemental/Elemental/client/elements. If you are interested in this i will improve it. -- 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/d32b27c4-a1eb-40cb-9720-3d1f6c535b03%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.