Examples of HTMLPage


Examples of org.mojavemvc.tests.views.HTMLPage

    @Action("injected")
    public View injectedAction() {

        String var = injectedController.process("index");
        return new HTMLPage()
            .withH2Content("index/injected " + var);
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

public class AfterWithContextController {

    @Action("index")
    public View someAction(@Param("p1") String name) {

        return new HTMLPage();
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

        String controller = ctx.getController();
        if (!"afterctx".equals(controller)) {
            throw new RuntimeException("controller incorrect");
        }

        return new HTMLPage()
            .withH2Content(String.valueOf(parameters[0]));
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

    }

    @Action
    public View doSomething() {

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

Examples of org.mojavemvc.tests.views.HTMLPage

    @Action("test")
    public View testAction(@Param("var") String var) {

        String processed = process(var);
        return new HTMLPage()
            .withH1Content("injectable/test")
            .withH2Content(processed);
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

public class ClassNameController {

    @Action
    public View sayHello(@Param("name") String name) {

        return new HTMLPage()
            .withH2Content("classNameControllerAction:" + name);
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

    }

    @Action("do-something")
    public View doSomething() {

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

Examples of org.mojavemvc.tests.views.HTMLPage

        afterInvokeCount++;
    }

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

Examples of org.mojavemvc.tests.views.HTMLPage

*/
public abstract class AbstractController {

    @Action("test")
    public View testInitAction() {
        return new HTMLPage()
            .withH2Content(getVal());
    }
View Full Code Here

Examples of org.mojavemvc.tests.views.HTMLPage

    }

    @Action
    public View doSomething() {

        return new HTMLPage()
            .withH2Content("redirecting2");
    }
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.