Skip to content

Instantly share code, notes, and snippets.

Created April 15, 2015 19:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/379b3aae199147684841 to your computer and use it in GitHub Desktop.
Save anonymous/379b3aae199147684841 to your computer and use it in GitHub Desktop.
public class MyPage {
@Property
private String value1;
@Property
private String value2;
public Invokable<String> getInvokable1() {
return new Invokable<String>() {
public String invoke() {
Thread.sleep(5 * 1000);
return "name1";
}
}
}
public Invokable<String> getInvokable2() {
return new Invokable<String>() {
public String invoke() {
Thread.sleep(5 * 1000);
return "name2";
}
}
}
}
<t:parallelContainer>
<t:parallel invokable="invokable1" binding="value1">
Hello ${value1}
</t:parallel>
<t:parallel invokable="invokable2" binding="value2">
Hello ${value2}
</t:parallel>
</t:parallelContainer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment