Package org.mojavemvc.tests.forms

Examples of org.mojavemvc.tests.forms.SomeForm


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

        SomeForm form = (SomeForm) parameters[0];
        return new HTMLPage()
            .withH2Content(form.getUserName() + " " + form.getPassword());
    }
View Full Code Here


    }

    @Action("populated")
    public View populatedForm() {

        SomeForm form = new SomeForm();
        form.setPassword("pswd");
        form.setUserName("uname");

        return new HTMLForm()
            .withAction("form-controller/process")
            .withTextInput("userName", "userName", "${userName}")
            .withPasswordInput("${password}")
View Full Code Here

TOP

Related Classes of org.mojavemvc.tests.forms.SomeForm

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.