This commit is contained in:
Keith Donald
2009-04-16 04:33:25 +00:00
parent f900e58db5
commit 8ec2371e25
2 changed files with 8 additions and 1 deletions

View File

@@ -19,6 +19,8 @@ Bug Fixes
* Fixed bug where updating ViewState history could result in exceptions if no flow execution key was assigned or no snapshot had been taken (SWF-1099).
Improvements
* Added userEventQueued and getUserEventState methods to View SPI, which simplified ViewState and View object interaction.
Custom View implementations will need to be updated to implement these new operations. See View's API JavaDocs and ViewState's doEnter and resume implementations.
* Added org.springframework.webflow dm Server library definition for use in a dm Server deployment environment (SWF-1067)
* Strengthened contract for response-related methods in ExternalContext. Specifically, calling any of the requestRedirect methods also now completes the response.
If you attempt to complete a response more than once against an ExternalContext, an IllegalStateException is thrown.

View File

@@ -432,7 +432,12 @@ public class MockExternalContext implements ExternalContext {
throw new IllegalStateException(
"A response is not allowed because an externalRedirect has already been requested on this ExternalContext");
}
throw new IllegalStateException("A response is not allowed");
if (responseComplete) {
throw new IllegalStateException(
"A response is not allowed because one has already been completed on this ExternalContext");
} else {
throw new IllegalStateException("A response is not allowed");
}
}
}