• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Is GWT build of Custom Tags?

 
Ranch Hand
Posts: 177
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is GWT build of Custom tags? Debugging in the java code means debugging the custom tags?
 
author
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are no custom tags in GWT, if you are comparing to other approaches.

A simple application that shows two buttons on the screen would have code similar to:

HorizontalPanel hp = new HorizontalPanel();
Button b1 = new Button("OK");
Button b2 = new Button("Cancel");
b1.addClickListener(new ClickListener(){
public void onClick(Widget sender){
Window.alert("You clicked OK");
}
});
hp.add(b1);
hp.add(b2);
RootPanel.get("SomeDOMElement").add(hp);

so you can see from the code there are no custom tags.

What is present here is a reference to a DOM element in the final line - this GWT code will try and place the DOM representation of the HorizontalPanel hp within the SomeDOMElement DOM element on your HTML page.

Another place where there are "tags" is where you wish to communicate to the compiler. So, for example, when you want an object to be serialized you indicate to the compiler in a tag within a comment the underlying object type (this should disappear when moving away from Java 1.4 syntax).

But as for custom tags within your HTML page; there are none.

Hope that answers the question!

//Adam
 
Remember to always leap before you look. But always take the time to smell the tiny ads:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic