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

Shane Bryzak Shane_Bryzak at symantec.com
Tue Jan 30 21:56:14 EST 2007


  User: sbryzak2
  Date: 07/01/30 21:56:14

  Modified:    examples/seamspace/view   profile.xhtml
  Added:       examples/seamspace/view   friendrequest.xhtml
  Log:
  added friend request form
  
  Revision  Changes    Path
  1.16      +6 -0      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.15
  retrieving revision 1.16
  diff -u -b -r1.15 -r1.16
  --- profile.xhtml	27 Jan 2007 14:06:01 -0000	1.15
  +++ profile.xhtml	31 Jan 2007 02:56:14 -0000	1.16
  @@ -65,6 +65,12 @@
               </div>          
             </ui:repeat>          
           
  +          <s:span rendered="#{selectedMember != authenticatedMember and s:hasPermission('friendRequest', 'create', selectedMember.friends)}">
  +            [<h:outputLink value="friendrequest.seam?name=#{selectedMember.memberName}">
  +              Send a friend request
  +            </h:outputLink>]
  +          </s:span>
  +          
           </s:div>
           
           <s:div id="friendComments">
  
  
  
  1.1      date: 2007/01/31 02:56:14;  author: sbryzak2;  state: Exp;jboss-seam/examples/seamspace/view/friendrequest.xhtml
  
  Index: friendrequest.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="#{friendRequest == null}">
          Could not create friend request.
        </s:div>
  
        <s:div rendered="#{friendRequest != null}">
  
          <s:div id="blogMemberCard">
            <h:outputLink value="profile.seam?name=#{friendRequest.member.memberName}">
  	          #{friendRequest.member.memberName}<br/>
  	          <h:graphicImage value="/content/images?id=#{friendRequest.member.picture.imageId}&amp;width=90"/>
  	        </h:outputLink>
  
            <br style="clear:both"/>
          </s:div>
  
          <div class="friendRequest">
            <h1>Send a friend request</h1>
            
            <p>
              Use this form to request that <b>#{friendRequest.member.memberName}</b> adds you to 
              #{friendRequest.member.gender.possessive} friends list.
            </p>
          
            <h:form>
  
              <h:outputLabel for="comment">Please type an introduction message</h:outputLabel><br/>
              <h:inputTextarea name="comment" value="#{friendRequest.introduction}"/><br/>
  
              <div class="buttons">
                <h:commandButton action="#{friend.saveRequest}" value="Send request" styleClass="action"/>
              </div>
  
              <br class="clear"/>
            </h:form>
          </div>
  
        </s:div>
  
        <br class="clear"/>
  
      </ui:define>
  
    </ui:composition>
  </html>
  
  
  



More information about the jboss-cvs-commits mailing list