Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Great News John,
At the moment I'm trying to make a thread and manage the event with the
changeProperty but in some point the class lost the bind of the property
(probably my fault).
Soon as possible i try your async implementation, thanks for your
support
Sp
Il giorno gio, 21/07/2011 alle 12.02 +0100, John Spackman ha scritto:
> Hi Simone
>
> I've added an "experimental" feature to allow asynchronous method calls;
> for any server method, if you pass a function as an argument the method
> will be called asynchronously and the function called when the method
> completes. The function receives one argument, which is the return value
> of the server method and the "this" is set to the All other arguments to
> the method are send through as usual.
>
> For example:
>
> boot.runtimeB(1, 2, function(result) {
> alert('runtimeB(1, 2) has finally finished');
> qx.core.Assert.assertTrue(this == boot);
> });
>
> John
>
> On 21/07/2011 10:16, "John Spackman" wrote:
>
> >>
> >>with the external program i have a situation like this:
> >>
> >>runtimeA(); //prepare the widget for the rappresentation of the stdout
> >>runtimeB(); //call the server object and launch the external program
> >>
> >>At the moment the widget for runtimeA appear only after the runtimeB()
> >>is finished, i don't really understand why.
> >
> >This is because either because Qooxdoo hasn't recalculated the layout of
> >the widgets yet or because the browser hasn't updated it's display when
> >you make a synchronous call - either the way the effect is the same:
> >client apps are single threaded and that includes the browser redrawing
> >the display. Making a synchronous call blocks the one thread.
> >
> >If you have a long running process and you don't want the client to block,
> >you'll have to poll the server - at the moment there is no facility in QSO
> >to have an asynchronous method call. This would mean running your
> >external server process in a separate thread and your runtimeB() method
> >would check to see if there is any fresh output from the external process
> >and if so return it. You will have to manage your own synchronised calls
> >to that thread.
> >
> >>I see also that if i don't use the interface, after some time, the
> >>session expires, this is a good point, but how i can interface with the
> >>session?
> >
> >This is a normal issue - if you are finding that your session times out
> >and Tomcat destroys the session you can either increase the session
> >timeout (I think the default is 20 minutes) or you can "ping" the server
> >every few minutes to keep it alive -- but that could mean that your client
> >leaves their session open forever and will permanently use up server
> >resources.
> >
> >
> >You can install a keyboard and mouse callback on the document to check for
> >user activity - and only ping the server if the user is still actually
> >active.
> >
> >>i need to build also the authentication for my application,
> >>there is some function to controllor the session with the serverobject?
> >
> >Nope, that's up to you.
> >
> >
> >>For the query to the db i have a similar problem, when press the button
> >>for start the query, the botton stay pressed until the query finish.
> >
> >At the moment, the only solution is to poll the server for long running
> >requests. Is your database really huge or complex? Can you look at
> >optimising the query, adding indexes, etc? (sorry, I know that doesn't
> >solve your problem but it might be something worth doing anyway and could
> >help here)
> >
> >John
> >
> >
> >
> >
> >--
> >
> >5 Ways to Improve & Secure Unified Communications
> >Unified Communications promises greater efficiencies for business. UC can
> >improve internal communications as well as offer faster, more efficient
> >ways
> >to interact with customers and streamline customer service. Learn more!
> >http://www.accelacomm.com/jaw/sfnl/114/51426253/
> >___
> >qooxdoo-devel mailing list
> >[email protected]
> >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
>
>
>
> --
> 5 Ways to Improve & Secure Unified Communications
> Unified Communications promises greater efficiencies for business. UC can
> improve internal communications as well as offer faster, more efficient ways
> to interact with customers and streamline customer service. Learn more!
> http://www.accelacomm.com/jaw/sfnl/114/51426253/
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Erreedi Srl
Tel. 06.7900639
Fax 06.79840900
e-mail: [email protected]
--
--
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone
I've added an "experimental" feature to allow asynchronous method calls;
for any server method, if you pass a function as an argument the method
will be called asynchronously and the function called when the method
completes. The function receives one argument, which is the return value
of the server method and the "this" is set to the All other arguments to
the method are send through as usual.
For example:
boot.runtimeB(1, 2, function(result) {
alert('runtimeB(1, 2) has finally finished');
qx.core.Assert.assertTrue(this == boot);
});
John
On 21/07/2011 10:16, "John Spackman" wrote:
>>
>>with the external program i have a situation like this:
>>
>>runtimeA(); //prepare the widget for the rappresentation of the stdout
>>runtimeB(); //call the server object and launch the external program
>>
>>At the moment the widget for runtimeA appear only after the runtimeB()
>>is finished, i don't really understand why.
>
>This is because either because Qooxdoo hasn't recalculated the layout of
>the widgets yet or because the browser hasn't updated it's display when
>you make a synchronous call - either the way the effect is the same:
>client apps are single threaded and that includes the browser redrawing
>the display. Making a synchronous call blocks the one thread.
>
>If you have a long running process and you don't want the client to block,
>you'll have to poll the server - at the moment there is no facility in QSO
>to have an asynchronous method call. This would mean running your
>external server process in a separate thread and your runtimeB() method
>would check to see if there is any fresh output from the external process
>and if so return it. You will have to manage your own synchronised calls
>to that thread.
>
>>I see also that if i don't use the interface, after some time, the
>>session expires, this is a good point, but how i can interface with the
>>session?
>
>This is a normal issue - if you are finding that your session times out
>and Tomcat destroys the session you can either increase the session
>timeout (I think the default is 20 minutes) or you can "ping" the server
>every few minutes to keep it alive -- but that could mean that your client
>leaves their session open forever and will permanently use up server
>resources.
>
>
>You can install a keyboard and mouse callback on the document to check for
>user activity - and only ping the server if the user is still actually
>active.
>
>>i need to build also the authentication for my application,
>>there is some function to controllor the session with the serverobject?
>
>Nope, that's up to you.
>
>
>>For the query to the db i have a similar problem, when press the button
>>for start the query, the botton stay pressed until the query finish.
>
>At the moment, the only solution is to poll the server for long running
>requests. Is your database really huge or complex? Can you look at
>optimising the query, adding indexes, etc? (sorry, I know that doesn't
>solve your problem but it might be something worth doing anyway and could
>help here)
>
>John
>
>
>
>
>--
>
>5 Ways to Improve & Secure Unified Communications
>Unified Communications promises greater efficiencies for business. UC can
>improve internal communications as well as offer faster, more efficient
>ways
>to interact with customers and streamline customer service. Learn more!
>http://www.accelacomm.com/jaw/sfnl/114/51426253/
>___
>qooxdoo-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
5 Ways to Improve & Secure Unified Communications
Unified Communications promises greater efficiencies for business. UC can
improve internal communications as well as offer faster, more efficient ways
to interact with customers and streamline customer service. Learn more!
http://www.accelacomm.com/jaw/sfnl/114/51426253/
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
> >with the external program i have a situation like this: > >runtimeA(); //prepare the widget for the rappresentation of the stdout >runtimeB(); //call the server object and launch the external program > >At the moment the widget for runtimeA appear only after the runtimeB() >is finished, i don't really understand why. This is because either because Qooxdoo hasn't recalculated the layout of the widgets yet or because the browser hasn't updated it's display when you make a synchronous call - either the way the effect is the same: client apps are single threaded and that includes the browser redrawing the display. Making a synchronous call blocks the one thread. If you have a long running process and you don't want the client to block, you'll have to poll the server - at the moment there is no facility in QSO to have an asynchronous method call. This would mean running your external server process in a separate thread and your runtimeB() method would check to see if there is any fresh output from the external process and if so return it. You will have to manage your own synchronised calls to that thread. >I see also that if i don't use the interface, after some time, the >session expires, this is a good point, but how i can interface with the >session? This is a normal issue - if you are finding that your session times out and Tomcat destroys the session you can either increase the session timeout (I think the default is 20 minutes) or you can "ping" the server every few minutes to keep it alive -- but that could mean that your client leaves their session open forever and will permanently use up server resources. You can install a keyboard and mouse callback on the document to check for user activity - and only ping the server if the user is still actually active. >i need to build also the authentication for my application, >there is some function to controllor the session with the serverobject? Nope, that's up to you. >For the query to the db i have a similar problem, when press the button >for start the query, the botton stay pressed until the query finish. At the moment, the only solution is to poll the server for long running requests. Is your database really huge or complex? Can you look at optimising the query, adding indexes, etc? (sorry, I know that doesn't solve your problem but it might be something worth doing anyway and could help here) John -- 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
One more thing John, About the external program, some time the execution time is long, and the backend reach the timeout, how i can control/configure this? I'm trying to launch the external program through a thread, but I do not know if this can give problems to serverobject I see also that if i don't use the interface, after some time, the session expires, this is a good point, but how i can interface with the session? i need to build also the authentication for my application, there is some function to controllor the session with the serverobject? Thanks in advance Sp Il giorno gio, 21/07/2011 alle 09.40 +0200, Simone Pandolfo ha scritto: > Hi John, > > I need to understand how the syncronus call work, > I have integrated on the serverobject a layer for the db and some call > to external program that i need the stdoutput back to qooxdoo. > > with the external program i have a situation like this: > > runtimeA(); //prepare the widget for the rappresentation of the stdout > runtimeB(); //call the server object and launch the external program > > At the moment the widget for runtimeA appear only after the runtimeB() > is finished, i don't really understand why. > > For the query to the db i have a similar problem, when press the button > for start the query, the botton stay pressed until the query finish. > > I want that after clicking on the button, i can show a loader image, > because the user don't think that the application is freezed. > > How i can achive this? > > If needed i can try to make an example, but for the db is more complex. > > Cheers, > > Sp > > > > Il giorno mar, 19/07/2011 alle 13.53 +0200, Simone Pandolfo ha scritto: > > Thank you john, > > > > Now i thought that all the piece are working, try to finish the > > conversion of the old backend to this powerfull ServerObject :) > > > > Sp > > > > Il giorno mar, 19/07/2011 alle 12.37 +0100, John Spackman ha scritto: > > > Hi Simone > > > > > > >I have maked some test, That's odd, with the previus version all work, > > > >at the moment i have this situation: > > > > > > You're right, apologies - there's a fix in SVN for this now. > > > > > > >New custom object: > > > >RangeError: Maximum call stack size exceeded > > > > > > This is because you have defined a property called "property" which > > > conflicts with the apply method defined on the object, causing an infinite > > > loop. I've changed my code to not accept "property" as a name and throw > > > an exception on the server; docs updated too. > > > > > > John > > > > > > > > > > > > > > > -- > > > Magic Quadrant for Content-Aware Data Loss Prevention > > > Research study explores the data loss prevention market. Includes in-depth > > > analysis on the changes within the DLP market, and the criteria used to > > > evaluate the strengths and weaknesses of these DLP solutions. > > > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > > > ___ > > > qooxdoo-devel mailing list > > > [email protected] > > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi John, I need to understand how the syncronus call work, I have integrated on the serverobject a layer for the db and some call to external program that i need the stdoutput back to qooxdoo. with the external program i have a situation like this: runtimeA(); //prepare the widget for the rappresentation of the stdout runtimeB(); //call the server object and launch the external program At the moment the widget for runtimeA appear only after the runtimeB() is finished, i don't really understand why. For the query to the db i have a similar problem, when press the button for start the query, the botton stay pressed until the query finish. I want that after clicking on the button, i can show a loader image, because the user don't think that the application is freezed. How i can achive this? If needed i can try to make an example, but for the db is more complex. Cheers, Sp Il giorno mar, 19/07/2011 alle 13.53 +0200, Simone Pandolfo ha scritto: > Thank you john, > > Now i thought that all the piece are working, try to finish the > conversion of the old backend to this powerfull ServerObject :) > > Sp > > Il giorno mar, 19/07/2011 alle 12.37 +0100, John Spackman ha scritto: > > Hi Simone > > > > >I have maked some test, That's odd, with the previus version all work, > > >at the moment i have this situation: > > > > You're right, apologies - there's a fix in SVN for this now. > > > > >New custom object: > > >RangeError: Maximum call stack size exceeded > > > > This is because you have defined a property called "property" which > > conflicts with the apply method defined on the object, causing an infinite > > loop. I've changed my code to not accept "property" as a name and throw > > an exception on the server; docs updated too. > > > > John > > > > > > > > > > -- > > Magic Quadrant for Content-Aware Data Loss Prevention > > Research study explores the data loss prevention market. Includes in-depth > > analysis on the changes within the DLP market, and the criteria used to > > evaluate the strengths and weaknesses of these DLP solutions. > > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > > ___ > > qooxdoo-devel mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- 5 Ways to Improve & Secure Unified Communications Unified Communications promises greater efficiencies for business. UC can improve internal communications as well as offer faster, more efficient ways to interact with customers and streamline customer service. Learn more! http://www.accelacomm.com/jaw/sfnl/114/51426253/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Thank you john, Now i thought that all the piece are working, try to finish the conversion of the old backend to this powerfull ServerObject :) Sp Il giorno mar, 19/07/2011 alle 12.37 +0100, John Spackman ha scritto: > Hi Simone > > >I have maked some test, That's odd, with the previus version all work, > >at the moment i have this situation: > > You're right, apologies - there's a fix in SVN for this now. > > >New custom object: > >RangeError: Maximum call stack size exceeded > > This is because you have defined a property called "property" which > conflicts with the apply method defined on the object, causing an infinite > loop. I've changed my code to not accept "property" as a name and throw > an exception on the server; docs updated too. > > John > > > > > -- > Magic Quadrant for Content-Aware Data Loss Prevention > Research study explores the data loss prevention market. Includes in-depth > analysis on the changes within the DLP market, and the criteria used to > evaluate the strengths and weaknesses of these DLP solutions. > http://www.accelacomm.com/jaw/sfnl/114/51385063/ > ___ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone >I have maked some test, That's odd, with the previus version all work, >at the moment i have this situation: You're right, apologies - there's a fix in SVN for this now. >New custom object: >RangeError: Maximum call stack size exceeded This is because you have defined a property called "property" which conflicts with the apply method defined on the object, causing an infinite loop. I've changed my code to not accept "property" as a name and throw an exception on the server; docs updated too. John -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/ ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
>
>I did some tests, it seems that the last commit not allow the return of
>Object [] type.
That's odd - the last commit was pretty specific and shouldn't trigger
that kind of bug. I've just had a quick try and can't reproduce problems
returning Object[]; eg I added to your MyObject.java:
@Method
public Object[] getStructAsArray() {
return new Object[] { indexP, property, value, flag };
}
And in Application.js:
var propEl = new it.object.myobject.MyObject();
propEl.init(propArray[i][0],propArray[i][1],propArray[i][2],propArray[i][3
]);
var x = propEl.getStructAsArray();
qx.core.Assert.assertArray(x[0]);
for (var j = 0; j < x[0].length; j++)
qx.core.Assert.assertEquals(x[0][j], propArray[i][0][j]);
qx.core.Assert.assertEquals(x[1], propArray[i][1]);
qx.core.Assert.assertEquals(x[2], propArray[i][2]);
qx.core.Assert.assertEquals(x[3], propArray[i][3]);
What happens when you return an Object[]? Can you send me some example
code?
John
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
I did some tests, it seems that the last commit not allow the return of
Object [] type.
I'm trying to convert to ArrayList, so do other tests.
Il giorno lun, 18/07/2011 alle 17.41 +0200, Simone Pandolfo ha scritto:
> Thank you,
> I got the new update.
> The new version work fine in a new project, but in the old one i'm
> porting to the new backend return a : cannot read property serverId of
> null.
>
> i try to isolate why, and see if is a my error.
>
> Sp
>
>
> Il giorno lun, 18/07/2011 alle 16.24 +0100, John Spackman ha scritto:
> > Hi Simone
> >
> >
> > You need to use the default constructor to create instances of server
> > objects; I changed your example MyObject.java to:
> >
> >
> > public class MyObject implements Proxied {
> > public MyObject(){
> >
> > }
> >
> >
> >
> > public void init(Integer[] indexP,String property,
> > String value, Integer flag){
> > this.indexP = indexP;
> > this.property = property;
> > this.value = value;
> > this.flag = flag;
> > }
> >
> >
> > //…snip..//
> >
> >
> > And Application.js to:
> > var propEl = new it.object.myobject.MyObject();
> >
> >
> > propEl.init(propArray[i][0],propArray[i][1],propArray[i][2],propArray[i][3]);
> >
> >
> >
> > and it works fine. However I found another bug related to nulls vs
> > zero and there's an update in SVN for you.
> >
> >
> > John
> >
> >
> > On 18/07/2011 13:50, "Simone Pandolfo" wrote:
> >
> >
> > Jonh i send you a tar.gz with the example on your email.
> >
> >
> > I write some comment in the code, but if you need ask more
> > explanation.
> >
> >
> > Sp
> >
> >
> > Il giorno lun, 18/07/2011 alle 13.48 +0200, Simone Pandolfo ha
> > scritto:
> > isn't simple, i try to create a code example,but i
> > need to isolate the
> > behaviour.
> >
> > Another strange behaviour, is that on a pc the code
> > work, in another the
> > code need to have a fake call to the instance from the
> > serverobject
> > before use it.
> >
> > I think is a problem of timing, but isn't simple make
> > a code example,
> > the only difference between the 2 pc is simply the cpu
> > freq. (one is
> > old).
> >
> > i try to make some example to send to you.
> >
> > Sp
> >
> > Il giorno lun, 18/07/2011 alle 12.26 +0100, John
> > Spackman ha scritto:
> > > Can you give me an example of the code that doesn't
> > work?
> > >
> > > John
> > >
> > > On 18/07/2011 11:55, "Simone Pandolfo"
> > wrote:
> > >
> > > >Great!, thank you :)
> > > >
> > > >I check the update, one question, probably is a my
> > error, but i have two
> > > >similar class, one work, but the other return an
> > error that i'm tring to
> > > >find, "invalid ServerId 2,1,0 specified: Called
> > assertTrue with
> > > >'false'..
> > > >
> > > >i thought that can be a variable with a reserved
> > name in my code, the
> > > >number 2,1,0 can be a my sets of integer, but i
> > don't use it as
> > > >serverId.
> > > >
> > > >Sp
> > > >
> > > >
> > > >
> > > >
> > > >Il giorno lun, 18/07/2011 alle 11.39 +0100, John
> > Spackman ha scritto:
> > > >> Hi Simone
> > > >>
> > > >> That's fixed too, just committed a fix and unit
> > test
> > > >>
> > > >> John
> > > >>
> > > >> On 15/07/2011 09:32, "Simone Pandolfo"
> > wrote:
> > > >>
> > > >> >Thank you John, I have downloaded the new
> > revision and i'm going to
> > > >>test
> > > >> >it, I have some doubt about the return of some
> > kind of data, before i
> > > >> >tell you that integer value return nul
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Thank you,
I got the new update.
The new version work fine in a new project, but in the old one i'm
porting to the new backend return a : cannot read property serverId of
null.
i try to isolate why, and see if is a my error.
Sp
Il giorno lun, 18/07/2011 alle 16.24 +0100, John Spackman ha scritto:
> Hi Simone
>
>
> You need to use the default constructor to create instances of server
> objects; I changed your example MyObject.java to:
>
>
> public class MyObject implements Proxied {
> public MyObject(){
>
> }
>
>
>
> public void init(Integer[] indexP,String property,
> String value, Integer flag){
> this.indexP = indexP;
> this.property = property;
> this.value = value;
> this.flag = flag;
> }
>
>
> //…snip..//
>
>
> And Application.js to:
> var propEl = new it.object.myobject.MyObject();
>
>
> propEl.init(propArray[i][0],propArray[i][1],propArray[i][2],propArray[i][3]);
>
>
>
> and it works fine. However I found another bug related to nulls vs
> zero and there's an update in SVN for you.
>
>
> John
>
>
> On 18/07/2011 13:50, "Simone Pandolfo" wrote:
>
>
> Jonh i send you a tar.gz with the example on your email.
>
>
> I write some comment in the code, but if you need ask more
> explanation.
>
>
> Sp
>
>
> Il giorno lun, 18/07/2011 alle 13.48 +0200, Simone Pandolfo ha
> scritto:
> isn't simple, i try to create a code example,but i
> need to isolate the
> behaviour.
>
> Another strange behaviour, is that on a pc the code
> work, in another the
> code need to have a fake call to the instance from the
> serverobject
> before use it.
>
> I think is a problem of timing, but isn't simple make
> a code example,
> the only difference between the 2 pc is simply the cpu
> freq. (one is
> old).
>
> i try to make some example to send to you.
>
> Sp
>
> Il giorno lun, 18/07/2011 alle 12.26 +0100, John
> Spackman ha scritto:
> > Can you give me an example of the code that doesn't
> work?
> >
> > John
> >
> > On 18/07/2011 11:55, "Simone Pandolfo"
> wrote:
> >
> > >Great!, thank you :)
> > >
> > >I check the update, one question, probably is a my
> error, but i have two
> > >similar class, one work, but the other return an
> error that i'm tring to
> > >find, "invalid ServerId 2,1,0 specified: Called
> assertTrue with
> > >'false'..
> > >
> > >i thought that can be a variable with a reserved
> name in my code, the
> > >number 2,1,0 can be a my sets of integer, but i
> don't use it as
> > >serverId.
> > >
> > >Sp
> > >
> > >
> > >
> > >
> > >Il giorno lun, 18/07/2011 alle 11.39 +0100, John
> Spackman ha scritto:
> > >> Hi Simone
> > >>
> > >> That's fixed too, just committed a fix and unit
> test
> > >>
> > >> John
> > >>
> > >> On 15/07/2011 09:32, "Simone Pandolfo"
> wrote:
> > >>
> > >> >Thank you John, I have downloaded the new
> revision and i'm going to
> > >>test
> > >> >it, I have some doubt about the return of some
> kind of data, before i
> > >> >tell you that integer value return null when the
> value is 0, also for
> > >> >boolean the return value is true/null instead of
> true/false, in some
> > >> >case this may be a problem.
> > >> >
> > >> >Thank you for suport
> > >> >
> > >> >Sp
> > >> >
> > >> >Il giorno gio, 14/07/2011 alle 18.26 +0100, John
> Spackman ha scritto:
> >
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone
You need to use the default constructor to create instances of server
objects; I changed your example MyObject.java to:
> public class MyObject implements Proxied {
>> public MyObject(){
>> }
>>
>> public void init(Integer[] indexP,String property, String value, Integer
>> flag){
>>> this.indexP = indexP;
>>> this.property = property;
>>> this.value = value;
>>> this.flag = flag;
>> }
>>
>> //snip..//
And Application.js to:
> var propEl = new it.object.myobject.MyObject();
>
> propEl.init(propArray[i][0],propArray[i][1],propArray[i][2],propArray[i][3]);
and it works fine. However I found another bug related to nulls vs zero and
there's an update in SVN for you.
John
On 18/07/2011 13:50, "Simone Pandolfo" wrote:
> Jonh i send you a tar.gz with the example on your email.
>
> I write some comment in the code, but if you need ask more explanation.
>
> Sp
>
> Il giorno lun, 18/07/2011 alle 13.48 +0200, Simone Pandolfo ha scritto:
>> isn't simple, i try to create a code example,but i need to isolate the
>> behaviour.
>>
>> Another strange behaviour, is that on a pc the code work, in another the
>> code need to have a fake call to the instance from the serverobject
>> before use it.
>>
>> I think is a problem of timing, but isn't simple make a code example,
>> the only difference between the 2 pc is simply the cpu freq. (one is
>> old).
>>
>> i try to make some example to send to you.
>>
>> Sp
>>
>> Il giorno lun, 18/07/2011 alle 12.26 +0100, John Spackman ha scritto:
>>> > Can you give me an example of the code that doesn't work?
>>> >
>>> > John
>>> >
>>> > On 18/07/2011 11:55, "Simone Pandolfo" wrote:
>>> >
> >Great!, thank you :)
> >
> >I check the update, one question, probably is a my error, but i have
two
> >similar class, one work, but the other return an error that i'm tring
to
> >find, "invalid ServerId 2,1,0 specified: Called assertTrue with
> >'false'..
> >
> >i thought that can be a variable with a reserved name in my code, the
> >number 2,1,0 can be a my sets of integer, but i don't use it as
> >serverId.
> >
> >Sp
> >
> >
> >
> >
> >Il giorno lun, 18/07/2011 alle 11.39 +0100, John Spackman ha scritto:
> > >> Hi Simone
> > >>
> > >> That's fixed too, just committed a fix and unit test
> > >>
> > >> John
> > >>
> > >> On 15/07/2011 09:32, "Simone Pandolfo" >
wrote:
> > >>
>> > >> >Thank you John, I have downloaded the new revision and i'm going
to
> > >>test
>> > >> >it, I have some doubt about the return of some kind of data,
>> before i
>> > >> >tell you that integer value return null when the value is 0, also
for
>> > >> >boolean the return value is true/null instead of true/false, in
some
>> > >> >case this may be a problem.
>> > >> >
>> > >> >Thank you for suport
>> > >> >
>> > >> >Sp
>> > >> >
>> > >> >Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha
>> scritto:
>>> > >> >> I found a bug where creating objects on the client and then
passing
> > >>them
>>> > >> >> as an array caused an exception - that's fixed with the latest
> > >>revision
>>> > >> >> 21302, and I've added it to the demoapp
>>> > >> >>
>>> > >> >> John
>>> > >> >>
>>> > >> >> On 14/07/2011 13:44, "Simone Pandolfo"
wrote:
>>> > >> >>
> >> >> >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha
> > >>scritto:
> > >> >> >> Hi Simone
> > >> >> >>
>> > >> >> >> >I get most of the tutorial working, at the moment i'm
tring to
>> > >> >> >> >understand Collections and Arrays.
>> > >> >> >> >
>> > >> >> >> >At the moment if i change some data in the java class i
don't see
>>> > >> >>the
>> > >> >> >> >change in javascript side.
> > >> >> >>
> > >> >> >> Are you changing the Java array or changing one of the
objects in
> > >>the
> > >> >> >> array? The objects in the array must implement the
Proxied
> > >> >> >> Interface.
> > >> >> >>
> >> >> >For the change of the value i have resolved, i miss to
include
> >> >> >ProxyManager.changeProperty()
> >> >> >
> >> >> >But of i want send to the backend an array of objects,
> >> >> >
> >> >> >like:
> >> >> >
> >> >> >var var1 = new com.project.serverobject.ExampleClass();
> >> >> >var var2 = new com.project.serverobject.ExampleClass();
> >> >> >
> >> >> >var return = this.boot.testArray([var1,var2]);
> >> >> >
> >> >> >The serverobject itself don't work anymore, and result
undefined.
> >> >> >
> >> >> >how i can send to the backend an array of custom objects?
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Jonh i send you a tar.gz with the example on your email. I write some comment in the code, but if you need ask more explanation. Sp Il giorno lun, 18/07/2011 alle 13.48 +0200, Simone Pandolfo ha scritto: > isn't simple, i try to create a code example,but i need to isolate the > behaviour. > > Another strange behaviour, is that on a pc the code work, in another the > code need to have a fake call to the instance from the serverobject > before use it. > > I think is a problem of timing, but isn't simple make a code example, > the only difference between the 2 pc is simply the cpu freq. (one is > old). > > i try to make some example to send to you. > > Sp > > Il giorno lun, 18/07/2011 alle 12.26 +0100, John Spackman ha scritto: > > Can you give me an example of the code that doesn't work? > > > > John > > > > On 18/07/2011 11:55, "Simone Pandolfo" wrote: > > > > >Great!, thank you :) > > > > > >I check the update, one question, probably is a my error, but i have two > > >similar class, one work, but the other return an error that i'm tring to > > >find, "invalid ServerId 2,1,0 specified: Called assertTrue with > > >'false'.. > > > > > >i thought that can be a variable with a reserved name in my code, the > > >number 2,1,0 can be a my sets of integer, but i don't use it as > > >serverId. > > > > > >Sp > > > > > > > > > > > > > > >Il giorno lun, 18/07/2011 alle 11.39 +0100, John Spackman ha scritto: > > >> Hi Simone > > >> > > >> That's fixed too, just committed a fix and unit test > > >> > > >> John > > >> > > >> On 15/07/2011 09:32, "Simone Pandolfo" wrote: > > >> > > >> >Thank you John, I have downloaded the new revision and i'm going to > > >>test > > >> >it, I have some doubt about the return of some kind of data, before i > > >> >tell you that integer value return null when the value is 0, also for > > >> >boolean the return value is true/null instead of true/false, in some > > >> >case this may be a problem. > > >> > > > >> >Thank you for suport > > >> > > > >> >Sp > > >> > > > >> >Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha scritto: > > >> >> I found a bug where creating objects on the client and then passing > > >>them > > >> >> as an array caused an exception - that's fixed with the latest > > >>revision > > >> >> 21302, and I've added it to the demoapp > > >> >> > > >> >> John > > >> >> > > >> >> On 14/07/2011 13:44, "Simone Pandolfo" wrote: > > >> >> > > >> >> >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha > > >>scritto: > > >> >> >> Hi Simone > > >> >> >> > > >> >> >> >I get most of the tutorial working, at the moment i'm tring to > > >> >> >> >understand Collections and Arrays. > > >> >> >> > > > >> >> >> >At the moment if i change some data in the java class i don't see > > >> >>the > > >> >> >> >change in javascript side. > > >> >> >> > > >> >> >> Are you changing the Java array or changing one of the objects in > > >>the > > >> >> >> array? The objects in the array must implement the Proxied > > >> >> >> Interface. > > >> >> >> > > >> >> >For the change of the value i have resolved, i miss to include > > >> >> >ProxyManager.changeProperty() > > >> >> > > > >> >> >But of i want send to the backend an array of objects, > > >> >> > > > >> >> >like: > > >> >> > > > >> >> >var var1 = new com.project.serverobject.ExampleClass(); > > >> >> >var var2 = new com.project.serverobject.ExampleClass(); > > >> >> > > > >> >> >var return = this.boot.testArray([var1,var2]); > > >> >> > > > >> >> >The serverobject itself don't work anymore, and result undefined. > > >> >> > > > >> >> >how i can send to the backend an array of custom objects? > > >> >> > > > >> >> >Thanks > > >> >> > > > >> >> >Sp > > >> >> > > > >> >> > > > >> >> > > > >> >> > > > >> >> >> >Another question, the comunication is syncronus, for make Async i > > >> >>need > > >> >> >> >to make a thread in java right? > > >> >> >> > > >> >> >> No - the communication is driven from the client and goes over > > >>normal > > >> >> >>HTTP > > >> >> >> so Tomcat will provide the thread for you. The client will always > > >> >>make > > >> >> >> synchronous calls to the server, but as much as possible it > > >> >> >>queues/caches > > >> >> >> changes to minimise network trips. > > >> >> >> > > >> >> >> John > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> > > >> > > >>- > > >>-- > > >> -- > > >> >> >>- > > >> >> >> AppSumo Presents a FREE Video for the SourceForge Community by > > >>Eric > > >> >> >> Ries, the creator of the Lean Startup Methodology on "Lean Startup > > >> >> >> Secrets Revealed." This video shows you how to validate your > > >>ideas, > > >> >> >> optimize your ideas and identify your business strategy. > > >> >> >> http://p.sf.net/sfu/appsumosfdev2dev > > >> >> >> ___ > > >> >> >> qooxdoo-devel mailing list > > >> >> >>
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
isn't simple, i try to create a code example,but i need to isolate the behaviour. Another strange behaviour, is that on a pc the code work, in another the code need to have a fake call to the instance from the serverobject before use it. I think is a problem of timing, but isn't simple make a code example, the only difference between the 2 pc is simply the cpu freq. (one is old). i try to make some example to send to you. Sp Il giorno lun, 18/07/2011 alle 12.26 +0100, John Spackman ha scritto: > Can you give me an example of the code that doesn't work? > > John > > On 18/07/2011 11:55, "Simone Pandolfo" wrote: > > >Great!, thank you :) > > > >I check the update, one question, probably is a my error, but i have two > >similar class, one work, but the other return an error that i'm tring to > >find, "invalid ServerId 2,1,0 specified: Called assertTrue with > >'false'.. > > > >i thought that can be a variable with a reserved name in my code, the > >number 2,1,0 can be a my sets of integer, but i don't use it as > >serverId. > > > >Sp > > > > > > > > > >Il giorno lun, 18/07/2011 alle 11.39 +0100, John Spackman ha scritto: > >> Hi Simone > >> > >> That's fixed too, just committed a fix and unit test > >> > >> John > >> > >> On 15/07/2011 09:32, "Simone Pandolfo" wrote: > >> > >> >Thank you John, I have downloaded the new revision and i'm going to > >>test > >> >it, I have some doubt about the return of some kind of data, before i > >> >tell you that integer value return null when the value is 0, also for > >> >boolean the return value is true/null instead of true/false, in some > >> >case this may be a problem. > >> > > >> >Thank you for suport > >> > > >> >Sp > >> > > >> >Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha scritto: > >> >> I found a bug where creating objects on the client and then passing > >>them > >> >> as an array caused an exception - that's fixed with the latest > >>revision > >> >> 21302, and I've added it to the demoapp > >> >> > >> >> John > >> >> > >> >> On 14/07/2011 13:44, "Simone Pandolfo" wrote: > >> >> > >> >> >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha > >>scritto: > >> >> >> Hi Simone > >> >> >> > >> >> >> >I get most of the tutorial working, at the moment i'm tring to > >> >> >> >understand Collections and Arrays. > >> >> >> > > >> >> >> >At the moment if i change some data in the java class i don't see > >> >>the > >> >> >> >change in javascript side. > >> >> >> > >> >> >> Are you changing the Java array or changing one of the objects in > >>the > >> >> >> array? The objects in the array must implement the Proxied > >> >> >> Interface. > >> >> >> > >> >> >For the change of the value i have resolved, i miss to include > >> >> >ProxyManager.changeProperty() > >> >> > > >> >> >But of i want send to the backend an array of objects, > >> >> > > >> >> >like: > >> >> > > >> >> >var var1 = new com.project.serverobject.ExampleClass(); > >> >> >var var2 = new com.project.serverobject.ExampleClass(); > >> >> > > >> >> >var return = this.boot.testArray([var1,var2]); > >> >> > > >> >> >The serverobject itself don't work anymore, and result undefined. > >> >> > > >> >> >how i can send to the backend an array of custom objects? > >> >> > > >> >> >Thanks > >> >> > > >> >> >Sp > >> >> > > >> >> > > >> >> > > >> >> > > >> >> >> >Another question, the comunication is syncronus, for make Async i > >> >>need > >> >> >> >to make a thread in java right? > >> >> >> > >> >> >> No - the communication is driven from the client and goes over > >>normal > >> >> >>HTTP > >> >> >> so Tomcat will provide the thread for you. The client will always > >> >>make > >> >> >> synchronous calls to the server, but as much as possible it > >> >> >>queues/caches > >> >> >> changes to minimise network trips. > >> >> >> > >> >> >> John > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> > >> > >>- > >>-- > >> -- > >> >> >>- > >> >> >> AppSumo Presents a FREE Video for the SourceForge Community by > >>Eric > >> >> >> Ries, the creator of the Lean Startup Methodology on "Lean Startup > >> >> >> Secrets Revealed." This video shows you how to validate your > >>ideas, > >> >> >> optimize your ideas and identify your business strategy. > >> >> >> http://p.sf.net/sfu/appsumosfdev2dev > >> >> >> ___ > >> >> >> qooxdoo-devel mailing list > >> >> >> [email protected] > >> >> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >> >> >> > >> >> > > >> >> >-- > >> >> >Erreedi Srl > >> >> >Tel. 06.7900639 > >> >> >Fax 06.79840900 > >> >> >e-mail: [email protected] > >> >> >-- > >> >> > > >> >> > > >> >> > >> > >-- > >-- > >> >>>-- > >> >> > > >> >> >AppSumo Presents a FREE Video for the Source
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Can you give me an example of the code that doesn't work? John On 18/07/2011 11:55, "Simone Pandolfo" wrote: >Great!, thank you :) > >I check the update, one question, probably is a my error, but i have two >similar class, one work, but the other return an error that i'm tring to >find, "invalid ServerId 2,1,0 specified: Called assertTrue with >'false'.. > >i thought that can be a variable with a reserved name in my code, the >number 2,1,0 can be a my sets of integer, but i don't use it as >serverId. > >Sp > > > > >Il giorno lun, 18/07/2011 alle 11.39 +0100, John Spackman ha scritto: >> Hi Simone >> >> That's fixed too, just committed a fix and unit test >> >> John >> >> On 15/07/2011 09:32, "Simone Pandolfo" wrote: >> >> >Thank you John, I have downloaded the new revision and i'm going to >>test >> >it, I have some doubt about the return of some kind of data, before i >> >tell you that integer value return null when the value is 0, also for >> >boolean the return value is true/null instead of true/false, in some >> >case this may be a problem. >> > >> >Thank you for suport >> > >> >Sp >> > >> >Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha scritto: >> >> I found a bug where creating objects on the client and then passing >>them >> >> as an array caused an exception - that's fixed with the latest >>revision >> >> 21302, and I've added it to the demoapp >> >> >> >> John >> >> >> >> On 14/07/2011 13:44, "Simone Pandolfo" wrote: >> >> >> >> >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha >>scritto: >> >> >> Hi Simone >> >> >> >> >> >> >I get most of the tutorial working, at the moment i'm tring to >> >> >> >understand Collections and Arrays. >> >> >> > >> >> >> >At the moment if i change some data in the java class i don't see >> >>the >> >> >> >change in javascript side. >> >> >> >> >> >> Are you changing the Java array or changing one of the objects in >>the >> >> >> array? The objects in the array must implement the Proxied >> >> >> Interface. >> >> >> >> >> >For the change of the value i have resolved, i miss to include >> >> >ProxyManager.changeProperty() >> >> > >> >> >But of i want send to the backend an array of objects, >> >> > >> >> >like: >> >> > >> >> >var var1 = new com.project.serverobject.ExampleClass(); >> >> >var var2 = new com.project.serverobject.ExampleClass(); >> >> > >> >> >var return = this.boot.testArray([var1,var2]); >> >> > >> >> >The serverobject itself don't work anymore, and result undefined. >> >> > >> >> >how i can send to the backend an array of custom objects? >> >> > >> >> >Thanks >> >> > >> >> >Sp >> >> > >> >> > >> >> > >> >> > >> >> >> >Another question, the comunication is syncronus, for make Async i >> >>need >> >> >> >to make a thread in java right? >> >> >> >> >> >> No - the communication is driven from the client and goes over >>normal >> >> >>HTTP >> >> >> so Tomcat will provide the thread for you. The client will always >> >>make >> >> >> synchronous calls to the server, but as much as possible it >> >> >>queues/caches >> >> >> changes to minimise network trips. >> >> >> >> >> >> John >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >> >>- >>-- >> -- >> >> >>- >> >> >> AppSumo Presents a FREE Video for the SourceForge Community by >>Eric >> >> >> Ries, the creator of the Lean Startup Methodology on "Lean Startup >> >> >> Secrets Revealed." This video shows you how to validate your >>ideas, >> >> >> optimize your ideas and identify your business strategy. >> >> >> http://p.sf.net/sfu/appsumosfdev2dev >> >> >> ___ >> >> >> qooxdoo-devel mailing list >> >> >> [email protected] >> >> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> >> >> > >> >> >-- >> >> >Erreedi Srl >> >> >Tel. 06.7900639 >> >> >Fax 06.79840900 >> >> >e-mail: [email protected] >> >> >-- >> >> > >> >> > >> >> >> >-- >-- >> >>>-- >> >> > >> >> >AppSumo Presents a FREE Video for the SourceForge Community by Eric >> >> >Ries, the creator of the Lean Startup Methodology on "Lean Startup >> >> >Secrets Revealed." This video shows you how to validate your ideas, >> >> >optimize your ideas and identify your business strategy. >> >> >http://p.sf.net/sfu/appsumosfdev2dev >> >> >___ >> >> >qooxdoo-devel mailing list >> >> >[email protected] >> >> >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> >> >> >> >> >> >> >> >> --- -- >> >>- >> >> AppSumo Presents a FREE Video for the SourceForge Community by Eric >> >> Ries, the creator of the Lean Startup Methodology on "Lean Startup >> >> Secrets Revealed." This video
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Great!, thank you :) I check the update, one question, probably is a my error, but i have two similar class, one work, but the other return an error that i'm tring to find, "invalid ServerId 2,1,0 specified: Called assertTrue with 'false'.. i thought that can be a variable with a reserved name in my code, the number 2,1,0 can be a my sets of integer, but i don't use it as serverId. Sp Il giorno lun, 18/07/2011 alle 11.39 +0100, John Spackman ha scritto: > Hi Simone > > That's fixed too, just committed a fix and unit test > > John > > On 15/07/2011 09:32, "Simone Pandolfo" wrote: > > >Thank you John, I have downloaded the new revision and i'm going to test > >it, I have some doubt about the return of some kind of data, before i > >tell you that integer value return null when the value is 0, also for > >boolean the return value is true/null instead of true/false, in some > >case this may be a problem. > > > >Thank you for suport > > > >Sp > > > >Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha scritto: > >> I found a bug where creating objects on the client and then passing them > >> as an array caused an exception - that's fixed with the latest revision > >> 21302, and I've added it to the demoapp > >> > >> John > >> > >> On 14/07/2011 13:44, "Simone Pandolfo" wrote: > >> > >> >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto: > >> >> Hi Simone > >> >> > >> >> >I get most of the tutorial working, at the moment i'm tring to > >> >> >understand Collections and Arrays. > >> >> > > >> >> >At the moment if i change some data in the java class i don't see > >>the > >> >> >change in javascript side. > >> >> > >> >> Are you changing the Java array or changing one of the objects in the > >> >> array? The objects in the array must implement the Proxied > >> >> Interface. > >> >> > >> >For the change of the value i have resolved, i miss to include > >> >ProxyManager.changeProperty() > >> > > >> >But of i want send to the backend an array of objects, > >> > > >> >like: > >> > > >> >var var1 = new com.project.serverobject.ExampleClass(); > >> >var var2 = new com.project.serverobject.ExampleClass(); > >> > > >> >var return = this.boot.testArray([var1,var2]); > >> > > >> >The serverobject itself don't work anymore, and result undefined. > >> > > >> >how i can send to the backend an array of custom objects? > >> > > >> >Thanks > >> > > >> >Sp > >> > > >> > > >> > > >> > > >> >> >Another question, the comunication is syncronus, for make Async i > >>need > >> >> >to make a thread in java right? > >> >> > >> >> No - the communication is driven from the client and goes over normal > >> >>HTTP > >> >> so Tomcat will provide the thread for you. The client will always > >>make > >> >> synchronous calls to the server, but as much as possible it > >> >>queues/caches > >> >> changes to minimise network trips. > >> >> > >> >> John > >> >> > >> >> > >> >> > >> >> > >> >> > >> > --- > -- > >> >>- > >> >> AppSumo Presents a FREE Video for the SourceForge Community by Eric > >> >> Ries, the creator of the Lean Startup Methodology on "Lean Startup > >> >> Secrets Revealed." This video shows you how to validate your ideas, > >> >> optimize your ideas and identify your business strategy. > >> >> http://p.sf.net/sfu/appsumosfdev2dev > >> >> ___ > >> >> qooxdoo-devel mailing list > >> >> [email protected] > >> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >> >> > >> > > >> >-- > >> >Erreedi Srl > >> >Tel. 06.7900639 > >> >Fax 06.79840900 > >> >e-mail: [email protected] > >> >-- > >> > > >> > > >> > >>> > >>>-- > >> > > >> >AppSumo Presents a FREE Video for the SourceForge Community by Eric > >> >Ries, the creator of the Lean Startup Methodology on "Lean Startup > >> >Secrets Revealed." This video shows you how to validate your ideas, > >> >optimize your ideas and identify your business strategy. > >> >http://p.sf.net/sfu/appsumosfdev2dev > >> >___ > >> >qooxdoo-devel mailing list > >> >[email protected] > >> >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >> > >> > >> > >> > >> > >>- > >>- > >> AppSumo Presents a FREE Video for the SourceForge Community by Eric > >> Ries, the creator of the Lean Startup Methodology on "Lean Startup > >> Secrets Revealed." This video shows you how to validate your ideas, > >> optimize your ideas and identify your business strategy. > >> http://p.sf.net/sfu/appsumosfdev2dev > >> ___ > >> qooxdoo-devel mailing list > >> [email protected] > >> https://lists.sourceforge.n
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone That's fixed too, just committed a fix and unit test John On 15/07/2011 09:32, "Simone Pandolfo" wrote: >Thank you John, I have downloaded the new revision and i'm going to test >it, I have some doubt about the return of some kind of data, before i >tell you that integer value return null when the value is 0, also for >boolean the return value is true/null instead of true/false, in some >case this may be a problem. > >Thank you for suport > >Sp > >Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha scritto: >> I found a bug where creating objects on the client and then passing them >> as an array caused an exception - that's fixed with the latest revision >> 21302, and I've added it to the demoapp >> >> John >> >> On 14/07/2011 13:44, "Simone Pandolfo" wrote: >> >> >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto: >> >> Hi Simone >> >> >> >> >I get most of the tutorial working, at the moment i'm tring to >> >> >understand Collections and Arrays. >> >> > >> >> >At the moment if i change some data in the java class i don't see >>the >> >> >change in javascript side. >> >> >> >> Are you changing the Java array or changing one of the objects in the >> >> array? The objects in the array must implement the Proxied >> >> Interface. >> >> >> >For the change of the value i have resolved, i miss to include >> >ProxyManager.changeProperty() >> > >> >But of i want send to the backend an array of objects, >> > >> >like: >> > >> >var var1 = new com.project.serverobject.ExampleClass(); >> >var var2 = new com.project.serverobject.ExampleClass(); >> > >> >var return = this.boot.testArray([var1,var2]); >> > >> >The serverobject itself don't work anymore, and result undefined. >> > >> >how i can send to the backend an array of custom objects? >> > >> >Thanks >> > >> >Sp >> > >> > >> > >> > >> >> >Another question, the comunication is syncronus, for make Async i >>need >> >> >to make a thread in java right? >> >> >> >> No - the communication is driven from the client and goes over normal >> >>HTTP >> >> so Tomcat will provide the thread for you. The client will always >>make >> >> synchronous calls to the server, but as much as possible it >> >>queues/caches >> >> changes to minimise network trips. >> >> >> >> John >> >> >> >> >> >> >> >> >> >> >> --- -- >> >>- >> >> AppSumo Presents a FREE Video for the SourceForge Community by Eric >> >> Ries, the creator of the Lean Startup Methodology on "Lean Startup >> >> Secrets Revealed." This video shows you how to validate your ideas, >> >> optimize your ideas and identify your business strategy. >> >> http://p.sf.net/sfu/appsumosfdev2dev >> >> ___ >> >> qooxdoo-devel mailing list >> >> [email protected] >> >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> > >> >-- >> >Erreedi Srl >> >Tel. 06.7900639 >> >Fax 06.79840900 >> >e-mail: [email protected] >> >-- >> > >> > >> >>> >>>-- >> > >> >AppSumo Presents a FREE Video for the SourceForge Community by Eric >> >Ries, the creator of the Lean Startup Methodology on "Lean Startup >> >Secrets Revealed." This video shows you how to validate your ideas, >> >optimize your ideas and identify your business strategy. >> >http://p.sf.net/sfu/appsumosfdev2dev >> >___ >> >qooxdoo-devel mailing list >> >[email protected] >> >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> >> >> >> >> >>- >>- >> AppSumo Presents a FREE Video for the SourceForge Community by Eric >> Ries, the creator of the Lean Startup Methodology on "Lean Startup >> Secrets Revealed." This video shows you how to validate your ideas, >> optimize your ideas and identify your business strategy. >> http://p.sf.net/sfu/appsumosfdev2dev >> ___ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > >-- >Erreedi Srl >Tel. 06.7900639 >Fax 06.79840900 >e-mail: [email protected] >-- > > >-- > >AppSumo Presents a FREE Video for the SourceForge Community by Eric >Ries, the creator of the Lean Startup Methodology on "Lean Startup >Secrets Revealed." This video shows you how to validate your ideas, >optimize your ideas and identify your business strategy. >http://p.sf.net/sfu/appsumosfdev2dev >___ >qooxdoo-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel --
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Thank you John, I have downloaded the new revision and i'm going to test it, I have some doubt about the return of some kind of data, before i tell you that integer value return null when the value is 0, also for boolean the return value is true/null instead of true/false, in some case this may be a problem. Thank you for suport Sp Il giorno gio, 14/07/2011 alle 18.26 +0100, John Spackman ha scritto: > I found a bug where creating objects on the client and then passing them > as an array caused an exception - that's fixed with the latest revision > 21302, and I've added it to the demoapp > > John > > On 14/07/2011 13:44, "Simone Pandolfo" wrote: > > >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto: > >> Hi Simone > >> > >> >I get most of the tutorial working, at the moment i'm tring to > >> >understand Collections and Arrays. > >> > > >> >At the moment if i change some data in the java class i don't see the > >> >change in javascript side. > >> > >> Are you changing the Java array or changing one of the objects in the > >> array? The objects in the array must implement the Proxied > >> Interface. > >> > >For the change of the value i have resolved, i miss to include > >ProxyManager.changeProperty() > > > >But of i want send to the backend an array of objects, > > > >like: > > > >var var1 = new com.project.serverobject.ExampleClass(); > >var var2 = new com.project.serverobject.ExampleClass(); > > > >var return = this.boot.testArray([var1,var2]); > > > >The serverobject itself don't work anymore, and result undefined. > > > >how i can send to the backend an array of custom objects? > > > >Thanks > > > >Sp > > > > > > > > > >> >Another question, the comunication is syncronus, for make Async i need > >> >to make a thread in java right? > >> > >> No - the communication is driven from the client and goes over normal > >>HTTP > >> so Tomcat will provide the thread for you. The client will always make > >> synchronous calls to the server, but as much as possible it > >>queues/caches > >> changes to minimise network trips. > >> > >> John > >> > >> > >> > >> > >> > >>- > >>- > >> AppSumo Presents a FREE Video for the SourceForge Community by Eric > >> Ries, the creator of the Lean Startup Methodology on "Lean Startup > >> Secrets Revealed." This video shows you how to validate your ideas, > >> optimize your ideas and identify your business strategy. > >> http://p.sf.net/sfu/appsumosfdev2dev > >> ___ > >> qooxdoo-devel mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >> > > > >-- > >Erreedi Srl > >Tel. 06.7900639 > >Fax 06.79840900 > >e-mail: [email protected] > >-- > > > > > >-- > > > >AppSumo Presents a FREE Video for the SourceForge Community by Eric > >Ries, the creator of the Lean Startup Methodology on "Lean Startup > >Secrets Revealed." This video shows you how to validate your ideas, > >optimize your ideas and identify your business strategy. > >http://p.sf.net/sfu/appsumosfdev2dev > >___ > >qooxdoo-devel mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > -- > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > ___ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
I found a bug where creating objects on the client and then passing them as an array caused an exception - that's fixed with the latest revision 21302, and I've added it to the demoapp John On 14/07/2011 13:44, "Simone Pandolfo" wrote: >Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto: >> Hi Simone >> >> >I get most of the tutorial working, at the moment i'm tring to >> >understand Collections and Arrays. >> > >> >At the moment if i change some data in the java class i don't see the >> >change in javascript side. >> >> Are you changing the Java array or changing one of the objects in the >> array? The objects in the array must implement the Proxied >> Interface. >> >For the change of the value i have resolved, i miss to include >ProxyManager.changeProperty() > >But of i want send to the backend an array of objects, > >like: > >var var1 = new com.project.serverobject.ExampleClass(); >var var2 = new com.project.serverobject.ExampleClass(); > >var return = this.boot.testArray([var1,var2]); > >The serverobject itself don't work anymore, and result undefined. > >how i can send to the backend an array of custom objects? > >Thanks > >Sp > > > > >> >Another question, the comunication is syncronus, for make Async i need >> >to make a thread in java right? >> >> No - the communication is driven from the client and goes over normal >>HTTP >> so Tomcat will provide the thread for you. The client will always make >> synchronous calls to the server, but as much as possible it >>queues/caches >> changes to minimise network trips. >> >> John >> >> >> >> >> >>- >>- >> AppSumo Presents a FREE Video for the SourceForge Community by Eric >> Ries, the creator of the Lean Startup Methodology on "Lean Startup >> Secrets Revealed." This video shows you how to validate your ideas, >> optimize your ideas and identify your business strategy. >> http://p.sf.net/sfu/appsumosfdev2dev >> ___ >> qooxdoo-devel mailing list >> [email protected] >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel >> > >-- >Erreedi Srl >Tel. 06.7900639 >Fax 06.79840900 >e-mail: [email protected] >-- > > >-- > >AppSumo Presents a FREE Video for the SourceForge Community by Eric >Ries, the creator of the Lean Startup Methodology on "Lean Startup >Secrets Revealed." This video shows you how to validate your ideas, >optimize your ideas and identify your business strategy. >http://p.sf.net/sfu/appsumosfdev2dev >___ >qooxdoo-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone
Do you get an exception on the server when the example below runs? (EG a
NullPointerException because collezioni is not initialised)
I've added your code to the demo webapp and it works (although I added a
constructor to Pippo to initialise collezioni); I've committed the changes
and you'll find Pippo in src/test/com/zenesis/qx/remote/test/simple
John
On 14/07/2011 16:01, "Simone Pandolfo" wrote:
>i try this:
>
> JAVA ===
>public class Pippo implements Proxied {
>
> @Property
> private String name;
>
> @Property(onDemand=true,arrayType=Pippo.class)
> private ArrayList collezioni;
>
>@Method
>public ArrayList getExampleCode(){
>Pippo prova1 = new Pippo();
> prova1.setName("prova1");
>Pippo prova2 = new Pippo();
> prova2.setName("prova2");
>collezioni.add(prova1);
>collezioni.add(prova2);
>return collezioni;
>}
>
>[...]
>
>}
>==
>
> QOOXDOO =
> var prova = new it.project.serverobject.Pippo();
> console.log(prova.getExampleCode()); // return an empty array!
>==
>
>but prova.getExampleCode() return an empty array, what i miss/wrong?
>
>Regards
> Sp
>
>
>Il giorno gio, 14/07/2011 alle 14.44 +0200, Simone Pandolfo ha scritto:
>> Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto:
>> > Hi Simone
>> >
>> > >I get most of the tutorial working, at the moment i'm tring to
>> > >understand Collections and Arrays.
>> > >
>> > >At the moment if i change some data in the java class i don't see the
>> > >change in javascript side.
>> >
>> > Are you changing the Java array or changing one of the objects in the
>> > array? The objects in the array must implement the Proxied
>> > Interface.
>> >
>> For the change of the value i have resolved, i miss to include
>> ProxyManager.changeProperty()
>>
>> But of i want send to the backend an array of objects,
>>
>> like:
>>
>> var var1 = new com.project.serverobject.ExampleClass();
>> var var2 = new com.project.serverobject.ExampleClass();
>>
>> var return = this.boot.testArray([var1,var2]);
>>
>> The serverobject itself don't work anymore, and result undefined.
>>
>> how i can send to the backend an array of custom objects?
>>
>> Thanks
>>
>> Sp
>>
>>
>>
>>
>> > >Another question, the comunication is syncronus, for make Async i
>>need
>> > >to make a thread in java right?
>> >
>> > No - the communication is driven from the client and goes over normal
>>HTTP
>> > so Tomcat will provide the thread for you. The client will always
>>make
>> > synchronous calls to the server, but as much as possible it
>>queues/caches
>> > changes to minimise network trips.
>> >
>> > John
>> >
>> >
>> >
>> >
>> >
>>-
>>-
>> > AppSumo Presents a FREE Video for the SourceForge Community by Eric
>> > Ries, the creator of the Lean Startup Methodology on "Lean Startup
>> > Secrets Revealed." This video shows you how to validate your ideas,
>> > optimize your ideas and identify your business strategy.
>> > http://p.sf.net/sfu/appsumosfdev2dev
>> > ___
>> > qooxdoo-devel mailing list
>> > [email protected]
>> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>> >
>>
>
>--
>Erreedi Srl
>Tel. 06.7900639
>Fax 06.79840900
>e-mail: [email protected]
>--
>
>
>--
>
>AppSumo Presents a FREE Video for the SourceForge Community by Eric
>Ries, the creator of the Lean Startup Methodology on "Lean Startup
>Secrets Revealed." This video shows you how to validate your ideas,
>optimize your ideas and identify your business strategy.
>http://p.sf.net/sfu/appsumosfdev2dev
>___
>qooxdoo-devel mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
i try this:
JAVA ===
public class Pippo implements Proxied {
@Property
private String name;
@Property(onDemand=true,arrayType=Pippo.class)
private ArrayList collezioni;
@Method
public ArrayList getExampleCode(){
Pippo prova1 = new Pippo();
prova1.setName("prova1");
Pippo prova2 = new Pippo();
prova2.setName("prova2");
collezioni.add(prova1);
collezioni.add(prova2);
return collezioni;
}
[...]
}
==
QOOXDOO =
var prova = new it.project.serverobject.Pippo();
console.log(prova.getExampleCode()); // return an empty array!
==
but prova.getExampleCode() return an empty array, what i miss/wrong?
Regards
Sp
Il giorno gio, 14/07/2011 alle 14.44 +0200, Simone Pandolfo ha scritto:
> Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto:
> > Hi Simone
> >
> > >I get most of the tutorial working, at the moment i'm tring to
> > >understand Collections and Arrays.
> > >
> > >At the moment if i change some data in the java class i don't see the
> > >change in javascript side.
> >
> > Are you changing the Java array or changing one of the objects in the
> > array? The objects in the array must implement the Proxied
> > Interface.
> >
> For the change of the value i have resolved, i miss to include
> ProxyManager.changeProperty()
>
> But of i want send to the backend an array of objects,
>
> like:
>
> var var1 = new com.project.serverobject.ExampleClass();
> var var2 = new com.project.serverobject.ExampleClass();
>
> var return = this.boot.testArray([var1,var2]);
>
> The serverobject itself don't work anymore, and result undefined.
>
> how i can send to the backend an array of custom objects?
>
> Thanks
>
> Sp
>
>
>
>
> > >Another question, the comunication is syncronus, for make Async i need
> > >to make a thread in java right?
> >
> > No - the communication is driven from the client and goes over normal HTTP
> > so Tomcat will provide the thread for you. The client will always make
> > synchronous calls to the server, but as much as possible it queues/caches
> > changes to minimise network trips.
> >
> > John
> >
> >
> >
> >
> > --
> > AppSumo Presents a FREE Video for the SourceForge Community by Eric
> > Ries, the creator of the Lean Startup Methodology on "Lean Startup
> > Secrets Revealed." This video shows you how to validate your ideas,
> > optimize your ideas and identify your business strategy.
> > http://p.sf.net/sfu/appsumosfdev2dev
> > ___
> > qooxdoo-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> >
>
--
Erreedi Srl
Tel. 06.7900639
Fax 06.79840900
e-mail: [email protected]
--
--
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Il giorno gio, 14/07/2011 alle 11.47 +0100, John Spackman ha scritto: > Hi Simone > > >I get most of the tutorial working, at the moment i'm tring to > >understand Collections and Arrays. > > > >At the moment if i change some data in the java class i don't see the > >change in javascript side. > > Are you changing the Java array or changing one of the objects in the > array? The objects in the array must implement the Proxied > Interface. > For the change of the value i have resolved, i miss to include ProxyManager.changeProperty() But of i want send to the backend an array of objects, like: var var1 = new com.project.serverobject.ExampleClass(); var var2 = new com.project.serverobject.ExampleClass(); var return = this.boot.testArray([var1,var2]); The serverobject itself don't work anymore, and result undefined. how i can send to the backend an array of custom objects? Thanks Sp > >Another question, the comunication is syncronus, for make Async i need > >to make a thread in java right? > > No - the communication is driven from the client and goes over normal HTTP > so Tomcat will provide the thread for you. The client will always make > synchronous calls to the server, but as much as possible it queues/caches > changes to minimise network trips. > > John > > > > > -- > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > ___ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone >I get most of the tutorial working, at the moment i'm tring to >understand Collections and Arrays. > >At the moment if i change some data in the java class i don't see the >change in javascript side. Are you changing the Java array or changing one of the objects in the array? The objects in the array must implement the Proxied Interface. >Another question, the comunication is syncronus, for make Async i need >to make a thread in java right? No - the communication is driven from the client and goes over normal HTTP so Tomcat will provide the thread for you. The client will always make synchronous calls to the server, but as much as possible it queues/caches changes to minimise network trips. John -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Il giorno gio, 14/07/2011 alle 10.28 +0100, John Spackman ha scritto: Hi John, Thank you!, i check both :) >How far have you got? Did you get the tutorial working? I get most of the tutorial working, at the moment i'm tring to understand Collections and Arrays. At the moment if i change some data in the java class i don't see the change in javascript side. Another question, the comunication is syncronus, for make Async i need to make a thread in java right? Regards Sp > Hi again Simone > > I've updated the tutorial at > http://qooxdoo.org/contrib/project/serverobjects/tutorial that may help > explain things. There's also an update to the code in SVN so please check > out the code before trying it. > > John > > On 14/07/2011 08:46, "John Spackman" wrote: > > >Hi Simone > > > >>I have tried the contrib and i have to congrats with you, probably is > >>the best backend for qooxdoo that i have tested, but despite the > >>documentation, is not so simple. > > > >Glad you like it :) > > > >>I have get it working but i have some problem (many of them because of > >>my little knowledge of java / eclipse). > >> > >>I'm replacing a python backend, and the managment of the array in java > >>is make me crazy. > >> > >>The biggest problem is if i call a serverlet method and pass an array as > >>parameters, the interger 0 result as null, i try a lot of things, but no > >>luck. > > > >What does the server method look like? EG is the array of parameters an > >array of primitive types such as numbers, strings etc or is it an array of > >objects? > > > >>I'm also trying to understand how to transfer classes, interface e so > >>on. > > > >That happens automatically - your Java classes need to implement the > >Proxied interface and the class and interface definitions will be > >transferred on demand to the server. > > > >>I almost understand how objects move from server and client, but i have > >>some doubt how to manage the FireEvent. > > > >How far have you got? Did you get the tutorial working? > > > >John > > > > > > > > > >-- > > > >AppSumo Presents a FREE Video for the SourceForge Community by Eric > >Ries, the creator of the Lean Startup Methodology on "Lean Startup > >Secrets Revealed." This video shows you how to validate your ideas, > >optimize your ideas and identify your business strategy. > >http://p.sf.net/sfu/appsumosfdev2dev > >___ > >qooxdoo-devel mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > -- > AppSumo Presents a FREE Video for the SourceForge Community by Eric > Ries, the creator of the Lean Startup Methodology on "Lean Startup > Secrets Revealed." This video shows you how to validate your ideas, > optimize your ideas and identify your business strategy. > http://p.sf.net/sfu/appsumosfdev2dev > ___ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi again Simone I've updated the tutorial at http://qooxdoo.org/contrib/project/serverobjects/tutorial that may help explain things. There's also an update to the code in SVN so please check out the code before trying it. John On 14/07/2011 08:46, "John Spackman" wrote: >Hi Simone > >>I have tried the contrib and i have to congrats with you, probably is >>the best backend for qooxdoo that i have tested, but despite the >>documentation, is not so simple. > >Glad you like it :) > >>I have get it working but i have some problem (many of them because of >>my little knowledge of java / eclipse). >> >>I'm replacing a python backend, and the managment of the array in java >>is make me crazy. >> >>The biggest problem is if i call a serverlet method and pass an array as >>parameters, the interger 0 result as null, i try a lot of things, but no >>luck. > >What does the server method look like? EG is the array of parameters an >array of primitive types such as numbers, strings etc or is it an array of >objects? > >>I'm also trying to understand how to transfer classes, interface e so >>on. > >That happens automatically - your Java classes need to implement the >Proxied interface and the class and interface definitions will be >transferred on demand to the server. > >>I almost understand how objects move from server and client, but i have >>some doubt how to manage the FireEvent. > >How far have you got? Did you get the tutorial working? > >John > > > > >-- > >AppSumo Presents a FREE Video for the SourceForge Community by Eric >Ries, the creator of the Lean Startup Methodology on "Lean Startup >Secrets Revealed." This video shows you how to validate your ideas, >optimize your ideas and identify your business strategy. >http://p.sf.net/sfu/appsumosfdev2dev >___ >qooxdoo-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone >I have tried the contrib and i have to congrats with you, probably is >the best backend for qooxdoo that i have tested, but despite the >documentation, is not so simple. Glad you like it :) >I have get it working but i have some problem (many of them because of >my little knowledge of java / eclipse). > >I'm replacing a python backend, and the managment of the array in java >is make me crazy. > >The biggest problem is if i call a serverlet method and pass an array as >parameters, the interger 0 result as null, i try a lot of things, but no >luck. What does the server method look like? EG is the array of parameters an array of primitive types such as numbers, strings etc or is it an array of objects? >I'm also trying to understand how to transfer classes, interface e so >on. That happens automatically - your Java classes need to implement the Proxied interface and the class and interface definitions will be transferred on demand to the server. >I almost understand how objects move from server and client, but i have >some doubt how to manage the FireEvent. How far have you got? Did you get the tutorial working? John -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Jonh, I have tried the contrib and i have to congrats with you, probably is the best backend for qooxdoo that i have tested, but despite the documentation, is not so simple. I have get it working but i have some problem (many of them because of my little knowledge of java / eclipse). I'm replacing a python backend, and the managment of the array in java is make me crazy. The biggest problem is if i call a serverlet method and pass an array as parameters, the interger 0 result as null, i try a lot of things, but no luck. I'm also trying to understand how to transfer classes, interface e so on. I almost understand how objects move from server and client, but i have some doubt how to manage the FireEvent. but with the old method to pass a lot of array, i need to rewrite a lot of things, and this don't help to understand your contrib. Any suggestion? Regards Sp Il giorno lun, 13/06/2011 alle 12.44 +0100, John Spackman ha scritto: > Hi Simone > > Have you tried the ServerObjects contrib > (http://qooxdoo.org/contrib/project/serverobjects)? As well as calling > methods on the server (ie RPC) you can transfer classes, interfaces, > objects and properties, you can fine-tune what's accessible from the > client, and there's a tutorial and example in the contrib wiki. > > John > > On 10/06/2011 15:09, "Simone Pandolfo" wrote: > > >Hi have installed tomcat, the deploy work but the error is the same 500 > >transport error, what can i do? > > > >Regards > > Sp > > > >Il giorno ven, 10/06/2011 alle 14.33 +0200, Simone Pandolfo ha scritto: > >> Hi All, > >> > >> I'm training to make a java backend. > >> > >> I have dowloaded the contrib: http://qooxdoo.org/contrib/project/rpcjava > >> as is often the documentation is not updated to latest version, and > >> after i have deployed the WAR the link for the test don't exist: > >> > >> http://localhost:8080/qooxdoo/sample/html/test/RPC_1.html > >> > >> For try the rpc backend i have dowloaded the RpcExample: > >> > >> http://qooxdoo.org/contrib/project/rpcexample > >> > >> Modified the build.xml for include the rpcexample > >> > >> Deployed again, but i got this error message: > >> > >> Async(1) exception: Transport error 0: Unknown status code. Possibly due > >> to a cross-domain request?Are you sure you configured > >> rpcexample.RemoteDataModel.URL and rpcexample.RemoteDataModel.SERVICE? > >> > >> the original URL was "../../RpcPhp/1.2.0/services/index.php" > >> I try to insert: ../.qxrpc > >> > >> The server return a 500 error, but i can't find any information how to > >> understand why, or how to create and test an RpcJava backend. > >> > >> Any hits? > >> > >> I have deployed the war in a OC4J enviroment. > >> > >> best Regards > >> Sp > >> > >> > > > >-- > >Erreedi Srl > >Tel. 06.7900639 > >Fax 06.79840900 > >e-mail: [email protected] > >-- > > > > > >-- > > > >EditLive Enterprise is the world's most technically advanced content > >authoring tool. Experience the power of Track Changes, Inline Image > >Editing and ensure content is compliant with Accessibility Checking. > >http://p.sf.net/sfu/ephox-dev2dev > >___ > >qooxdoo-devel mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > -- > EditLive Enterprise is the world's most technically advanced content > authoring tool. Experience the power of Track Changes, Inline Image > Editing and ensure content is compliant with Accessibility Checking. > http://p.sf.net/sfu/ephox-dev2dev > ___ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- AppSumo Presents a FREE Video for the SourceForge Community by Eric Ries, the creator of the Lean Startup Methodology on "Lean Startup Secrets Revealed." This video shows you how to validate your ideas, optimize your ideas and identify your business strategy. http://p.sf.net/sfu/appsumosfdev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi Simone Have you tried the ServerObjects contrib (http://qooxdoo.org/contrib/project/serverobjects)? As well as calling methods on the server (ie RPC) you can transfer classes, interfaces, objects and properties, you can fine-tune what's accessible from the client, and there's a tutorial and example in the contrib wiki. John On 10/06/2011 15:09, "Simone Pandolfo" wrote: >Hi have installed tomcat, the deploy work but the error is the same 500 >transport error, what can i do? > >Regards > Sp > >Il giorno ven, 10/06/2011 alle 14.33 +0200, Simone Pandolfo ha scritto: >> Hi All, >> >> I'm training to make a java backend. >> >> I have dowloaded the contrib: http://qooxdoo.org/contrib/project/rpcjava >> as is often the documentation is not updated to latest version, and >> after i have deployed the WAR the link for the test don't exist: >> >> http://localhost:8080/qooxdoo/sample/html/test/RPC_1.html >> >> For try the rpc backend i have dowloaded the RpcExample: >> >> http://qooxdoo.org/contrib/project/rpcexample >> >> Modified the build.xml for include the rpcexample >> >> Deployed again, but i got this error message: >> >> Async(1) exception: Transport error 0: Unknown status code. Possibly due >> to a cross-domain request?Are you sure you configured >> rpcexample.RemoteDataModel.URL and rpcexample.RemoteDataModel.SERVICE? >> >> the original URL was "../../RpcPhp/1.2.0/services/index.php" >> I try to insert: ../.qxrpc >> >> The server return a 500 error, but i can't find any information how to >> understand why, or how to create and test an RpcJava backend. >> >> Any hits? >> >> I have deployed the war in a OC4J enviroment. >> >> best Regards >> Sp >> >> > >-- >Erreedi Srl >Tel. 06.7900639 >Fax 06.79840900 >e-mail: [email protected] >-- > > >-- > >EditLive Enterprise is the world's most technically advanced content >authoring tool. Experience the power of Track Changes, Inline Image >Editing and ensure content is compliant with Accessibility Checking. >http://p.sf.net/sfu/ephox-dev2dev >___ >qooxdoo-devel mailing list >[email protected] >https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Trining to debug i get this error in the tomcat's log: 10-giu-2011 17.16.34 org.apache.catalina.core.StandardWrapperValve invoke GRAVE: Servlet.service() for servlet rpc threw exception java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.beanutils.MethodUtils at net.sf.qooxdoo.rpc.RpcServlet.getServiceInstance(RpcServlet.java:136) at net.sf.qooxdoo.rpc.RpcServlet.handleRPC(RpcServlet.java:351) at net.sf.qooxdoo.rpc.RpcServlet.doPost(RpcServlet.java:465) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857) at org.apache.coyote.http11.Http11Protocol $Http11ConnectionHandler.process(Http11Protocol.java:588) at org.apache.tomcat.util.net.JIoEndpoint $Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:679) But in the build.xml the libraries are included. in the WAR file under WEB-INF/lib are present commons-beanutils-1.6.1.jar commons-collections-2.1.jar the version of tomcat is: Apache Tomcat/6.0.28 anyone with the same problem? Sp Il giorno ven, 10/06/2011 alle 14.33 +0200, Simone Pandolfo ha scritto: > Hi All, > > I'm training to make a java backend. > > I have dowloaded the contrib: http://qooxdoo.org/contrib/project/rpcjava > as is often the documentation is not updated to latest version, and > after i have deployed the WAR the link for the test don't exist: > > http://localhost:8080/qooxdoo/sample/html/test/RPC_1.html > > For try the rpc backend i have dowloaded the RpcExample: > > http://qooxdoo.org/contrib/project/rpcexample > > Modified the build.xml for include the rpcexample > > Deployed again, but i got this error message: > > Async(1) exception: Transport error 0: Unknown status code. Possibly due > to a cross-domain request?Are you sure you configured > rpcexample.RemoteDataModel.URL and rpcexample.RemoteDataModel.SERVICE? > > the original URL was "../../RpcPhp/1.2.0/services/index.php" > I try to insert: ../.qxrpc > > The server return a 500 error, but i can't find any information how to > understand why, or how to create and test an RpcJava backend. > > Any hits? > > I have deployed the war in a OC4J enviroment. > > best Regards > Sp > > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
Re: [qooxdoo-devel] RpcExample and RpcJava, How make it working?
Hi have installed tomcat, the deploy work but the error is the same 500 transport error, what can i do? Regards Sp Il giorno ven, 10/06/2011 alle 14.33 +0200, Simone Pandolfo ha scritto: > Hi All, > > I'm training to make a java backend. > > I have dowloaded the contrib: http://qooxdoo.org/contrib/project/rpcjava > as is often the documentation is not updated to latest version, and > after i have deployed the WAR the link for the test don't exist: > > http://localhost:8080/qooxdoo/sample/html/test/RPC_1.html > > For try the rpc backend i have dowloaded the RpcExample: > > http://qooxdoo.org/contrib/project/rpcexample > > Modified the build.xml for include the rpcexample > > Deployed again, but i got this error message: > > Async(1) exception: Transport error 0: Unknown status code. Possibly due > to a cross-domain request?Are you sure you configured > rpcexample.RemoteDataModel.URL and rpcexample.RemoteDataModel.SERVICE? > > the original URL was "../../RpcPhp/1.2.0/services/index.php" > I try to insert: ../.qxrpc > > The server return a 500 error, but i can't find any information how to > understand why, or how to create and test an RpcJava backend. > > Any hits? > > I have deployed the war in a OC4J enviroment. > > best Regards > Sp > > -- Erreedi Srl Tel. 06.7900639 Fax 06.79840900 e-mail: [email protected] -- -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
