[jboss-cvs] jboss-seam/examples/registration/view ...

Gavin King gavin.king at jboss.com
Thu Jun 21 19:28:21 EDT 2007


  User: gavin   
  Date: 07/06/21 19:28:21

  Added:       examples/registration/view     register.xhtml
                        registered.xhtml
  Removed:     examples/registration/view     register.jspx registered.jspx
  Log:
  simplest example should use facelets
  
  Revision  Changes    Path
  1.1      date: 2007/06/21 23:28:21;  author: gavin;  state: Exp;jboss-seam/examples/registration/view/register.xhtml
  
  Index: register.xhtml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!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:s="http://jboss.com/products/seam/taglib"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core">
  
    <head>
      <title>Register New User</title>
    </head>
    <body>
      <f:view>
        <h:form>
          <table border="0">
            <s:validateAll>
              <tr>
                <td>Username</td>
                <td><h:inputText value="#{user.username}" required="true"/></td>
              </tr>
              <tr>
                <td>Real Name</td>
                <td><h:inputText value="#{user.name}" required="true"/></td>
              </tr>
              <tr>
                <td>Password</td>
                <td><h:inputSecret value="#{user.password}" required="true"/></td>
              </tr>
            </s:validateAll>
          </table>
          <h:messages/>
          <h:commandButton value="Register" action="#{register.register}"/>
        </h:form>
      </f:view>
    </body>
  
  </html>
  
  
  
  1.1      date: 2007/06/21 23:28:21;  author: gavin;  state: Exp;jboss-seam/examples/registration/view/registered.xhtml
  
  Index: registered.xhtml
  ===================================================================
  <?xml version="1.0" encoding="utf-8"?>
  <!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:f="http://java.sun.com/jsf/core">
  
    <head>
      <title>Successfully Registered New User</title>
    </head>
    <body>
      <f:view>
        Welcome, #{user.name}, you are successfully registered as #{user.username}.
      </f:view>
    </body>
  
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list