Re: Compile UiBinder to static html?

2015-06-15 Thread Seth
Yea, that sounds like it would work out great too. I might end up choosing that over the JSP method. Thanks again Jens, I really appreciate the ideas. On Monday, June 15, 2015 at 3:13:19 PM UTC-4, Jens wrote: > > I see, > > maybe you can generate a second representation of your constant values as

GWT 2.7.0 Custom Linker Problem - .nocache.js Artifact content mismatches file

2015-06-15 Thread bobbitdiddle
To solve an issue with our particular use of GWT, we implement our own "post" Linker for GWT. This post linker appends a block of JS code to the end of .nocache.js, by detecting the nocache.js file when it's passed to the link() command in the ArtifactSet, and replacing it with a new Artifact

Re: How to search object instances by their type ?

2015-06-15 Thread Ed
Extra note: I noticed that I have an increase of 9% initial code download (according to the soyc report). I went from 631Kb to 690Kb (unzipped), when enabling the meta class info (-XdisableClassMetaData) -- You received this message because you are subscribed to the Google Groups "Google Web T

Re: How to search object instances by their type ?

2015-06-15 Thread Ed
> > Why don't you use instanceof? > Good point, sorry I forgot some info: I want to use a general method that searches for the widget types. Details: I have my own Widget tree (its root is called Elemento ;), It's a kind of builder pattern, that constructs GWT Element instances (I hope I can s

Re: How to search object instances by their type ?

2015-06-15 Thread Jens
Why don't you use instanceof? -- J. -- 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

How to search object instances by their type ?

2015-06-15 Thread Ed
Please some advice on the following situation (gwt 2.7.0): >From xml I generate display snippets like a menu with some different type of buttons that extends from a Button class. In the code I need to find RichButton instances in the menu, that are a subclass of the Button class (for further dec

Re: GWT Meet-up 2015 : which technologies for new project

2015-06-15 Thread Rogelio Flores
I'm not any kind of official voice for GWT or anyone, but my take is: 1) It might be true that UiBinder will be discontinued to favor some other templating system, but right now there's no replacement so we're using it extensively and I think a replacement will only be available long-term. 2) I

Re: Compile UiBinder to static html?

2015-06-15 Thread Jens
I see, maybe you can generate a second representation of your constant values as part of the build process. I could imaging slapping an annotation on your interface/enum that defines your constants and using an annotation processor to generate a different output format. Then you place some pl

Re: Compile UiBinder to static html?

2015-06-15 Thread Seth
Hi Jens, Thanks for weighing in. I have a class that houses constant values which I reference in my GWT app. What I want to be able to do is reference one of those values like the team name in another static page like the About page that way I could just update the value in one place if a chang

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Ignacio Baca Moreno-Torres
IMO, stream API is totally replaceable (almost unnecessary), 80% of your uses cases can be solved with lamdas + Guava FluentIterables, and for advanced use cases libraries like RxJava (or whatever implements reactive streams interfaces) or IxJava are much more advanced and easy to extends. Not sure

Re: Compile UiBinder to static html?

2015-06-15 Thread Jens
The UiBinder generator produces Java code and there is no configuration option to tell UiBinder to do anything else than that. Of course you could fork UiBinder and adjust it to your needs. Actually I don't know what you want to develop but if you just want to generate static html pages using t

Re: Compile UiBinder to static html?

2015-06-15 Thread Seth
Hi, Thanks for the reply. It doesn't necessarily exclude JS, even though I'm pretty sure you can't include script tags in uibinder (at least when using it conventionally), but currently yes, the static page would not need any JS. And just to clarify I'm not talking about creating a new module t

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Pablo Nussembaum
Thomas is rigth, using lambdas is are really game changer for subscribing (you have 6 lines less on each one) to handlers and also you can use guava Optional class and functional idioms until idioms until we have fully java8 streams. Be aware that current GWT-2.8.0-SNAPSHOT compiler doesn't supp

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Thomas Broyer
On Monday, June 15, 2015 at 3:49:10 PM UTC+2, Ivan Hetman wrote: > > Thanks, got it. But why don't release special GWT 2.8 version with source > level 1.8 only? Without improved collection API Java 8 benefits in GWT are > low. > You can write lambdas and use defender methods in your own interf

Re: GWT 2.8.0 forEach, Consumer, Function, Streams and other Java 8 stuff

2015-06-15 Thread Ivan Hetman
Thanks, got it. But why don't release special GWT 2.8 version with source level 1.8 only? Without improved collection API Java 8 benefits in GWT are low. четвер, 11 червня 2015 р. 23:59:09 UTC+3 користувач Thomas Broyer написав: > > You cannot use "classic" DevMode with a Java 7 JVM and -sourceL

Re: Compile UiBinder to static html?

2015-06-15 Thread salk31
By static does that also exclude JavaScript? GWT/UiBinder etc will generate "static" files that can go in zip or served by apache and will produce the DOM you want in the browser... On Sunday, June 14, 2015 at 9:22:35 PM UTC+1, Seth wrote: > > Hi all, > > I would like to generate static html fro