1 15 package tutorial.pagelinking; 16 17 import net.sf.tapestry.html.BasePage; 18 import net.sf.tapestry.IRequestCycle; 19 import net.sf.tapestry.RequestCycleException; 20 21 25 public class SecondPage extends BasePage { 26 public void linkListener(IRequestCycle cycle) throws RequestCycleException { 27 result = "The link listener was called - which is a good thing."; 28 } 29 30 public void buttonListener(IRequestCycle cycle) throws RequestCycleException { 31 result = "The submit listener was called - which is also a good thing."; 32 } 33 34 public String getResult() { 35 return result; 36 } 37 38 39 public void detach() { 40 super.detach(); 41 result = null; 42 } 43 44 private String result; 45 } 46 | Popular Tags |