Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

============

simple

The simple theme provides no additional functionality from HTML tags (similiar to struts). This theme the "bare bones" HTML element support and is considered the low end of the structure and can be re-used (extended) like xhtml to add to build additional functionality or behavior . You can easily create your own theme and extend this one to create complex pages that fit your own needs.
To use the pre-defined theme simple

...


<%@ taglib uri="webwork" prefix="ui" %>
<link rel ="stylesheet" type="text/css" href="template/xhtml/styles.css" title="Style">
<html>
<head><title>JSP PAGE</title></head>
<body>
  <form>
	<ui:label name="'userlabel'" label="'user" theme="'simple'"/>
                <ui:textfield name="'user'" theme="'simple'"/>

	<ui:label name="'emaillabel'" label="'user" theme="'simple'"/>
                <ui:textfield name="'email'" theme="'simple'"/>
  </form>
</body>
</html>

...

(see Extending Themes for more information). For example, the textfield tag renders the HTML <input/> tag without any additional labels, validation error reporting, or anything else. If you require additional behavior, see the xhtml theme.

While most of the templates in this theme are self explanatory, there are a few templates that should be called out and explained in detail: