hi janak,

thanks for your solution.

the pictures are not very big but in this case even small pictures slow down 
too much.
for example the customer can browse through employees. then you are very 
insterested in the name for example
but if the picture is loaded later it doesn't matter. the picture should only 
been shown when he is staying at
a specific employee a while.

number one is not feasible because the images come out of a database.
number two i like more but the problem is fining a smart chunksize because it 
this case
the size would depend on the speed of the net...

so our solution we will implement in this case is a own servlet which is only 
for providing asynchronus pictures,
we can load these directly on the client in an own thread...

thanks for your investigations.

regards
  Dejan                            
mailto:[EMAIL PROTECTED]

Wednesday, August 30, 2006, 7:30:46 AM, you wrote:

JM> Hi Dejan,

JM> How big is your image? When the icon is uploaded it will have to upload the
JM> image too and the time taken will depend on the size of the image and the
JM> available network bandwidth.


JM> I can think of two other solutions that entail extending ULC:

JM> 1. If you have fixed set of images, then you can put them in a jar and
JM> deploy them on the client along with ULC's client side jars. You can then
JM> extend ULCIcon or ULCLabel to read and set images from the client itself.

JM> 2. You can break up you image file into set of bytes and upload it
JM> asynchronously part by part. You could use the the progress pane (
JM> http://ulc-community.canoo.com/snipsnap/space/Contributions/Extensions/Progr
JM> ess+Pane ) contribution on the community. You can extend ULCLabel or ULCIcon
JM> which can upload the image part by part or use the progress pane that
JM> uploads the parts and finally makes the image visible.

JM> I hope this helps.

JM> Thanks and regards,

JM> Janak

>>-----Original Message-----
>>From: [EMAIL PROTECTED]
>>[mailto:[EMAIL PROTECTED] Behalf Of Dejan Pecar
>>Sent: Friday, August 25, 2006 5:51 PM
>>To: Janak Mulani
>>Cc: [email protected]
>>Subject: Re[2]: [ULC-developer] asynchronous image loading...
>>
>>
>>hi janak,
>>
>>i tried both ways already but it does not work the way i want.
>>
>>the main problem ist while the picture is sent ulc client freezes.
>>no matter if the event is asynchronous or not.
>>
>>regards
>>  Dejan
>>mailto:[EMAIL PROTECTED]
>>
>>Friday, August 25, 2006, 2:08:18 PM, you wrote:
>>
>>JM> Hi Dejan,
>>
>>JM> I can think of two solutions:
>>
>>JM> 1. if you are setting the icon in some event handler, then you
>>could make
>>JM> that event asynchronous.
>>
>>JM> 2. Another way could be to set the icon via a polling timer.
>>
>>JM> I hope this helps.
>>
>>JM> Thanks and regards,
>>
>>JM> Janak
>>
>>>>-----Original Message-----
>>>>From: [EMAIL PROTECTED]
>>>>[mailto:[EMAIL PROTECTED] Behalf Of Dejan Pecar
>>>>Sent: Wednesday, August 23, 2006 8:13 PM
>>>>To: [email protected]
>>>>Subject: [ULC-developer] asynchronous image loading...
>>>>
>>>>
>>>>hi,
>>>>
>>>>does anyone know a way to load pictures asynchronously. when i
>>>>take a ULCLabel and call setIcon with a big image,
>>>>the ulc client freezes until the pictures is downloaded to the
>>>>client. but i would like to have a responsive ui meanwhile.
>>>>
>>>>regards
>>>>  Dejan
>>>>mailto:[EMAIL PROTECTED]
>>>>
>>>>_______________________________________________
>>>>ULC-developer mailing list
>>>>[email protected]
>>>>http://lists.canoo.com/mailman/listinfo/ulc-developer
>>
>>_______________________________________________
>>ULC-developer mailing list
>>[email protected]
>>http://lists.canoo.com/mailman/listinfo/ulc-developer

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

Reply via email to