[seam-commits] Seam SVN: r7851 - in trunk/examples/contactlist: view and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Mon Apr 7 21:10:55 EDT 2008


Author: norman.richards at jboss.com
Date: 2008-04-07 21:10:55 -0400 (Mon, 07 Apr 2008)
New Revision: 7851

Modified:
   trunk/examples/contactlist/resources/WEB-INF/pages.xml
   trunk/examples/contactlist/view/search.xhtml
Log:
JBSEAM-2845

Modified: trunk/examples/contactlist/resources/WEB-INF/pages.xml
===================================================================
--- trunk/examples/contactlist/resources/WEB-INF/pages.xml	2008-04-08 01:10:32 UTC (rev 7850)
+++ trunk/examples/contactlist/resources/WEB-INF/pages.xml	2008-04-08 01:10:55 UTC (rev 7851)
@@ -49,6 +49,14 @@
       <param name="firstResult" 
              value="#{contacts.firstResult}"/>
 
+
+      <navigation>
+          <rule if-outcome="newsearch">
+              <redirect view-id="/search.xhtml"> 
+                 <param name="firstResult" value="0"/>
+              </redirect>
+          </rule>
+      </navigation>
    </page>
 
    <exception class="javax.persistence.PersistenceException">

Modified: trunk/examples/contactlist/view/search.xhtml
===================================================================
--- trunk/examples/contactlist/view/search.xhtml	2008-04-08 01:10:32 UTC (rev 7850)
+++ trunk/examples/contactlist/view/search.xhtml	2008-04-08 01:10:55 UTC (rev 7851)
@@ -12,7 +12,12 @@
   <body>
   
     <div class="menuButtons">
-      <s:link view="/search.xhtml" value="Search Contacts"/>
+      <s:link view="/search.xhtml" value="Search Contacts">
+          <f:param name="firstName" />
+          <f:param name="lastName" />
+          <f:param name="firstResult" />
+      </s:link>
+
       <s:link view="/editContact.xhtml" value="Create New Contact">
         <f:param name="contactId"/> <!-- suppress propagation of contact id page parameter -->
       </s:link>
@@ -35,7 +40,9 @@
              <span class="name">Last Name :</span>
              <span class="value"><h:inputText value="#{exampleContact.lastName}"/></span>
            </span>
-           <h:commandButton value="Search" action="/search.xhtml"/>
+
+           
+           <h:commandButton value="Search" action="newsearch"/>
         </h:form>
       </div>
       




More information about the seam-commits mailing list