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);
}
}