Hi Marco,

Default properties like color, opaque, font, border etc. of a component can
be obtained, for example, with following methods:

ClientContext.getColor("Label.foreground");
ClientContext.getColor("Label.background");

These properties are initialized when the ULC application starts. So there
is no round trip involved.

getValue() on a ULCTextField does not cause a round trip. If the value has
changed on the client, the client half object sends the dirty value as part
of the next request from the client and the server side value gets
synchronised with the client side value. There is a concept of
IDirtyDataOwner. Widgets that have properties that are likely to change on
the client  are dirty data owners and when those properties change on the
client the dirty values are flushed to the server as part of the next
request from the client so that server side properties are synchronized with
those on the client side.

Thanks and regards,

Janak

>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] Behalf Of
>[EMAIL PROTECTED]
>Sent: Monday, August 21, 2006 6:32 PM
>To: [email protected]
>Subject: [ULC-developer] backcolor client-side
>
>
>
>hi all,
>has anybody an idea how to get the actual backcolor from a
>client-side
>component, server-side without a server-roundtrip?
>
>Is this method possible, how does it work?
>ClientContext.getColor("Label.background")
>
>By the way, is getValue also causing a own serverroundtrip or how
>does
>the textfield know that the text has been changed client side?
>thx
>marco
>
>
>
>_______________________________________________
>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