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

Gavin King gavin.king at jboss.com
Tue Jan 9 03:25:39 EST 2007


  User: gavin   
  Date: 07/01/09 03:25:39

  Modified:    examples/blog/view   entry.xhtml index.xhtml
  Log:
  page fragment caching
  
  Revision  Changes    Path
  1.6       +14 -11    jboss-seam/examples/blog/view/entry.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: entry.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/view/entry.xhtml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -b -r1.5 -r1.6
  --- entry.xhtml	22 Oct 2006 11:02:30 -0000	1.5
  +++ entry.xhtml	9 Jan 2007 08:25:39 -0000	1.6
  @@ -4,9 +4,11 @@
                   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"
                   template="#{theme.template}">
   
   <ui:define name="content">
  +   <s:cache key="entry-#{blogEntry.id}" region="pageFragments">
      <div class="blogEntry">
         <h3>#{blogEntry.title}</h3>
         <div>
  @@ -19,6 +21,7 @@
            </h:outputText>]
         </p>
      </div>
  +   </s:cache>
   </ui:define>
   
   </ui:composition>
  
  
  
  1.8       +29 -26    jboss-seam/examples/blog/view/index.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: index.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/blog/view/index.xhtml,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -b -r1.7 -r1.8
  --- index.xhtml	1 Jul 2006 18:23:24 -0000	1.7
  +++ index.xhtml	9 Jan 2007 08:25:39 -0000	1.8
  @@ -4,9 +4,11 @@
                   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"
                   template="#{theme.template}">
   
   <ui:define name="content">
  +   <s:cache key="index" region="pageFragments">
      <h:dataTable value="#{blog.recentBlogEntries}" var="blogEntry" rows="3">
         <h:column>
            <div class="blogEntry">
  @@ -34,6 +36,7 @@
            </div>
         </h:column>
      </h:dataTable>
  +   </s:cache>
   </ui:define>
   
   </ui:composition>
  
  
  



More information about the jboss-cvs-commits mailing list