Search code examples
htmlgwtmvpgwt-mvp

Use html template in gwt


I want to realize a MVP gwt application using this external HTML template.

Is it possible create HTML pages and use them in a gwt project instead of write java code in "view" classes to produce HTML?


Solution

  • The closest thing you can get to HTML in GWT is UiBinder

    At heart, a GWT application is a web page. And when you're laying out a web page, writing HTML and CSS is the most natural way to get the job done. The UiBinder framework allows you to do exactly that: build your apps as HTML pages with GWT widgets sprinkled throughout them.

    Creating lots of HTML pages is not really what GWT is about. It uses a single HTML page and loads your GWT pages in there using JavaScript.

    If you want a Bootstrap theme, you can use GWTBootstrap3, or GWT-Bootstrap (still runs bootstrap 2) perhaps?