ebelenwaf / openmobster

Automatically exported from code.google.com/p/openmobster
0 stars 0 forks source link

Device Side Bean Serialization omits empty strings #147

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Also can you tell me if the following issues I have are intended behaviour, 
bugs or my own faults:
When the MobileBean contains an empty string property, it is included in the 
XML that goes from the server to the device, but somehow it is not included in 
the XML going back to the server. When I make sure the property is not empty 
(assigning "-" to the empty strings) and not change anything else to the server 
or the app, the property is correctly updated.
I will have to check on the device side serialization. Do you have a workaround 
in the time being. I will include the fix soon as the next release goes out in 
a few days.

Original issue reported on code.google.com by openmobs...@gmail.com on 26 Sep 2012 at 5:26

GoogleCodeExporter commented 9 years ago
Turns out that the correct functionality is to omit the empty strings and 
treated as null. If the values are assigned using setValue, this value will be 
properly sent during synchronization

Original comment by openmobs...@gmail.com on 28 Nov 2012 at 5:59