All,
I am looking into implementing the inline thread toggle which shows
how many blips are in the inline thread as well as an indication to
how many are read / not.
To do this I believe we need working User Data Wavelets. I was taking
a look at where these are created when creating a new wave. Looks
like this is happening in the StageTwo class here (circa line 390):
===
protected ObservableSupplementedWave createSupplement() {
Wavelet udw = getWave().getUserData();
ObservablePrimitiveSupplement supplement;
if (udw != null) {
supplement = WaveletBasedSupplement.create(udw);
} else {
// Either use fake backing, or create UDW. The latter is
racy, but usually what we want.
// TODO: restore lines below, after issue 154 has been fixed.
See:
// http://code.google.com/p/wave-protocol/issues/detail?id=154
udw = getWave().createUserData();
supplement = WaveletBasedSupplement.create(udw);
// supplement = new PrimitiveSupplementImpl();
}
return new LiveSupplementedWaveImpl(
supplement, getWave(), getSignedInUser(),
DefaultFollow.ALWAYS, getConversations());
}
===
This line specifically "Wavelet udw = getWave().getUserData()" always
comes back null. This code seems to get executed when a wave is
loaded in to the client. It seems that:
getWave().createUserData();
does get called and execute after clicking the "New Wave" button. If
you debug you will see that the wave now has a new wavelet for the
user data. But immediately after if you click on the wave again, the
getWave().getUserData() will return null. The wave no longer contains
the wavelet for the user data. Is the creation of the user data
wavelet only happening on the client side and not getting persisted to
there server?
I think I need to get this working first, if I am barking up the wrong
tree let me know.
Regards,
~Michael
--
You received this message because you are subscribed to the Google Groups "Wave
Protocol" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/wave-protocol?hl=en.