1 15 package org.apache.tapestry.vlib.pages; 16 17 import org.apache.tapestry.IRequestCycle; 18 import org.apache.tapestry.html.BasePage; 19 import org.apache.tapestry.vlib.IErrorProperty; 20 import org.apache.tapestry.vlib.IMessageProperty; 21 import org.apache.tapestry.vlib.ejb.MasterQueryParameters; 22 23 30 31 public abstract class Home extends BasePage implements IErrorProperty, IMessageProperty 32 { 33 34 public abstract String getTitle(); 35 36 public abstract String getAuthor(); 37 38 public abstract Integer getPublisherId(); 39 40 public abstract Integer getOwnerId(); 41 42 46 47 public void search(IRequestCycle cycle) 48 { 49 BookMatches matches = (BookMatches) cycle.getPage("BookMatches"); 50 51 MasterQueryParameters parameters = 52 new MasterQueryParameters(getTitle(), getAuthor(), getOwnerId(), getPublisherId()); 53 54 matches.performQuery(parameters, cycle); 55 } 56 57 } | Popular Tags |