diff options
| author | Benjamin Culkin <scorpress@gmail.com> | 2024-05-21 17:04:17 -0400 |
|---|---|---|
| committer | Benjamin Culkin <scorpress@gmail.com> | 2024-05-21 17:04:17 -0400 |
| commit | 59b10ba33f4c0b1d399b5d31b7a07380abb62677 (patch) | |
| tree | bf6cbeec8b2a225b59f1184995d6a286a697fa0d /wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java | |
| parent | b0af441cfd1b162dd74254c6fc14312aa0a60845 (diff) | |
Work on getting a running example
This current version does deploy correctly and run, but it doesn't display correctly
Diffstat (limited to 'wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java')
| -rw-r--r-- | wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java b/wotonomy-test/src/main/webapp/WEB-INF/classes/OtherAction.java new file mode 100644 index 0000000..00a3155 --- /dev/null +++ b/wotonomy-test/src/main/webapp/WEB-INF/classes/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; + } + +} |
