[seam-commits] Seam SVN: r11005 - examples/trunk/servlet-permalink/src/main/webapp.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue May 26 12:45:37 EDT 2009


Author: dan.j.allen
Date: 2009-05-26 12:45:37 -0400 (Tue, 26 May 2009)
New Revision: 11005

Modified:
   examples/trunk/servlet-permalink/src/main/webapp/category.xhtml
   examples/trunk/servlet-permalink/src/main/webapp/entry.xhtml
Log:
use view actions rather that preRenderView event


Modified: examples/trunk/servlet-permalink/src/main/webapp/category.xhtml
===================================================================
--- examples/trunk/servlet-permalink/src/main/webapp/category.xhtml	2009-05-26 16:45:01 UTC (rev 11004)
+++ examples/trunk/servlet-permalink/src/main/webapp/category.xhtml	2009-05-26 16:45:37 UTC (rev 11005)
@@ -2,12 +2,13 @@
 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
+   xmlns:s="http://jboss.com/products/seam/faces"
    template="/WEB-INF/layout/template.xhtml">
    <ui:define name="viewMetadata">
       <f:metadata>
          <f:viewParam name="name" value="#{blog.category}"/>
          <ui:include src="/WEB-INF/fragments/commonViewParams.xhtml"/>
-         <f:event type="preRenderView" listener="#{blog.loadLatestEntriesInCategory}"/>
+         <s:viewAction execute="#{blog.loadLatestEntriesInCategory}"/>
       </f:metadata>
    </ui:define>
    <ui:define name="categories">

Modified: examples/trunk/servlet-permalink/src/main/webapp/entry.xhtml
===================================================================
--- examples/trunk/servlet-permalink/src/main/webapp/entry.xhtml	2009-05-26 16:45:01 UTC (rev 11004)
+++ examples/trunk/servlet-permalink/src/main/webapp/entry.xhtml	2009-05-26 16:45:37 UTC (rev 11005)
@@ -2,6 +2,7 @@
 <ui:composition xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:f="http://java.sun.com/jsf/core"
+   xmlns:s="http://jboss.com/products/seam/faces"
    template="/WEB-INF/layout/template.xhtml">
    <ui:define name="viewMetadata">
       <f:metadata>
@@ -9,6 +10,7 @@
          <f:viewParam name="category" value="#{blog.category}"/>
          <ui:include src="/WEB-INF/fragments/commonViewParams.xhtml"/>
          <f:event type="preRenderView" listener="#{blog.loadEntry}"/>
+         <ui:remove><s:viewAction execute="#{blog.loadEntry}"/></ui:remove>
       </f:metadata>
    </ui:define>
    <ui:define name="content">




More information about the seam-commits mailing list