Monday, June 15, 2015

Re: Compile UiBinder to static html?

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 change is needed. I don't see the need for including my about page within my SAP since it contains basically just static content which could be generated at compile time and, save for the referencing of java constants, be served up on its lonesome apart from the main GWT app by the server. PhantomJS method is worth considering but at that point I might as well just use the JSP route I mentioned, which would ostensibly be the same but probably with less overhead.

I just wanted to see if the community knew of a more elegant way to achieve this.

Thanks again.

On Monday, June 15, 2015 at 12:51:42 PM UTC-4, Jens wrote:
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 templates and keep data separated then maybe something like Jekyll is more suitable than GWT. GWT is all about single page JavaScript apps. Of course you could also run your GWT app through a headless browser (e.g. phantomjs) and export the produced HTML. 

-- 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+unsubscribe@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.

No comments:

Post a Comment