added resource url encoding
This commit is contained in:
@@ -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)
|
||||||
-------------------------------------
|
-------------------------------------
|
||||||
|
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user