[jboss-cvs] jboss-seam/seam-gen/view ...

Gavin King gavin.king at jboss.com
Tue Jan 30 23:07:27 EST 2007


  User: gavin   
  Date: 07/01/30 23:07:27

  Added:       seam-gen/view   login.page.xml login.xhtml
  Log:
  add security to seam-gen JBSEAM-719
  
  Revision  Changes    Path
  1.1      date: 2007/01/31 04:07:27;  author: gavin;  state: Exp;jboss-seam/seam-gen/view/login.page.xml
  
  Index: login.page.xml
  ===================================================================
  <!DOCTYPE page PUBLIC
            "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
            "http://jboss.com/products/seam/pages-1.1.dtd">
  
  <page>
     <navigation from-action="#{identity.login}">
        <rule if="#{identity.loggedIn}">
           <redirect view-id="/home.xhtml"/>
        </rule>
     </navigation>
  </page>
  
  
  1.1      date: 2007/01/31 04:07:27;  author: gavin;  state: Exp;jboss-seam/seam-gen/view/login.xhtml
  
  Index: login.xhtml
  ===================================================================
  <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <ui:composition xmlns="http://www.w3.org/1999/xhtml"
                  xmlns:s="http://jboss.com/products/seam/taglib"
                  xmlns:ui="http://java.sun.com/jsf/facelets"
                  xmlns:f="http://java.sun.com/jsf/core"
                  xmlns:h="http://java.sun.com/jsf/html"
                  template="layout/template.xhtml">
  
  <ui:define name="body">
  
      <h1>Login</h1>
      <p>Please login using any username and password</p>
      
      <h:messages globalOnly="true" styleClass="message"/>
      
      <h:form rendered="#{not identity.loggedIn}">
      
          <div class="dialog">
              <div class="prop">
                  <span class="name">Username</span>
                  <span class="value">
                      <h:inputText id="username" value="#{identity.username}"/>
                  </span>
              </div>
              <div class="prop">
                  <span class="name">Password</span>
                  <span class="value">
                      <h:inputSecret id="password" value="#{identity.password}"/>
                  </span>
              </div>
          </div>
              
          <div class="actionButtons">
              <h:commandButton value="Login" action="#{identity.login}"/>
          </div>
            
      </h:form>
          
  </ui:define> 
  </ui:composition>
  
  
  



More information about the jboss-cvs-commits mailing list