2009/05/20 - Apache Shale has been retired.
For more information, please explore the Attic.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package org.apache.shale.view.faces;
19
20 import org.apache.shale.view.ViewController;
21
22 /***
23 * <p>Test implementation of <code>ViewController</code>.</p>
24 */
25 public class TestViewController implements ViewController {
26
27 private StringBuffer sb = new StringBuffer();
28
29 public void prerender() {
30 sb.append("prerender/");
31 }
32
33 public void preprocess() {
34 sb.append("preprocess/");
35 }
36
37 public void destroy() {
38 sb.append("destroy/");
39 }
40
41 public void init() {
42 sb.append("init/");
43 }
44
45 public String log() {
46 return sb.toString();
47 }
48
49 private boolean postBack = false;
50
51 public boolean isPostBack() {
52 return this.postBack;
53 }
54
55 public void setPostBack(boolean postBack) {
56 this.postBack = postBack;
57 }
58
59 }