summaryrefslogtreecommitdiff
path: root/wotonomy-web-test/src/main/java/OtherAction.java
blob: 00a3155ee9002cc92dc887bf4bc96a476f09407d (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(new Boolean(false), "showTime");
		page.takeValueForKey("direct action called", "textValue");
		return page;
	}

}