Reputation: 131
is it possible to have parts (instead of the entire page) of an HTML page written with GWT? Is it usual?
I'm quite new to GWT and trying to understand the workflow of it.
Thanks.
Upvotes: 0
Views: 78
Reputation: 37778
I meant HTML static pages, written by hand (or any other means) and on these pages have parts (forms, media, whatever...) in GWT.
Yes, the simplest way this can be achieved is setting an id attribute on the elements you want to be filled in by GWT, e.g.
<body>
<div>
...
<div id="myId"></div>
</div>
</body>
, and then using
RootPanel myIdPanel = RootPanel.get("myId");
so you can put any GWT contents into myIdPanel.
Note, that there are many more ways to mix HTML that's generated by GWT and by other means - basically any combination is possible.
Upvotes: 3
Reputation: 5049
You might want to check out their UIBinder approach: http://www.gwtproject.org/doc/latest/DevGuideUiBinder.html
Upvotes: 0