deltaspike-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject git commit: DELTASPIKE-753 use #encodeResourceURL to be more portable
Date Mon, 27 Oct 2014 08:58:37 GMT
Repository: deltaspike
Updated Branches:
  refs/heads/master 80d52a5d2 -> e8171f115


DELTASPIKE-753 use #encodeResourceURL to be more portable


Project: http://git-wip-us.apache.org/repos/asf/deltaspike/repo
Commit: http://git-wip-us.apache.org/repos/asf/deltaspike/commit/e8171f11
Tree: http://git-wip-us.apache.org/repos/asf/deltaspike/tree/e8171f11
Diff: http://git-wip-us.apache.org/repos/asf/deltaspike/diff/e8171f11

Branch: refs/heads/master
Commit: e8171f115e8bbba697a7df1f88764a29114dc502
Parents: 80d52a5
Author: gpetracek <gpetracek@apache.org>
Authored: Mon Oct 27 09:57:58 2014 +0100
Committer: gpetracek <gpetracek@apache.org>
Committed: Mon Oct 27 09:57:58 2014 +0100

----------------------------------------------------------------------
 .../org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/deltaspike/blob/e8171f11/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
----------------------------------------------------------------------
diff --git a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
index 04a7d1d..79a5996 100644
--- a/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
+++ b/deltaspike/modules/jsf/impl/src/main/java/org/apache/deltaspike/jsf/impl/util/ClientWindowHelper.java
@@ -61,7 +61,8 @@ public abstract class ClientWindowHelper
   
         url = JsfUtils.addRequestParameters(externalContext, url, true);
         //TODO check if it isn't better to fix addRequestParameters itself
-        url = facesContext.getExternalContext().encodeActionURL(url);
+        //only #encodeResourceURL is portable currently
+        url = facesContext.getExternalContext().encodeResourceURL(url);
 
         // see #729
         addRequestWindowIdCookie(facesContext, newWindowId);


Mime
View raw message