-1

Like there is a getElementById() in JavaScript to get a HTML tag and in Android to attach to UI Element , is there a way in GWT do all the stylings in basic HTML and CSS and just use GWT for event handling ?

In other words, If I have in HTML :

<input type="button" id="refresh">

And in GWT :

Button b1 = new Button();

Can I bind these two together ?

~Thanks

Sachin
  • 3,350
  • 2
  • 17
  • 29

2 Answers2

0

Got the right answer :-

Button button = Button.wrap(Document.get().getElementById("submit"));

is working for me.

Sachin
  • 3,350
  • 2
  • 17
  • 29
-1

Please do at least basic research before posting questions. Anyways here is your answer

RootPanel.get("refresh");
Abhijith Nagaraja
  • 3,370
  • 6
  • 27
  • 55