Hi Tobber,
Yes, that is fine to start with. However, if you look at syncWithIndexWavein
ClientBackend.java<http://code.google.com/p/wave-protocol/source/browse/src/org/waveprotocol/wave/examples/fedone/waveclient/common/ClientBackend.java>--
when it opens a wave it only subscribes to the conversation
*root* prefix, not all conversation wavelet prefixes. This is what
ClientUtils.getConversationRootId(waveId).serialise()is.
In order to open a wave subscribing to all conversation wavelets, you could
add a new method to ClientUtils to just get the conversation prefix, e.g.
public static String getConversationWaveletPrefix(WaveId waveId) {
return WaveletId(waveId.getDomain(),
IdConstants.CONVERSATION_ROOT_WAVELET).serialize();
}
Then subscribe to wavelets using openWave(waveId,
ImmutableList.of(ClientUtils.getConversationWaveletPrefix(waveId)));
However, in any case -- why do you want to allow multiple conversation
wavelets per wave?
-- Ben
On Fri, Aug 21, 2009 at 9:21 PM, tobber harley <[email protected]>wrote:
>
> Hi,
>
> I reimplemented the simple console client in swing, and now i try to
> create new wavelets in a existing wave. Can this be done with
> ClientWaveView.createWavelet(...) method ?
>
> I tried it this way:
>
> WaveletData newWavelet = openWave.createWavelet(
>
> clientBackend.getIdGenerator().newConversationWaveletId() );
>
> clientBackend.sendWaveletOperation( newWavelet,
> new AddParticipant( clientBackend.getUserId() ) );
>
> And it seems to work, but after restarting the client, only the root-
> wavelet exits in this wave. The wavelet is not added to the wave.
>
> Can anyone help me ?
>
> Tobber
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---