Hi Daniel,

>We want our application to show litte loading splashscreens during
>different undetermenistic operations (eg. saving, loading and heavy
>validations). Unfortunately we have a problem creating and showing
>ULCWindow components on server side before executing a task (eg. saving
>data). The splash only shows up a millisecond when the task is already
>completed.

>Another way sending messages ("showSplash", "hideSplash", ...) to the
>client doesnt work either, because a roundtrip is not fired after the
>client confirmed to save the data. It doesn't show up even if we call
>"splash.upload()" after we set it visible. In that way we wanted the client
>to create a JWindow splashscreen.

ULC executes the presentation logic on the server side.

The server doesnot block, it only responds to the requests from the client.

So showing the splash screen and starting you operation in the same server
roundtrip will not help.

>The third solution we thought to use, was the community snipped
>ULCProgressPane. Unfortunately we have no idea how long the tasks take, so
>we can't set the duration time. By the way, the sample client extension we
>found, uses deprecated methods.

Using the progress pane is the right approach.

Which version of ULC are you using?

The ULCProgressPane contribution on the community has been ported to ULC
6.1.

Moreover you can use ULCPollingTimer. Lets say you start you action by
pressing a button:

In the ActionListener for the button: Start PollingTimer and Show the splash
window

In the ActionListener of PollingTimer: Do your task and at the end Close the
splash window.

I hope this helps.

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Thursday, February 15, 2007 11:39 AM
>To: [email protected]
>Cc: [EMAIL PROTECTED]
>Subject: [ULC-developer] Question about using splash-screens
>
>
>
>Hello Community!
>
>We want our application to show litte loading splashscreens during
>different undetermenistic operations (eg. saving, loading and heavy
>validations). Unfortunately we have a problem creating and showing
>ULCWindow components on server side before executing a task (eg. saving
>data). The splash only shows up a millisecond when the task is already
>completed.
>
>Another way sending messages ("showSplash", "hideSplash", ...) to the
>client doesnt work either, because a roundtrip is not fired after the
>client confirmed to save the data. It doesn't show up even if we call
>"splash.upload()" after we set it visible. In that way we wanted the client
>to create a JWindow splashscreen.
>
>The third solution we thought to use, was the community snipped
>ULCProgressPane. Unfortunately we have no idea how long the tasks take, so
>we can't set the duration time. By the way, the sample client extension we
>found, uses deprecated methods.
>
>Is it possible anyway and does anyone knows a solution or hint?
>
>
>Thanks and best regards,
>
>Daniel Backhausen
>Pz"
>
>,=%
>q!2jr
>~u

_______________________________________________
ULC-developer mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/ulc-developer

Reply via email to