Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to make the application temporarily stop (pause)

Thanh HoangJun 7 2013 — edited Jun 24 2013

Hi,

I'm using Jdev 11.1.2.3.0

My use case is:

+ I have index.jsf: load list of regions (List<TaskFlowBindingAttributes>)
+ in an action of one region (For ex: A-flow.xml), i will add another region to the list of regions

addDynamicRegion("B-flow);   

+ My requirement is: all codes after <<addDynamicRegion("B-flow); >> will be wait util the app finish adding B-flow.xml and get out of B-flow

+  this action is the same with : Call_Form Built-in of Oracle Forms


P/s: my addDynamicRegion is just simple :

public void addDynamicRegion(String flowId) {
RunForm runForm = (RunForm)JSFUtils.getManagedBeanValue("runForm");
TaskFlowBindingAttributes taskAtt = new TaskFlowBindingAttributes();
String flowName = flowId.replace("-", "_");
taskAtt.setId(flowName);
taskAtt.setTaskFlowId(new TaskFlowId("/WEB-INF/" + flowId + ".xml", flowId));
runForm.getTfBindingAtts().add(taskAtt);

UIComponent form = getFormComponent(FacesContext.getCurrentInstance().getViewRoot());
AdfFacesContext.getCurrentInstance().addPartialTarget(form);
}

                                                                                                           

Thank you very much                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2013
Added on Jun 7 2013
4 comments
268 views