1 15 package org.apache.tapestry.vlib.pages.admin; 16 17 import org.apache.tapestry.IRequestCycle; 18 import org.apache.tapestry.vlib.AdminPage; 19 20 27 28 public abstract class TransferBooksSelect extends AdminPage 29 { 30 public abstract Integer getFromUserId(); 31 public abstract Integer getToUserId(); 32 33 public void formSubmit(IRequestCycle cycle) 34 { 35 Integer fromUserId = getFromUserId(); 36 Integer toUserId = getToUserId(); 37 38 if (fromUserId.equals(toUserId)) 39 { 40 setError(getMessage("select-different-users")); 41 return; 42 } 43 44 TransferBooksTransfer next = (TransferBooksTransfer) cycle.getPage("TransferBooksTransfer"); 45 46 next.activate(cycle, fromUserId, toUserId); 47 } 48 49 } | Popular Tags |