ZK: Force server to send updated value to peer widget

259 views Asked by At

I have a current setup where client updates a combobox value at client only (not updating the component at server).The server updates both widget and component when setValue() is done. However it does not when the existing value is the same as the one being set.

Consider the following:-

1.client-setValue('1') - values{client:'1',server:""} 
2.server-setValue("2") - values{client:'2',server:"2"}
3.client-setValue('') - values{client:'',server:"2"}  
4.server-setValue('2') - values{client:'',server:"2"}--server does not update client as the value at server is the same as the one being set.

**Forcefully updating client:-**

1.client-setValue('1') - values{client:'1',server:""} 
2.server-setValue("2") and forcefully updateclient - values{client:'2',server:"2"}
3.client-setValue('') - values{client:'',server:"2"}  
4.server-setValue('2') and forcefully update client- values{client:'2',server:"2"}

Is this anyhow possible, other than setting one garbage/irrelevant value before setting the actual value ,which would possibly have the garbage value as the latest value and will update the client.

EDIT: ZK Fiddle link

0

There are 0 answers