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

Peter Muir peter at bleepbleep.org.uk
Wed Mar 28 15:12:46 EDT 2007


  User: pmuir   
  Date: 07/03/28 15:12:46

  Added:       examples/seamdiscs/view      error.xhtml login.page.xml
                        login.xhtml index.html home.xhtml
  Log:
  Initial work on Richfaces/Trinidad example
  
  Revision  Changes    Path
  1.1      date: 2007/03/28 19:12:46;  author: pmuir;  state: Exp;jboss-seam/examples/seamdiscs/view/error.xhtml
  
  Index: error.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>Error</h1>
      <p>Something bad happened :-(</p>
      
      <h:messages styleClass="message"/>
          
  </ui:define> 
  </ui:composition>
  
  
  
  1.1      date: 2007/03/28 19:12:46;  author: pmuir;  state: Exp;jboss-seam/examples/seamdiscs/view/login.page.xml
  
  Index: login.page.xml
  ===================================================================
  <!DOCTYPE page PUBLIC
            "-//JBoss/Seam Pages Configuration DTD 1.2//EN"
            "http://jboss.com/products/seam/pages-1.2.dtd">
  
  <page>
     <navigation from-action="#{identity.login}">
        <rule if="#{identity.loggedIn}">
           <redirect view-id="/home.xhtml"/>
        </rule>
     </navigation>
  </page>
  
  
  1.1      date: 2007/03/28 19:12:46;  author: pmuir;  state: Exp;jboss-seam/examples/seamdiscs/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"
                  xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                  template="layout/template.xhtml">
  
  <ui:define name="body">
      
      <h:messages styleClass="message"/>
      
      <h:form id="login">
      
          <rich:panel>
              <f:facet name="header">Login</f:facet>
      
              <p>Please login using any username and password</p>
          
              <div class="dialog">
                  <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
                      <h:outputLabel for="username">Username</h:outputLabel>
                      <h:inputText id="username" 
                                value="#{identity.username}"/>
                      <h:outputLabel for="password">Password</h:outputLabel>
                      <h:inputSecret id="password" 
                                  value="#{identity.password}"/>
                      <h:outputLabel for="rememberMe">Remember me</h:outputLabel>
                      <h:selectBooleanCheckbox id="rememberMe" 
                                            value="#{identity.rememberMe}"/>
                  </h:panelGrid>
              </div>
                  
          </rich:panel>
              
          <div class="actionButtons">
              <h:commandButton value="Login" action="#{identity.login}"/>
          </div>
            
      </h:form>
  
   </ui:define> 
  </ui:composition>
  
  
  
  1.1      date: 2007/03/28 19:12:46;  author: pmuir;  state: Exp;jboss-seam/examples/seamdiscs/view/index.html
  
  Index: index.html
  ===================================================================
  <html>
  <head>
    <meta http-equiv="Refresh" content="0; URL=home.seam">
  </head>
  </html>
  
  
  1.1      date: 2007/03/28 19:12:46;  author: pmuir;  state: Exp;jboss-seam/examples/seamdiscs/view/home.xhtml
  
  Index: home.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"
                  xmlns:rich="http://richfaces.ajax4jsf.org/rich"
                  xmlns:tr="http://myfaces.apache.org/trinidad"
                  template="layout/template.xhtml">
  
  <ui:define name="body">
  
      <h:messages globalOnly="true" styleClass="message"/>
      
      <rich:panel>
      <f:facet name="header">Welcome to Seam Discs!</f:facet>
      	<p>This application allows you to catalogue your favourite
      	bands, and albums they've released - and shows off Seam,
      	RichFaces, and Trinidad integration</p>
      	
      	<p>Discs</p>
      	<tr:panelPartialRoot>
      	<tr:form>
      	<tr:table value="#{discs.dataModel}" var="disc">
      		<tr:column sortable="true" sortProperty="name">
      			<f:facet name="header">
      				Disc
      			</f:facet>
      			<h:outputText value="#{disc.name}" />
      		</tr:column>
      		<tr:column>
      			<f:facet name="header">
      				Artist
      			</f:facet>
      			<h:outputText value="#{disc.artist.name}" rendered="#{disc.artist ne null}" />
      		</tr:column>
      	</tr:table>
      	</tr:form>
      	</tr:panelPartialRoot>
      </rich:panel>
      
  </ui:define> 
  </ui:composition>
  
  
  



More information about the jboss-cvs-commits mailing list