Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

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

simple

The simple theme provides no additional functionality from HTML tags (similiar to struts). This theme is considered the low end of the structure and can be re-used (extended) like xhtml to add 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>

...

renders "bare bones" HTML elements. The simple theme is most often used as a starting point for other themes. (See Extending Themes for more.)

For example, the textfield tag renders the HTML <input/> tag without a label, validation, error reporting, or any other formatting or functionality.

Tip

Both the xhtml theme and css_xhtml theme extend the simple theme. Look to them for examples of how to build on the foundation laid by the simple theme.

Head Tag

The simple theme head template prints out a javascript include required for the datetimepicker tag to render properly.

...