[jboss-cvs] jboss-seam/examples/wiki/view/includes ...

Christian Bauer christian at hibernate.org
Thu Apr 19 05:32:08 EDT 2007


  User: cbauer  
  Date: 07/04/19 05:32:08

  Modified:    examples/wiki/view/includes    attachmentDisplay.xhtml
  Added:       examples/wiki/view/includes    commentsDisplay.xhtml
                        commentForm.xhtml
  Log:
  Fixed comments and blog directory
  
  Revision  Changes    Path
  1.6       +1 -1      jboss-seam/examples/wiki/view/includes/attachmentDisplay.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: attachmentDisplay.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/includes/attachmentDisplay.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- attachmentDisplay.xhtml	5 Apr 2007 14:38:24 -0000	1.5
  +++ attachmentDisplay.xhtml	19 Apr 2007 09:32:08 -0000	1.6
  @@ -1,4 +1,4 @@
  -<s:div id="attachmentDisplay"
  +<s:div 
        styleClass="attachmentDisplay"
        rendered="#{wiki:sizeOf(wikiTextAttachments) > 0}"
        xmlns="http://www.w3.org/1999/xhtml"
  
  
  
  1.1      date: 2007/04/19 09:32:08;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/commentsDisplay.xhtml
  
  Index: commentsDisplay.xhtml
  ===================================================================
  <div id="commentsDisplay"
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib">
  
      <h:dataTable value="#{commentHome.comments}" var="c" style="margin-top:10px;"
                   rendered="#{not empty commentHome.comments and currentDocument.enableComments}"
                   styleClass="datatable rightBorder leftBorder topBorder bottomBorder"
                   headerClass="regularHeader alignLeft"
                   columnClasses="commentColumn"
                   rowClasses="rowOdd,rowEven"
                   cellpadding="0" cellspacing="0" border="0">
          <h:column>
              <f:facet name="header">
                  #{wiki:sizeOf(commentHome.comments)} comment(s):
              </f:facet>
  
              <div class="commentSubject">
                  #{c.subject}
              </div>
  
              <div class="commentAuthorDate">
              <span class="commentDate"><h:outputText value="#{c.createdOn}">
                  <f:convertDateTime pattern="dd. MMM yyyy, HH:mm"/>
              </h:outputText></span>
                  <s:span>&#160;(
                      <s:span styleClass="commentAuthor" rendered="#{empty c.fromUserHomepage}">#{c.fromUserName}</s:span>
                      <s:span styleClass="commentAuthor" rendered="#{!empty c.fromUserHomepage}"><a
                              href="http://#{c.fromUserHomepage}">#{c.fromUserName}</a></s:span>
                      <s:span styleClass="commentAuthor" rendered="#{!empty c.fromUserEmail}">, <a
                              href="mailto:#{c.fromUserEmail}">#{c.fromUserEmail}</a></s:span>
                      )
                  </s:span>
              </div>
  
              <s:div styleClass="commentText">
                  <s:formattedText value="#{c.text}"/>
              </s:div>
  
          </h:column>
      </h:dataTable>
  
  </div>
  
  
  
  1.1      date: 2007/04/19 09:32:08;  author: cbauer;  state: Exp;jboss-seam/examples/wiki/view/includes/commentForm.xhtml
  
  Index: commentForm.xhtml
  ===================================================================
  <div id="commentForm"
       xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:a="https://ajax4jsf.dev.java.net/ajax"
       xmlns:s="http://jboss.com/products/seam/taglib">
  
      <h:form styleClass="commentForm" rendered="#{currentDocument.enableComments and currentDocument.enableCommentForm}">
          <div class="form">
              <div class="formHead">Post new comment:</div>
  
              <div class="formFields formBorder wideLabels">
  
                  <s:validateAll>
  
                      <s:decorate id="userNameDecorate">
                          <div class="entry">
                              <div class="label">Name:</div>
                              <div class="input">
                                  <h:inputText tabindex="102" size="40" maxlength="100" required="true"
                                               id="userName" value="#{commentHome.comment.fromUserName}">
                                      <a:support event="onblur" reRender="userNameDecorate"/>
                                  </h:inputText>
                              </div>
                          </div>
                      </s:decorate>
  
                      <s:decorate id="userEmailDecorate">
                          <div class="entry">
                              <div class="label">E-mail address (optional):</div>
                              <div class="input">
                                  <h:inputText tabindex="102" size="40" maxlength="255" required="false"
                                               id="userEmail" value="#{commentHome.comment.fromUserEmail}">
                                  </h:inputText>
                              </div>
                          </div>
                      </s:decorate>
  
                      <s:decorate id="userHomepageDecorate">
                          <div class="entry">
                              <div class="label">Homepage URL (optional):</div>
                              <div class="input">
                                  <h:inputText tabindex="102" size="40" maxlength="1000" required="false"
                                               id="userHomepage" value="#{commentHome.comment.fromUserHomepage}">
                                  </h:inputText>
                              </div>
                          </div>
                      </s:decorate>
  
                      <s:decorate id="subjectDecorate">
                          <div class="entry">
                              <div class="label">Subject:</div>
                              <div class="input">
                                  <h:inputText tabindex="102" size="40" maxlength="255" required="true"
                                               id="subject" value="#{commentHome.comment.subject}">
                                      <a:support event="onblur" reRender="subjectDecorate"/>
                                  </h:inputText>
                              </div>
                          </div>
                      </s:decorate>
  
                      <s:decorate id="commentDecorate">
                          <div class="entry">
                              <div class="label">Comment:</div>
                              <s:div styleClass="input" id="commentText">
                                  <h:inputTextarea tabindex="102" required="true"
                                                   cols="40"
                                                   rows="10"
                                                   id="commentTextInput"
                                                   value="#{commentHome.comment.text}">
                                      <a:support event="onblur" reRender="commentDecorate"/>
                                  </h:inputTextarea>
                              </s:div>
                          </div>
                      </s:decorate>
  
  
                  </s:validateAll>
  
              </div>
  
              <div class="formControls wideLabels">
                  <div class="entry">
                      <div class="label">&#160;</div>
                      <div class="input">
  
                          <a:commandLink action="#{commentHome.persist}" tabindex="102" reRender="documentDisplay"
                                         styleClass="button"><span class="buttonLabel">Post</span></a:commandLink>
  
                      </div>
                  </div>
              </div>
  
          </div>
      </h:form>
  
  </div>
  
  



More information about the jboss-cvs-commits mailing list