PDA

View Full Version : UI stops responding


sgv
04-30-2008, 01:58 PM
I have an application running open laszlo 4.0.10 proxied against a grails(hibernate) backend server. Laszlo code is compiled to swf8. (_not_ a dhtml issue)
My problem occurs during dataset.doRequest(): the user clicks too many times, hibernate throws an exception because there is more than one object on the session with the same id being passed to saveOrUpdate and I get an internal server 500 error in the laszlo debug window. The UI stops responding.
I looked at an open bug which is similar but seems to be caused by the request queue not unloading.
I have added the onerror handler to the dataset to unload requests from the LzLoadQueue if there are any at this point. I also added a timeout for requests. They are not timing out. The queuerequests attr is not set on the dataset as it slowed down the UI too much when I did.

I am using fiddler, firebug, server logging, and debug statements to no avail. Can anyone recommend a way to figure out what exactly is wrong and how to make the UI start responding again? :o

madtux666
05-01-2008, 01:57 AM
Hi,

I just have not enough experience to answer for your question, but it looks like problem is caused by requesting server too many times, so why you will not limit it, for example:

1. when user clicks "submit" button, fire your own event, lets say "onPending", and block button when waiting for "ondata" event

2. when data arrives just simply release button and perform proper actions,


I hope this helps.


Regards,
Madtux