Hi Tobias,
Thanks for the response.
When you say copy the f.e. classes, what exactly to copy?
I went to "qooxdoo-sdk\frontend", did a "make distclean" and "make source"
Copied all the files under "qooxdoo-sdk\frontend\framework\source\class".
Is that all I need to do? Do I miss anything else?
How to import the qooxdoo classes in the html?
Thanks in Advance,
Raffi
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tobias Koller
(GERMO GmbH)
Sent: Monday, January 28, 2008 2:21 PM
To: qooxdoo Development
Subject: Re: [qooxdoo-devel] RPC Client for java Backend
Hi Raffi,
I use the java-backend like this:
var rpc = new qx.io.remote.Rpc();
rpc.setCrossDomain( false );
rpc.setTimeout(30000);
var call = null;
var p = this;
rpc.setUrl("http://localhost:8080/qooxdoo/.qxrpc");
rpc.setServiceName("de.germo.test.myTestClass");
call = rpc.callAsync(function(result, ex, id) { call = null;
if (ex == null) {
alert("no exception - ok");
} else {
Alert("exception "+ex);
}
},"myRemoteMethod");
Put your qooxdoo.war into your tomcat/webapps- directory and restart your
tomcat.
The Tomcat should create a folder "qooxdoo" in the directory tomcat/webapps.
Now you can put your f.e. class-files (the whole package-structure) into
Tomcat\webapps\qooxdoo\WEB-INF\classes.
But the error "qx is not defined" is something different I think.
Try to make "make distclean" and then "make source".
Tobias
-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von S, Mohamed
Raffi (Mohamed)
Gesendet: Samstag, 26. Januar 2008 15:16
An: [email protected]
Betreff: [qooxdoo-devel] RPC Client for java Backend
Hi,
I am trying out the java RPC backend.
I built and deployed the war. Wrote a HTML and javascript (pasted in
this mail).
I think, I need to place some js files in the webapps.
I am getting an error "qx is not defined", when I create the
qx.io.remote.Rpc object
Can anyone tell me what are the additional files I need to place and
where can I get those files?
My HTML
------------------------------------------------
<html>
<head>
<script type="text/javascript" src="test.js" />
</head>
<body onload="testSync()">
</body>
</html>
-------------------------------------------------
My javascript
-------------------------------------------------
var rpc = new qx.io.remote.Rpc(
"http://localhost:8080/qooxdoo/.qxrpc",
"qooxdoo.test"
);
function testSync()
{
try
{
var result = rpc.callSync("echo", "Test");
alert("result: " + result);
}
catch(ex)
{
alert("excewption: " + ex);
}
}
----------------------------------------------------
Thanks,
Raffi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel