-1

I want to know how to use already existing html templates with gwt because for my project I have html design that i'm obliged to use thanks

  • 3
    Welcome to StackOverflow! Please have a look at http://stackoverflow.com/help/how-to-ask before posting a question. – manub Mar 16 '16 at 15:28

1 Answers1

1

You have two options.

  1. Copy your HTML into a UiBinder template, putting it inside an HTMLPanel. Then you can selectively replace some HTML elements with GWT widgets where additional functionality is required, and reference these widgets in your corresponding view. Alternatively, you can reference elements, if you don't need widget functionality.

This option is the only option if you have multiple HTML templates and you want to turn them into a single-page GWT app.

  1. Use your HTML as a host page, adding ids to the elements you want to make interactive. Then you can get these elements from your GWT code and manipulate them as necessary.
Andrei Volgin
  • 40,755
  • 6
  • 49
  • 58