1 15 package org.apache.tapestry.junit.mock.wml; 16 17 import org.apache.tapestry.IRequestCycle; 18 import org.apache.tapestry.form.IPropertySelectionModel; 19 import org.apache.tapestry.form.StringPropertySelectionModel; 20 import org.apache.tapestry.wml.Deck; 21 22 28 29 public abstract class Home extends Deck 30 { 31 public static final IPropertySelectionModel MODEL = new StringPropertySelectionModel( 32 new String [] 33 { "option_one", "option_two", "option_three" }); 34 35 public void submit(IRequestCycle cycle) 36 { 37 Result deck = (Result) cycle.getPage("Result"); 38 deck.setU(getU()); 39 deck.setL(getL()); 40 cycle.activate(deck); 41 } 42 43 public abstract String getU(); 44 45 public abstract String getL(); 46 } | Popular Tags |