Hi Chirag and Christian,
There seems to be an incompatibility between the java RPC trunk (at 
least until rev 18793) and Qooxdoo 0.8.2+. The RPC servlet generates a 
script with old namespaces for automatic server  URL determination. 
Unfortunately, this is located in a private method so it cannot be 
overridden. Here is a local patch that should fix it :

Index: RpcServlet.java
===================================================================
--- RpcServlet.java    (revision 18793)
+++ RpcServlet.java    (working copy)
@@ -269,7 +269,7 @@
    
     private String makeJavaScriptServerInfo(HttpServletRequest request) {
         return "if (!qx || !qx.core || !qx.core.ServerSettings) {" +
-                 "qx.OO.defineClass(\"qx.core.ServerSettings\");" +
+                 "qx.Class.define(\"qx.core.ServerSettings\");" +
                 "}" +
                 "qx.core.ServerSettings.serverPathPrefix = \"" + 
getContextURL(request) + "\";" +
                 "qx.core.ServerSettings.serverPathSuffix = 
\";jsessionid=" + request.getSession().getId() + "\";" +


HTH,
Vincent


Christian Schmidt a écrit :
> Hi Chirag,
>
> which qooxdoo version do you use?
>
> Cheers,
> Chris
>
> Chirag Patel schrieb:
>   
>> Hi,
>>
>> I am using RpcJava to make sync as well as async call.
>> In order to implement session management I need to have a url which 
>> includes jsessionid in it.
>> Is it possible to rewrite a url specified in qx.io.remote.Rpc() ?
>>
>> I followed url http://qooxdoo.org/documentation/0.7/rpc to rewrite the 
>> URL but it is not working for me. It gives me error "qx.OO is 
>> undefined" which is obvious because the build version of the 
>> application does not include qooxdoo related classes.
>> How to overcome this?
>>
>>     


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to