diff options
Diffstat (limited to 'WebContent/pages/product.xhtml')
| -rw-r--r-- | WebContent/pages/product.xhtml | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/WebContent/pages/product.xhtml b/WebContent/pages/product.xhtml new file mode 100644 index 0000000..06c4a8d --- /dev/null +++ b/WebContent/pages/product.xhtml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:ui="http://java.sun.com/jsf/facelets" + xmlns:h="http://java.sun.com/jsf/html" + xmlns:f="http://java.sun.com/jsf/core" + xmlns:c="http://java.sun.com/jstl/core"> + +<ui:composition template="/templates/common.xhtml"> + + <ui:define name="pageTitle">JCatalog Application</ui:define> + + <ui:define name="pageHeader">Login</ui:define> + + <ui:define name="body"> + <div style="width: 500px; padding: 5px; margin: 0px auto; float: left;"> + <h:form> + <div class="row"> + <label for="name">Name:</label> + <span class="formw"><h:inputText id="name" disabled="true" value="#{ProductManager.current.name}" accesskey="n" size="40" /></span> + </div> + <div class="row"> + <label for="price">Price:</label> + <span class="formw"><h:inputText id="price" disabled="true" value="#{ProductManager.current.price}" accesskey="p" size="40" /></span> + </div> + <div class="row"> + <label for="description">Description:</label> + <span class="formw"><h:inputTextarea rows="20" cols="40" id="description" disabled="true" value="#{ProductManager.current.description}" accesskey="d" /></span> + </div> + <div class="row"> + <span class="formw"> + <h:commandButton action="products" id="back" value="Back" type="submit" accesskey="b" /> + </span> + </div> + <div class="spacer" /> + </h:form> + </div> + </ui:define> + + <ui:define name="pageFooter">JCatalog Footer</ui:define> + +</ui:composition> + +</html> |
