From 55624495a4412542d3aa40008fa927226d78fd22 Mon Sep 17 00:00:00 2001 From: Erwin Vervaet Date: Mon, 15 Jan 2007 16:32:53 +0000 Subject: [PATCH] FormAction methods doBind() and createBinder() now declare "throws Exception". --- spring-webflow/changelog.txt | 6 ++++++ .../org/springframework/webflow/action/FormAction.java | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/spring-webflow/changelog.txt b/spring-webflow/changelog.txt index 1b3b95d7..75b44de9 100644 --- a/spring-webflow/changelog.txt +++ b/spring-webflow/changelog.txt @@ -2,6 +2,12 @@ SPRING WEB FLOW (SWF) CHANGELOG =============================== http://www.springframework.org +Changes in version () +------------------------------------- + +Package org.springframework.webflow.action +* FormAction methods doBind() and createBinder() now declare "throws Exception". + Changes in version 1.0.1 (08.01.2007) ------------------------------------- diff --git a/spring-webflow/src/main/java/org/springframework/webflow/action/FormAction.java b/spring-webflow/src/main/java/org/springframework/webflow/action/FormAction.java index a8b38d3a..4c2bf476 100644 --- a/spring-webflow/src/main/java/org/springframework/webflow/action/FormAction.java +++ b/spring-webflow/src/main/java/org/springframework/webflow/action/FormAction.java @@ -700,7 +700,7 @@ public class FormAction extends MultiAction implements InitializingBean { * @param context the current flow execution request context * @param formObject the form object for which errors will be tracked */ - private Errors initFormErrors(RequestContext context, Object formObject) { + private Errors initFormErrors(RequestContext context, Object formObject) throws Exception { if (logger.isDebugEnabled()) { logger.debug("Creating new form errors for object with name '" + getFormObjectName() + "'"); } @@ -723,7 +723,7 @@ public class FormAction extends MultiAction implements InitializingBean { * Make sure a valid Errors instance for given form object is exposed * in given context. */ - private void ensureFormErrorsExposed(RequestContext context, Object formObject) { + private void ensureFormErrorsExposed(RequestContext context, Object formObject) throws Exception { if (!formErrorsExposed(context)) { // initialize and expose a fresh errors instance to the flow with // editors applied @@ -900,11 +900,12 @@ public class FormAction extends MultiAction implements InitializingBean { * data in "flow scope" or "request scope" * @param formObject the form object to bind onto * @return the new binder instance + * @throws Exception when an unrecoverable exception occurs * @see WebDataBinder * @see #initBinder(RequestContext, DataBinder) * @see #setMessageCodesResolver(MessageCodesResolver) */ - protected DataBinder createBinder(RequestContext context, Object formObject) { + protected DataBinder createBinder(RequestContext context, Object formObject) throws Exception { DataBinder binder = new WebDataBinder(formObject, getFormObjectName()); if (messageCodesResolver != null) { binder.setMessageCodesResolver(messageCodesResolver); @@ -920,8 +921,9 @@ public class FormAction extends MultiAction implements InitializingBean { * @param context the action execution context, for accessing and setting * data in "flow scope" or "request scope" * @param binder the data binder to use + * @throws Exception when an unrecoverable exception occurs */ - protected void doBind(RequestContext context, DataBinder binder) { + protected void doBind(RequestContext context, DataBinder binder) throws Exception { if (logger.isDebugEnabled()) { logger.debug("Binding allowed request parameters in " + StylerUtils.style(context.getExternalContext().getRequestParameterMap())