I Use This!
Activity Not Available
Analyzed about 1 year ago. based on code collected about 1 year ago.

Project Summary

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




ajax gwt html htmltemplate java

In a Nutshell, htmltemplatewidget...

This Project has No vulnerabilities Reported Against it

Did You Know...

  • ...
    Black Duck offers a free trial so you can discover if there are open source vulnerabilities in your code
  • ...
    search using multiple tags to find exactly what you need
  • ...
    55% of companies leverage OSS for production infrastructure
  • ...
    anyone with an Open Hub account can update a project's tags



30 Day Summary

Apr 9 2016 — May 9 2016

12 Month Summary

May 9 2015 — May 9 2016


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