Examples of HtmlPage


Examples of org.mojavemvc.tests.views.HTMLPage

    }

    @Action
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("streaming3");
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

    private String someStatefulVar;

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

Examples of org.mojavemvc.tests.views.HTMLPage

        return new HTMLPage();
    }

    @Action("some-action")
    public View someAction() {
        return new HTMLPage()
            .withH1Content("some-singleton/some-action");
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

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

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

Examples of org.mojavemvc.tests.views.HTMLPage

    }

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

        return new HTMLPage()
            .withH2Content(someStatefulVar);
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

        Long ts = (Long)request.getAttribute("ts");
        if (ts == null) {
            ts = System.currentTimeMillis();
            request.setAttribute("ts", ts);
        }
        return new HTMLPage()
            .withH2Content(String.valueOf(ts));
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

    }

    @Action("get-inj")
    public View getInjAction() {

        return new HTMLPage()
            .withH2Content(Integer.toHexString(System.identityHashCode(someService)));
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

public class AfterController {

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

        return new HTMLPage();
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

    }

    @AfterAction
    public View afterAction() {

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

Examples of org.mojavemvc.tests.views.HTMLPage

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

    @DefaultAction
    public View defAction() {
        return new HTMLPage().withH1Content("redirected!");
    }
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.