added resource url encoding

This commit is contained in:
Keith Donald
2007-02-28 16:51:10 +00:00
parent 428f01b9fa
commit c53ed47c0e
2 changed files with 4 additions and 0 deletions

View File

@@ -19,6 +19,9 @@ Package org.springframework.webflow.conversation
* The SessionBindingConversationManager now re-binds the ConversationContainer in the session * The SessionBindingConversationManager now re-binds the ConversationContainer in the session
every time a contained conversation is unlocked (SWF-244). every time a contained conversation is unlocked (SWF-244).
Package org.springframework.webflow.executor
* Added resource URL encoded to redirects in a JSF environment
Changes in version 1.0.1 (08.01.2007) Changes in version 1.0.1 (08.01.2007)
------------------------------------- -------------------------------------

View File

@@ -317,6 +317,7 @@ public class FlowPhaseListener implements PhaseListener {
private void sendRedirect(String url, JsfExternalContext context) { private void sendRedirect(String url, JsfExternalContext context) {
try { try {
url = context.getFacesContext().getExternalContext().encodeResourceURL(url);
context.getFacesContext().getExternalContext().redirect(url); context.getFacesContext().getExternalContext().redirect(url);
context.getFacesContext().responseComplete(); context.getFacesContext().responseComplete();
} }