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

Gavin King gavin.king at jboss.com
Sat Sep 30 15:59:35 EDT 2006


  User: gavin   
  Date: 06/09/30 15:59:35

  Modified:    examples/blog/view   post.xhtml template.xhtml
  Log:
  refreshed blog example to use page parameters
  
  Revision  Changes    Path
  1.6       +4 -4      jboss-seam/examples/blog/view/post.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: post.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/view/post.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- post.xhtml	23 Jun 2006 03:59:15 -0000	1.5
  +++ post.xhtml	30 Sep 2006 19:59:34 -0000	1.6
  @@ -15,28 +15,28 @@
                  <h:outputLabel for="id">Id: </h:outputLabel>
               </div>
               <div class="hilite">
  -               <h:inputText id="id" value="#{newBlogEntry.id}" size="20" maxlength="20" required="true"/>
  +               <h:inputText id="id" value="#{blogEntry.id}" size="20" maxlength="20" required="true"/>
                  <span class="errors"><h:message for="id"/></span>
               </div>
               <div>
                  <h:outputLabel for="title">Title: </h:outputLabel>
               </div>
               <div class="hilite">
  -               <h:inputText id="title" value="#{newBlogEntry.title}" size="70" maxlength="70" required="true"/>
  +               <h:inputText id="title" value="#{blogEntry.title}" size="70" maxlength="70" required="true"/>
                  <span class="errors"><h:message for="title"/></span>
               </div>
               <div>
                  <h:outputLabel for="excerpt">Excerpt (optional): </h:outputLabel>
               </div>
               <div class="hilite">
  -               <h:inputTextarea id="excerpt" value="#{newBlogEntry.excerpt}" cols="68" rows="3"/>
  +               <h:inputTextarea id="excerpt" value="#{blogEntry.excerpt}" cols="68" rows="3"/>
                  <span class="errors"><h:message for="excerpt"/></span>
               </div>
               <div>
                  <h:outputLabel for="body">Body text: </h:outputLabel>
               </div>
               <div class="hilite">
  -               <h:inputTextarea id="body" value="#{newBlogEntry.body}" cols="68" rows="20" required="true"/>
  +               <h:inputTextarea id="body" value="#{blogEntry.body}" cols="68" rows="20" required="true"/>
                  <span class="errors"><h:message for="body"/></span>
               </div>
               <div>
  
  
  
  1.8       +3 -3      jboss-seam/examples/blog/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/blog/view/template.xhtml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- template.xhtml	1 Jul 2006 18:23:24 -0000	1.7
  +++ template.xhtml	30 Sep 2006 19:59:34 -0000	1.8
  @@ -18,7 +18,7 @@
      <body>
         <div id="search">
            <h:form>
  -            <h:inputText value="#{renderParameters.searchPattern}"/>
  +            <h:inputText value="#{searchService.searchPattern}"/>
               <h:commandButton value="Search" action="/search.xhtml"/>
               &#160;&#160;
               <h:selectOneMenu value="#{themeSelector.theme}">
  @@ -26,8 +26,8 @@
               </h:selectOneMenu>
               <h:commandLink action="#{themeSelector.select}">
                  <h:commandButton value="Select Theme"/>
  -               <f:param name="blogEntryId" value="#{param.blogEntryId}"/>
  -               <f:param name="searchPattern" value="#{param.searchPattern}"/>
  +               <f:param name="blogEntryId" value="#{blogEntry.id}"/>
  +               <f:param name="searchPattern" value="#{searchService.searchPattern}"/>
               </h:commandLink>
            </h:form>
         </div>
  
  
  



More information about the jboss-cvs-commits mailing list