You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

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

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>
<link rel ="stylesheet" type="text/css" href="template/xhtml/styles.css" title="Style">
<html>
<head><title>VM PAGE</title></head>
<body>
  <form>
#tag( Label  "name='userlabel'" "label='user'" "theme='simple'" )
#tag( TextField  "name='user'" "theme='simple'" )<br>

#tag( Label  "name='emaillabel'" "label='email'" "theme='simple'" )
#tag( TextField  "name='email'" "theme='simple'" )<br>
  </form>
</body>
</html>
  • No labels