[seam-commits] Seam SVN: r15178 - branches/enterprise/JBPAPP_5_0/ui/src/main/java/org/jboss/seam/ui.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Tue Oct 2 08:36:10 EDT 2012
Author: manaRH
Date: 2012-10-02 08:36:10 -0400 (Tue, 02 Oct 2012)
New Revision: 15178
Modified:
branches/enterprise/JBPAPP_5_0/ui/src/main/java/org/jboss/seam/ui/ClientUidSelector.java
Log:
JBPAPP-7183
Modified: branches/enterprise/JBPAPP_5_0/ui/src/main/java/org/jboss/seam/ui/ClientUidSelector.java
===================================================================
--- branches/enterprise/JBPAPP_5_0/ui/src/main/java/org/jboss/seam/ui/ClientUidSelector.java 2012-10-02 12:04:25 UTC (rev 15177)
+++ branches/enterprise/JBPAPP_5_0/ui/src/main/java/org/jboss/seam/ui/ClientUidSelector.java 2012-10-02 12:36:10 UTC (rev 15178)
@@ -28,7 +28,12 @@
@Create
public void onCreate()
{
- setCookiePath(FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath());
+ String requestContextPath = FacesContext.getCurrentInstance().getExternalContext().getRequestContextPath();
+ if (requestContextPath.isEmpty())
+ {
+ requestContextPath = "/";
+ }
+ setCookiePath(requestContextPath);
setCookieMaxAge(-1);
setCookieEnabled(true);
clientUid = getCookieValue();
More information about the seam-commits
mailing list