Package org.primefaces.event

Examples of org.primefaces.event.FlowEvent


    /**
     * Decide which step do display
     */
    if(success) {
      if(wizard.getFlowListener() != null) {
        FlowEvent flowEvent = new FlowEvent(wizard, currentStep, newStep);
        Object outcome = wizard.getFlowListener().invoke(facesContext.getELContext(), new Object[]{flowEvent});
        stepToDisplay = (String) outcome;
      } else {
        stepToDisplay = newStep;
      }
View Full Code Here


            if (fc.isValidationFailed()) {
                stepToDisplay = currentStep;
            } else {
                if (wizard.getFlowListener() != null) {
                    FlowEvent flowEvent = new FlowEvent(wizard, currentStep, stepToGo);
                    Object outcome = wizard.getFlowListener().invoke(fc.getELContext(), new Object[]{flowEvent});
                    stepToDisplay = (String) outcome;
                } else {
                    stepToDisplay = stepToGo;
                }
View Full Code Here

            Map<String, String> params = context.getExternalContext().getRequestParameterMap();
            String clientId = wizard.getClientId(context);
            String stepToGo = params.get(clientId + "_stepToGo");
            String currentStep = wizard.getStep();
           
            FlowEvent event = new FlowEvent(wizard, currentStep, stepToGo);
            event.setPhaseId(PhaseId.INVOKE_APPLICATION);
           
            wizard.queueEvent(event);
        }
    }
View Full Code Here

    /**
     * Decide which step do display
     */
    if(success) {
      if(wizard.getFlowListener() != null) {
        FlowEvent flowEvent = new FlowEvent(wizard, oldStep, newStep);
        Object outcome = wizard.getFlowListener().invoke(facesContext.getELContext(), new Object[]{flowEvent});
        tabIdToDisplay = (String) outcome;
      } else {
        tabIdToDisplay = newStep;
      }
View Full Code Here

TOP

Related Classes of org.primefaces.event.FlowEvent

Copyright © 2018 www.massapicom. 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.