[jboss-cvs] jboss-seam/src/main/org/jboss/seam/mock ...
Gavin King
gavin.king at jboss.com
Sat Jul 21 01:41:37 EDT 2007
User: gavin
Date: 07/07/21 01:41:37
Modified: src/main/org/jboss/seam/mock MockViewHandler.java
Log:
JBSEAM-1604
Revision Changes Path
1.8 +2 -3 jboss-seam/src/main/org/jboss/seam/mock/MockViewHandler.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: MockViewHandler.java
===================================================================
RCS file: /cvsroot/jboss/jboss-seam/src/main/org/jboss/seam/mock/MockViewHandler.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- MockViewHandler.java 8 May 2007 15:25:53 -0000 1.7
+++ MockViewHandler.java 21 Jul 2007 05:41:37 -0000 1.8
@@ -34,9 +34,8 @@
public String getActionURL(FacesContext ctx, String viewId)
{
String contextPath = ctx.getExternalContext().getRequestContextPath();
- String pathInfo = ctx.getExternalContext().getRequestPathInfo();
String servletPath = ctx.getExternalContext().getRequestServletPath();
- if ( Strings.isEmpty(pathInfo) )
+ if ( Strings.isEmpty(servletPath) )
{
int loc = viewId.lastIndexOf('.');
if (loc<0) throw new IllegalArgumentException("no file extension in view id: " + viewId);
@@ -46,7 +45,7 @@
}
else
{
- return contextPath + pathInfo + viewId;
+ return contextPath + servletPath + viewId;
}
}
More information about the jboss-cvs-commits
mailing list