summaryrefslogtreecommitdiff
path: root/wotonomy-web-test/src/main/java/OtherAction.java
blob: 95e840a22f49ad12e12736759c28264c99f77046 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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(false, "showTime");
		page.takeValueForKey("direct action called", "textValue");
		return page;
	}

}