Taskflow can be activated by setting the following properties.
activation = conditional
active = EL expression which returns true.
If there are multiple taskflows dropped as regions in the same jsff page as tabs. The page needs to be refreshed for every tab click.
Refresh Taskflow
protected void refreshPage(){
FacesContext fc = FacesContext.getCurrentInstance();
String refreshPage = fc.getViewRoot().getViewId();
ViewHandler ViewH = fc.getApplication().getViewHandler();
UIViewRoot UIV = ViewH.createView(fc,refreshPage);
UIV.setViewId(refreshPage);
fc.setViewRoot(UIV);
}
No comments:
Post a Comment