Skip to content

Instantly share code, notes, and snippets.

@donatasnicequestion
Created May 28, 2012 15:24
Show Gist options
  • Save donatasnicequestion/2819728 to your computer and use it in GitHub Desktop.
Save donatasnicequestion/2819728 to your computer and use it in GitHub Desktop.
Sample implementation of ADF flow controller
public class SampleFlowController {
private String sampleValue;
/* The method is aimed to show, that the same instance
* of controller is used, regardless of a way it gets consumed -
* as a data control or managed bean.
* */
public void doSomethingUseful() {
sampleValue = sampleValue.toUpperCase();
System.out.println("Something useful performed on testSampleValue:" + sampleValue);
}
public void setSampleValue(String testSampleValue) {
this.sampleValue = testSampleValue;
}
public String getSampleValue() {
return sampleValue;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment