Package org.apache.beehive.netui.pageflow

Examples of org.apache.beehive.netui.pageflow.Forward


    )
    protected Forward handleException(Exception ex, String actionName, String message, Object form) {
        System.err.print("[" + getRequest().getContextPath() + "] ");
        System.err.println("Unhandled exception caught in SharedFlow.jpfs:");
        ex.printStackTrace();
        return new Forward("errorPage");
    }
View Full Code Here


    )
    protected Forward handleDataStoreException(DataStoreException ex, String actionName, String message, Object form) {
        System.err.print("[" + getRequest().getContextPath() + "] ");
        System.err.println("DataStore exception caught in SharedFlow.jpfs:");
        ex.printStackTrace();
        return new Forward("errorPage");
    }
View Full Code Here

  @Jpf.ExceptionHandler(
        forwards={@Jpf.Forward(name="auth", path="/auth/Controller.jpf")}
    )
    protected Forward handleNotLoggedInException(NotLoggedInException ex, String actionName, String message, Object form) {
        ReturnToForm initForm = new ReturnToForm(true);
        return new Forward("auth", initForm);
    }
View Full Code Here

        throws AccountAlreadyExistsException, InvalidIdentifierException, UserAlreadyExistsException, NoSuchAccountException {
        // ensure unique user name
        _isUsernameTaken = false;
        if(_accountControl.checkAccountExists(form.getUserId())) {
            _isUsernameTaken = true;
            return new Forward("failure");
        }

        Account userAccount = AccountForm.getAccount(form);

        _accountControl.insertAccount(userAccount);
        _sharedFlow.updateAccount(userAccount);

        return new Forward("shop");
    }
View Full Code Here

        }
    )
    protected Forward begin() {
       
        _sharedFlow.ensureLogin();
        Forward forward = new Forward("success");
        forward.addActionOutput("addresses", _addressControl.getUserAddresses(_sharedFlow.getAccount().getUserId()));
        return forward;
    }
View Full Code Here

      // Existing address
      address = _addressControl.getAddress(Integer.parseInt(addressId));
    }

    _createForm = new CreateAddressForm(address);
        Forward forward = new Forward("success", _createForm);
        return forward;
    }
View Full Code Here

    } else {
      // Update Existing Address
      _addressControl.updateAddress(address);
    }

    return new Forward("success");
   
View Full Code Here

      throw new InvalidIdentifierException("AddressId not passed in");
     
    // Will only delete the address if the user owns it
    _addressControl.deleteAddress(Integer.parseInt(addressId), _sharedFlow.getAccount().getUserId());

        return new Forward("success");
    }
View Full Code Here

        validationErrorForward=@Jpf.Forward(name="failure", path="index.jsp")
    )
    public Forward upload(UploadForm form)
    {
        // Add the UploadForm as an "action output" for the results page.
        Forward fwd = new Forward("success");
        fwd.addActionOutput("uploadForm", form);
        return fwd;
    }
View Full Code Here

            items[i].setGiftWrap(false);
        }

        _cartForm = new CartForm(items);

        Forward forward = new Forward("success");
        forward.addOutputForm(_cartForm);
        forward.addActionOutput("totalPrice", calculatePrice(_cartForm.getItems()));
        return forward;
    }
View Full Code Here

TOP

Related Classes of org.apache.beehive.netui.pageflow.Forward

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.