Open GoogleCodeExporter opened 9 years ago
This seems to be a general issue. At a closer look at the Sudoku widget, the
numbers
disappear only if you enter a wrong one. Entering correct numbers will not make
them
disappear. However, the updates are not listed and the ranking is not updated
too.
I did not know that any state change issued by gadgets should be echoed back to
them
again. Through what I read in the Federation Protocol specification, local
changes
should be applied immediately, so sending back state changes are redundant.
This is
however not the case for Gadgets. If you read through the tutorial, you will
notice
that clicking the button will not change the number in its state object but
rather
send a delta to do so. If I think about that, it makes perfect sense: The
gadget
should not touch its state object and modify it only via submitDelta() calls.
The state update is now echoed back locally to the gadget. This fixed most of
the
odd behavior of gadgets. The SVG Gadget does not work yet, though.
Original comment by patrick....@googlemail.com
on 19 Jun 2009 at 9:49
Original issue reported on code.google.com by
AdamCollet
on 18 Jun 2009 at 3:49