1 7 package com.inversoft.verge.mvc.controller.form.test; 8 9 10 import com.inversoft.verge.mvc.controller.form.FormAction; 11 12 13 20 public class TestActionHandler { 21 22 public boolean action = false; 23 public boolean mapping = false; 24 public static boolean called = false; 25 26 27 30 public TestActionHandler() { 31 } 32 33 34 37 public void handleTestAction(FormAction formEvent) { 38 action = true; 39 } 40 41 44 public void handleTestAction1(FormAction formEvent) { 45 action = true; 46 } 47 48 51 public void handleAction1(FormAction formEvent) { 52 action = true; 53 called = true; 54 } 55 56 59 public String handleTestMapping(FormAction formEvent) { 60 mapping = true; 61 return "form1mapping1"; 62 } 63 64 67 public String handleTestMapping6(FormAction formEvent) { 68 mapping = true; 69 return "form1mapping5"; 70 } 71 72 75 public Object handleTestDisabled(FormAction formEvent) { 76 return null; 77 } 78 79 82 public String handleGlobalAction1(FormAction action) { 83 return "globalMapping1"; 85 } 86 87 90 public String handleGlobalAction2(FormAction action) { 91 return "globalMapping2"; 92 } 93 } | Popular Tags |