Package javax.faces.event

Examples of javax.faces.event.FormEvent


    protected String processPath(HttpServletRequest request,
                                 HttpServletResponse response)
        throws IOException {

        // Handle non-Faces requests in the usual way
        FormEvent event = (FormEvent)
            request.getAttribute(Constants.FORM_EVENT_KEY);
        if (event == null) {
            return (super.processPath(request, response));
        }

        // Calculate the path from the form name
        return (event.getFormName());

    }
View Full Code Here


                                   ActionForm form,
                                   ActionMapping mapping)
        throws ServletException {

        // Are we processing a Faces request?
        FormEvent event = (FormEvent)
            request.getAttribute(Constants.FORM_EVENT_KEY);

        // Handle non-Faces requests in the usual way
        if (event == null) {
            super.processPopulate(request, response, form, mapping);
            return;
        }

        // Faces requests require no processing for form bean population
        // so we need only check for the cancellation command name
        if ("cancel".equals(event.getCommandName())) {
            request.setAttribute(Globals.CANCEL_KEY, Boolean.TRUE);
        }

    }
View Full Code Here

TOP

Related Classes of javax.faces.event.FormEvent

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.