[seam-commits] Seam SVN: r7848 - in branches/Seam_2_0/examples/contactlist: view and 1 other directory.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Mon Apr 7 19:55:47 EDT 2008
Author: norman.richards at jboss.com
Date: 2008-04-07 19:55:47 -0400 (Mon, 07 Apr 2008)
New Revision: 7848
Modified:
branches/Seam_2_0/examples/contactlist/resources/WEB-INF/pages.xml
branches/Seam_2_0/examples/contactlist/view/search.xhtml
Log:
JBSEAM-2845
Modified: branches/Seam_2_0/examples/contactlist/resources/WEB-INF/pages.xml
===================================================================
--- branches/Seam_2_0/examples/contactlist/resources/WEB-INF/pages.xml 2008-04-07 23:19:20 UTC (rev 7847)
+++ branches/Seam_2_0/examples/contactlist/resources/WEB-INF/pages.xml 2008-04-07 23:55:47 UTC (rev 7848)
@@ -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: branches/Seam_2_0/examples/contactlist/view/search.xhtml
===================================================================
--- branches/Seam_2_0/examples/contactlist/view/search.xhtml 2008-04-07 23:19:20 UTC (rev 7847)
+++ branches/Seam_2_0/examples/contactlist/view/search.xhtml 2008-04-07 23:55:47 UTC (rev 7848)
@@ -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