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" <john-li...@zenesis.com> 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
> >qooxdoo-devel@lists.sourceforge.net
> >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
> qooxdoo-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
> 

-- 
Erreedi Srl
Tel. 06.7900639
Fax 06.79840900
e-mail: s.pando...@erreedi.it
------------------------------


------------------------------------------------------------------------------
10 Tips for Better Web Security
Learn 10 ways to better secure your business today. Topics covered include:
Web security, SSL, hacker attacks & Denial of Service (DoS), private keys,
security Microsoft Exchange, secure Instant Messaging, and much more.
http://www.accelacomm.com/jaw/sfnl/114/51426210/
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to