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

Shane Bryzak Shane_Bryzak at symantec.com
Wed Dec 20 06:40:25 EST 2006


  User: sbryzak2
  Date: 06/12/20 06:40:25

  Modified:    examples/seamspace/view   template.xhtml
  Added:       examples/seamspace/view   profile.xhtml
  Log:
  added profile page
  
  Revision  Changes    Path
  1.4       +7 -7      jboss-seam/examples/seamspace/view/template.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: template.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/template.xhtml,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -b -r1.3 -r1.4
  --- template.xhtml	20 Dec 2006 03:36:56 -0000	1.3
  +++ template.xhtml	20 Dec 2006 11:40:25 -0000	1.4
  @@ -34,13 +34,13 @@
       </div>
     </div>
     
  -  <!--div id="menubar">
  -    <s:link action="" value="Home"/>|
  -    <s:link action="" value="Browse"/>|
  -    <s:link action="" value="Blog"/>|
  -    <s:link action="" value="Videos"/>|
  -    <s:link action="" value="Music"/>
  -  </div-->
  +  <div id="menubar">
  +    <s:link view="/home.xhtml" value="Home" propagation="none"/>|
  +    <s:link value="Browse"/>|
  +    <s:link value="Blog"/>|
  +    <s:link value="Videos"/>|
  +    <s:link value="Music"/>
  +  </div>
   
     <div id="content">
       <ui:insert name="content"/>
  
  
  
  1.1      date: 2006/12/20 11:40:25;  author: sbryzak2;  state: Exp;jboss-seam/examples/seamspace/view/profile.xhtml
  
  Index: profile.xhtml
  ===================================================================
  <!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:s="http://jboss.com/products/seam/taglib">
  
    <ui:composition template="template.xhtml">
      <ui:define name="content">
        <div id="contentMain">
  			  <h1>#{selectedMember.name}'s profile</h1>
  			
  			  <div class="errors"><h:messages globalOnly="true"/></div> 
  			  
  			  
  			  
  			  <s:div rendered="#{s:hasRole('user')}">
  			    You are a member of the 'user' role.
  			  </s:div>
  			  
  			  <s:div rendered="#{s:hasRole('admin')}">
  			    You are a member of the 'admin' role.
  			  </s:div>  
        </div>
      
      </ui:define>
      
    </ui:composition>
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list