Examples of CCAjaxLongResponsePage


Examples of er.coolcomponents.CCAjaxLongResponsePage

  }
 
  public WOActionResults processFactorials() {
    T06EOFFactorialUpdateTask task = new T06EOFFactorialUpdateTask(taskInfo());
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setTask(task);
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

   * @return long response page running the same task in a long response page allowing user to wait and know when it is complete.
   */
  public WOActionResults dispatchBackgroundTaskInLongRsponsePage() {
    Runnable task = new T01T02SimpleBackgroundTask();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

   * @return long response page running a task that implements {@link IERXStatus}, {@link IERXPercentComplete} and {@link IERXStoppable} interfaces.
   */
  public WOActionResults dispatchBackgroundTaskWithLongResponsePageFeedback() {
    Runnable task = new T03BackgroundTaskWithProgressFeedback();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

    IERXPerformWOActionForResult controller = new ERXNextPageForResultWOAction(pageWithName(TaskInfoPage.class), "taskInfo");
   
    Callable<EOGlobalID> task = new T04SimpleEOFTask();
   
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setNextPageForResultController(controller);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

    // Set up the controller for the end of task action
    ERXNextPageForResultWOAction controller = new ERXNextPageForResultWOAction(pageWithName(TaskInfoPage.class), "taskInfo");
   
    Callable<EOGlobalID> task = new T05MultiThreadedEOFTask();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setNextPageForResultController(controller);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

    // Set up the controller for the end of task action
    ERXNextPageForResultWOAction controller = new ERXNextPageForResultWOAction(pageWithName(TaskInfoPage.class), "taskInfo");
   
    Callable<EOGlobalID> task = new T07EOFTaskWithSubTasks();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setNextPageForResultController(controller);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

   * @return result of an error in a Callable task.
   */
  public WOActionResults dispatchCallableWithSimulatedError() {
    T08CallableWithSimulatedError task = new T08CallableWithSimulatedError();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

   * @return result of an error in a Runnable task.
   */
  public WOActionResults dispatchRunnableWithSimulatedError() {
    T09RunnableWithSimulatedError task = new T09RunnableWithSimulatedError();
   
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
    nextPage.setTask(task);
   
    return nextPage;
  }
View Full Code Here

Examples of er.coolcomponents.CCAjaxLongResponsePage

   
    // Create the task
    Callable<File> reportTask = Reports.createStudioRevenueReportTask();
   
    // Create the long response page
    CCAjaxLongResponsePage nextPage = pageWithName(CCAjaxLongResponsePage.class);
   
    // Push the task into the long response page
    nextPage.setTask(reportTask);
   
    // Controller for handling the Callable result in the long response page
    FileTaskDownloadController nextPageController = new FileTaskDownloadController();
   
    // Hyperlink text on the "Your file is downloaded page" to get back here
    nextPageController.setReturnLinkText("Reports Menu");
   
    // The filename for the download
    nextPageController.setDownloadFileNameForClient("StudioRevenueReport.pdf");
   
    nextPage.setNextPageForResultController(nextPageController);
   
    return nextPage;
   
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.