[jboss-cvs] jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam ...
Norman Richards
norman.richards at jboss.com
Fri Jan 4 16:58:25 EST 2008
User: nrichards
Date: 08/01/04 16:58:25
Modified: examples/dvdstore/src/com/jboss/dvd/seam
FullTextSearch.java FullTextSearchAction.java
Log:
clean up the URLs a bit more
Revision Changes Path
1.3 +6 -12 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearch.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FullTextSearch.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearch.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- FullTextSearch.java 18 Oct 2007 05:29:23 -0000 1.2
+++ FullTextSearch.java 4 Jan 2008 21:58:25 -0000 1.3
@@ -1,4 +1,4 @@
-//$Id: FullTextSearch.java,v 1.2 2007/10/18 05:29:23 nrichards Exp $
+//$Id: FullTextSearch.java,v 1.3 2008/01/04 21:58:25 nrichards Exp $
package com.jboss.dvd.seam;
/**
@@ -7,32 +7,26 @@
public interface FullTextSearch
{
public String getSearchQuery();
-
public void setSearchQuery(String searchQuery);
- public int getNumberOfResults();
+ public Long getSelectedId();
+ public void setSelectedId(Long id);
- public void nextPage();
-
- public void prevPage();
+ public int getNumberOfResults();
public boolean isLastPage();
-
public boolean isFirstPage();
+ public void nextPage();
+ public void prevPage();
public String doSearch();
-
public void selectFromRequest();
-
public void addToCart();
-
public void addAllToCart();
public int getPageSize();
-
public void setPageSize(int pageSize);
public void reset();
-
public void destroy();
}
1.8 +15 -5 jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: FullTextSearchAction.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/examples/dvdstore/src/com/jboss/dvd/seam/FullTextSearchAction.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- FullTextSearchAction.java 16 Oct 2007 19:19:22 -0000 1.7
+++ FullTextSearchAction.java 4 Jan 2008 21:58:25 -0000 1.8
@@ -1,4 +1,4 @@
-//$Id: FullTextSearchAction.java,v 1.7 2007/10/16 19:19:22 nrichards Exp $
+//$Id: FullTextSearchAction.java,v 1.8 2008/01/04 21:58:25 nrichards Exp $
package com.jboss.dvd.seam;
import java.io.Serializable;
@@ -40,13 +40,13 @@
{
static final long serialVersionUID = -6536629890251170098L;
- @In(create = true)
+ @In(create=true)
ShoppingCart cart;
@PersistenceContext
EntityManager em;
- @RequestParameter
+ //@RequestParameter
Long id;
int pageSize = 15;
@@ -59,13 +59,13 @@
@DataModel
List<Product> searchResults;
- @DataModelSelection
+ //@DataModelSelection
Product selectedProduct;
@Out(required = false)
Product dvd;
- @Out(scope = ScopeType.CONVERSATION, required = false)
+ @Out(scope=ScopeType.CONVERSATION, required=false)
Map<Product, Boolean> searchSelections;
@@ -106,6 +106,7 @@
@Begin(join = true)
public void selectFromRequest() {
+ System.out.println("*** ID=" + id);
if (id != null) {
dvd = em.find(Product.class, id);
} else if (selectedProduct != null) {
@@ -193,6 +194,15 @@
this.pageSize = pageSize;
}
+ public Long getSelectedId() {
+ return id;
+ }
+
+ public void setSelectedId(Long id) {
+ System.out.println("- set id " + id);
+ this.id = id;
+ }
+
@End
public void reset() { }
More information about the jboss-cvs-commits
mailing list