This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes GWT and the fly likes Is GWT build of Custom Tags? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » GWT
Bookmark "Is GWT build of Custom Tags?" Watch "Is GWT build of Custom Tags?" New topic

Is GWT build of Custom Tags?

NDP Prasad
Ranch Hand

Joined: Apr 13, 2006
Posts: 177
Is GWT build of Custom tags? Debugging in the java code means debugging the custom tags?

Adam Tacy
Ranch Hand

Joined: Jun 02, 2007
Posts: 37
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");

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!

I agree. Here's the link:
subject: Is GWT build of Custom Tags?
jQuery in Action, 3rd edition