I Use This!

Project Summary

Analyzed 28 days ago. based on code collected 28 days ago.

DescriptionIf you're an expirienced GWT developers you may be confronted with difficulties conserned with writting a lot of complicated Java code to design your pages.

HTMLTmplateWidget allows to use HTML files for designing.

ExampleTo use HTMLTemplate widget you have to download gdwidgets.jar file, add it to your classpath and import in you GWT project by writting this line:

in your .gwt.xml file.

Now you can create HTMLTemplateWidget by this way:

final HTMLTemplateWidget templateWidget = new HTMLTemplateWidget("test.html");as parameter in constructor you pass path to HTML file and its name. HTML files storage root is your GWT public folder, where you keep your resources.

Example of HTML file:

Enter your name: for simple I create only one input tag and set id attribute value - "helloworld", this is very important step, because later we will use this id to set in this place TextBox widget.

In your GWT module class write this:

public void onModuleLoad() {
final TextBox textBox = new TextBox ();
final HTMLTemplateWidget templateWidget = new HTMLTemplateWidget(
templateWidget.addWidget("helloworld", textBox );
}templateWidget.addWidget("helloworld", textBox ); - this row add your widget to html file in place of tag with id "helloworld".

and now you can run your project.

Admite, that now your can create you design in HTML, or even give this task to your html designer, and then only specify id attributes to tags that must be replaced by HTMLTemplateWidget.

With HTMLTemplateWidget you can write inline css, or styles directly in you tags in HTML file and keep your Java code clear from design. Now your JAVA code is using only for defining controls and its behavior.

You can use any number of HTMLTemplateWidgets in your project and you can put on HTMLTemplateWidget in another, and easy make complicated design. And any redesigning now is much more simpler you have to modify only html files but not JAVA classes

Please read more about HTMLTemplateWidget in links to topics in Google groups


In a Nutshell, htmltemplatewidget...


30 Day Summary

Aug 16 2015 — Sep 15 2015

12 Month Summary

Sep 15 2014 — Sep 15 2015



Be the first to rate this project
Click to add your rating
   Spinner f6ecff617ec2ba7f559e6f535cad9b70a3f91120737535dab4d4548a6c83576c
Review this Project!