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

Shane Bryzak Shane_Bryzak at symantec.com
Sat Jan 27 09:06:01 EST 2007


  User: sbryzak2
  Date: 07/01/27 09:06:01

  Modified:    examples/seamspace/view     comment.xhtml profile.xhtml
                        template.xhtml
  Added:       examples/seamspace/view     friendcomment.xhtml
  Log:
  added friend's comments page
  
  Revision  Changes    Path
  1.5       +1 -1      jboss-seam/examples/seamspace/view/comment.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: comment.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/comment.xhtml,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -b -r1.4 -r1.5
  --- comment.xhtml	26 Jan 2007 10:20:11 -0000	1.4
  +++ comment.xhtml	27 Jan 2007 14:06:01 -0000	1.5
  @@ -50,7 +50,7 @@
   
                 <div class="buttons">
                   <h:commandButton action="#{blog.saveComment}" value="Add comment" styleClass="action"/>            
  -                <h:commandButton action="#{blog.previewComment}" value="Preview" styleClass="action"/>                            
  +                <h:commandButton value="Preview" styleClass="action"/>                            
                 </div>
                 
                 <br class="clear"/>
  
  
  
  1.15      +6 -3      jboss-seam/examples/seamspace/view/profile.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: profile.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/seamspace/view/profile.xhtml,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -b -r1.14 -r1.15
  --- profile.xhtml	26 Jan 2007 13:24:44 -0000	1.14
  +++ profile.xhtml	27 Jan 2007 14:06:01 -0000	1.15
  @@ -31,7 +31,7 @@
             
             <br style="clear:both"/>
             
  -          View My: Pics | Videos
  +          View My: Pics
             
           </s:div>
           
  @@ -73,7 +73,7 @@
   	        <ui:repeat value="#{profile.friendComments}" var="c">
   	          <table class="friendComments">
   	            <tr>
  -		            <td>
  +		            <td class="friendCommentor">
   				          <h:outputLink value="profile.seam?name=#{c.friend.memberName}">
   					          #{c.friend.memberName}<br/>
   					          <h:graphicImage value="/content/images?id=#{c.friend.picture.imageId}&amp;width=90"/>
  @@ -88,6 +88,9 @@
   	          </table>
   	        </ui:repeat>            
             
  +          <s:span rendered="#{s:hasPermission('friendComment', 'create', selectedMember.friends)}">            
  +            [<h:outputLink value="friendcomment.seam?name=#{selectedMember.memberName}">Add Comment</h:outputLink>]
  +          </s:span>          
           </s:div>        
         </s:div>                
             
  
  
  
  1.8       +1 -0      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.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- template.xhtml	26 Jan 2007 05:32:34 -0000	1.7
  +++ template.xhtml	27 Jan 2007 14:06:01 -0000	1.8
  @@ -17,6 +17,7 @@
         <div class="headerMenu">
           <!--s:link action="" value="SignUp"/-->
           <s:link action="#{identity.logout}" value="Log out" rendered="#{identity.loggedIn}"/>
  +        <h:outputLink value="home.seam" rendered="#{not identity.loggedIn}">Log in</h:outputLink>
         </div>
         <br style="clear:both"/>
         <h:form>
  
  
  
  1.1      date: 2007/01/27 14:06:01;  author: sbryzak2;  state: Exp;jboss-seam/examples/seamspace/view/friendcomment.xhtml
  
  Index: friendcomment.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 class="errors"><h:messages globalOnly="true"/></div>       
  
        <s:div rendered="#{friendComment == null}">
          Could not create comment.
        </s:div>
      
        <s:div rendered="#{friendComment != null}">
        
          <s:div id="blogMemberCard">
            <h:outputLink value="profile.seam?name=#{friendComment.member.memberName}">
  	          #{friendComment.member.memberName}<br/>
  	          <h:graphicImage value="/content/images?id=#{friendComment.member.picture.imageId}&amp;width=90"/>
  	        </h:outputLink>
                             
            <br style="clear:both"/>          
          </s:div>
  
  				<s:div id="blog">
            
            <s:div rendered="#{friendComment.comment != null}">
              Preview:
  	          <table class="blogComment">
  	            <tr>		            
  		            <td class="blogCommentText">
  		              <p><s:formattedText value="#{friendComment.comment}"/></p>
  		            </td>	            
  	            </tr>
  	          </table>          
            </s:div>
            
            <div class="commentEntry">
              <h:form>
                
                <h:outputLabel for="comment">Please type your comment for #{friendComment.member.memberName}</h:outputLabel><br/>
                <h:inputTextarea name="comment" value="#{friendComment.comment}"/><br/>
  
                <div class="buttons">
                  <h:commandButton action="#{friend.saveComment}" value="Add comment" styleClass="action"/>            
                  <h:commandButton value="Preview" styleClass="action"/>                            
                </div>
                
                <br class="clear"/>
              </h:form>
            </div>
            
            <div>
              <b>Seam Text Quick Reference</b><br/>
              <pre><code>
  *bold* /italic/ |monospace| -strikethrough- ^super^ _underline_
  
  +Big Heading
  Headings must be followed by text
  
  ++Smaller heading
  Paragraphs are ended with a blank line.
  
  #ordered list item
  
  =unordered list item
  
  "quoted text"
              </code></pre>
            </div>
            
          </s:div>
                  
        </s:div>                
        
        <br class="clear"/>
            
      </ui:define>
      
    </ui:composition>
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list