Hi Jeremi,
We also need a JIRA issue for this...
Thanks
-Vincent
On Feb 14, 2007, at 1:03 PM, Jeremi Joslin wrote:
Author: jeremi
Date: 2007-02-14 13:03:27 +0100 (Wed, 14 Feb 2007)
New Revision: 2123
Added:
xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiDebugGWTURLFactory.java
Modified:
xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWikiContext.java
xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiURLFactoryServiceImpl.java
Log:
add the XWikiContext.MODE_GWT_DEBUG
Modified: xwiki/trunk/core/src/main/java/com/xpn/xwiki/
XWikiContext.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWikiContext.java
2007-02-14 12:00:17 UTC (rev 2122)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/XWikiContext.java
2007-02-14 12:03:27 UTC (rev 2123)
@@ -43,6 +43,7 @@
public static final int MODE_ATOM = 3;
public static final int MODE_PDF = 4;
public static final int MODE_GWT = 5;
+ public static final int MODE_GWT_DEBUG = 6;
private boolean finished = false;
private XWiki wiki;
Added: xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiDebugGWTURLFactory.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiDebugGWTURLFactory.java 2007-02-14 12:00:17 UTC (rev 2122)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiDebugGWTURLFactory.java 2007-02-14 12:03:27 UTC (rev 2123)
@@ -0,0 +1,33 @@
+package com.xpn.xwiki.web;
+
+import com.xpn.xwiki.XWikiContext;
+
+import java.net.URL;
+import java.net.MalformedURLException;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: jerem
+ * Date: Jan 18, 2007
+ * Time: 3:14:06 PM
+ * To change this template use File | Settings | File Templates.
+ */
+public class XWikiDebugGWTURLFactory extends XWikiServletURLFactory{
+
+
+ public void init(XWikiContext context) {
+ URL url = context.getURL();
+
+ servletPath = "/xwiki/";
+
+ actionPath = "bin/";
+
+ try {
+ serverURL = new URL(url.getProtocol(), url.getHost(),
1025, "/");
+ } catch (MalformedURLException e) {
+ // This can't happen
+ }
+ }
+
+}
+
Modified: xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiURLFactoryServiceImpl.java
===================================================================
--- xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiURLFactoryServiceImpl.java 2007-02-14 12:00:17 UTC (rev 2122)
+++ xwiki/trunk/core/src/main/java/com/xpn/xwiki/web/
XWikiURLFactoryServiceImpl.java 2007-02-14 12:03:27 UTC (rev 2123)
@@ -49,7 +49,8 @@
register(xwiki, XWikiContext.MODE_SERVLET,
XWikiServletURLFactory.class, "xwiki.urlfactory.servletclass");
register(xwiki, XWikiContext.MODE_PORTLET,
XWikiPortletURLFactory.class, "xwiki.urlfactory.portletclass");
register(xwiki, XWikiContext.MODE_PDF,
PdfURLFactory.class, "xwiki.urlfactory.pdfclass");
- register(xwiki, XWikiContext.MODE_GWT,
XWikiServletURLFactory.class, "xwiki.urlfactory.servletclass");
+ register(xwiki, XWikiContext.MODE_GWT,
XWikiServletURLFactory.class, "xwiki.urlfactory.servletclass");
+ register(xwiki, XWikiContext.MODE_GWT_DEBUG,
XWikiDebugGWTURLFactory.class, "xwiki.urlfactory.servletclass");
}
protected void register(XWiki xwiki, int mode, Class
defaultImpl, String propertyName)
___________________________________________________________________________
Yahoo! Mail r�invente le mail ! D�couvrez le nouveau Yahoo! Mail et son interface
r�volutionnaire.
http://fr.mail.yahoo.com