Package org.mojavemvc.tests.views

Examples of org.mojavemvc.tests.views.HTMLPage


public class AfterController {

    @Action("index")
    public View someAction() {

        return new HTMLPage();
    }
View Full Code Here


    }

    @AfterAction
    public View afterAction() {

        return new HTMLPage()
            .withH1Content("after/index");
    }
View Full Code Here

        return new Redirect("/mvc/serv/redirecting");
    }

    @DefaultAction
    public View defAction() {
        return new HTMLPage().withH1Content("redirected!");
    }
View Full Code Here

    @Inject
    private HttpServletRequest request;

    @DefaultAction
    public View defaultAction() {
        return new HTMLPage();
    }
View Full Code Here

        return new HTMLPage();
    }

    @Action("some-action")
    public View doSomething() {
        return new HTMLPage()
            .withH2Content("annot/some-action " + getParameter("var"));
    }
View Full Code Here

        return new JSON(json);
    }

    @DefaultAction
    public View defaultAction() {
        return new HTMLPage();
    }
View Full Code Here

public class BeforeController {

    @BeforeAction
    public View beforeAction() {

        return new HTMLPage()
            .withH1Content("before/index");
    }
View Full Code Here

    }

    @Action("index")
    public View someAction() {

        return new HTMLPage();
    }
View Full Code Here

    @Action("set-var")
    public View setVarAction(@Param("var") String var) {

        someStatefulVar = var;
        return new HTMLPage()
            .withH1Content("some-stateful/set-var");
    }
View Full Code Here

    }

    @Action("get-var")
    public View getVarAction() {

        return new HTMLPage()
            .withH2Content(someStatefulVar != null ? someStatefulVar : "null");
    }
View Full Code Here

TOP

Related Classes of org.mojavemvc.tests.views.HTMLPage

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.