diff options
Diffstat (limited to 'wotonomy-test/src/main/java/OtherAction.java')
| -rw-r--r-- | wotonomy-test/src/main/java/OtherAction.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wotonomy-test/src/main/java/OtherAction.java b/wotonomy-test/src/main/java/OtherAction.java new file mode 100644 index 0000000..00a3155 --- /dev/null +++ b/wotonomy-test/src/main/java/OtherAction.java @@ -0,0 +1,21 @@ +//A direct action subclass, with only one method +//that gets called from Main.wo + +import net.wotonomy.foundation.*; +import net.wotonomy.web.*; + +public class OtherAction extends WODirectAction { + + public OtherAction(WORequest r) { + super(r); + } + + public WOActionResults linkTestAction() { + System.out.println("creating and configuring Main.wo"); + WOComponent page = pageWithName("Main"); + page.takeValueForKey(new Boolean(false), "showTime"); + page.takeValueForKey("direct action called", "textValue"); + return page; + } + +} |
