Package org.apache.beehive.netui.pageflow

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


    protected Forward viewUpdateAccount() {
        _sharedFlow.ensureLogin();

        _updateForm = new UpdateAccountForm(_sharedFlow.getAccount());

        Forward forward = new Forward("update");
        forward.addOutputForm(_updateForm);
        forward.addActionOutput("languages", LANGUAGES);
        forward.addActionOutput("categoryNames", _sharedFlow.getCategoryNames());
        return forward;
    }
View Full Code Here


        _accountControl.updateAccount(account);

        _sharedFlow.updateAccount(account);

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

    protected Forward listOrders() {
        _sharedFlow.ensureLogin();

        _orders = _orderControl.getOrdersByUserId(_sharedFlow.getAccount().getUserId());

        Forward forward = new Forward("success");
        forward.addActionOutput("orders", _orders);
        return forward;
    }
View Full Code Here

    @Jpf.Action(
        forwards={@Jpf.Forward(name="auth", path="/auth/Controller.jpf")}
    )
    public Forward signon() {
        ReturnToForm initForm = new ReturnToForm(false);
        return new Forward("auth", initForm);
    }
View Full Code Here

    @Jpf.Action(
        forwards={@Jpf.Forward(name="auth", path="/auth/Controller.jpf")}
    )
    public Forward actionSignon() {
        ReturnToForm initForm = new ReturnToForm(true);
        return new Forward("auth", initForm);
    }
View Full Code Here

    @Jpf.Action(
        forwards={@Jpf.Forward(name="search", path="/search/Controller.jpf")}
    )
    public Forward search(SearchForm form) {
        return new Forward("search");
    }
View Full Code Here

    @Jpf.Action(
        forwards={@Jpf.Forward(redirect=true, name="shop", path="/shop/Controller.jpf")}
    )
    public Forward globalShop() {
        return new Forward("shop");
    }
View Full Code Here

        forwards = {
        @Jpf.Forward(name = "viewCreateAccount", path = "viewCreateAccount.do")
        }
        )
        protected Forward begin() {
        return new Forward("viewCreateAccount");
    }
View Full Code Here

    )
    protected Forward viewCreateAccount() {
        Account account = new Account();
        _createForm = new CreateAccountForm(account);

        Forward forward = new Forward("success", _createForm);
        forward.addActionOutput("categoryNames", _sharedFlow.getCategoryNames());
        forward.addActionOutput("languages", LANGUAGES);
        return forward;
    }
View Full Code Here

            @Jpf.Forward(name="currentPage", navigateTo=Jpf.NavigateTo.currentPage)
        }
    )
    public Forward loginDone(ReturnToForm initForm) {
        if (initForm.getReturnToPreviousAction())
            return new Forward("previousAction");
        else return new Forward("currentPage");
    }
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.