Package net.sourceforge.stripes.examples.bugzooky.ext

Examples of net.sourceforge.stripes.examples.bugzooky.ext.BugzookyActionBeanContext


    @DefaultHandler
    @DontValidate
    public Resolution view() {
        // Check for the "view" parameter. It will be there if we got here by a form submission.
        BugzookyActionBeanContext context = getContext();
        boolean fromForm = context.getRequest().getParameter("view") != null;
        if (fromForm && (getBugs() == null || getBugs().isEmpty())) {
            context.getValidationErrors().addGlobalError(
                    new SimpleError("You must select at least one bug to edit."));
            return context.getSourcePageResolution();
        }

        return new ForwardResolution("/bugzooky/BulkAddEditBugs.jsp");
    }
View Full Code Here

TOP

Related Classes of net.sourceforge.stripes.examples.bugzooky.ext.BugzookyActionBeanContext

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.