hmm but if you see the code i m doing blip().append then shouldn't it be
doing the append rather replace?


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Wed, Feb 17, 2010 at 10:32 AM, Chris <[email protected]> wrote:

> Can you get the current wave contents, add your stuff, then set the result
> as the wave's contents?  I think that's pretty much what would happen under
> the hood if the library did it for you.
>
> In ALL things, strive for ><>,
> Chris
>
>
> On Tue, Feb 16, 2010 at 10:57 PM, Vik <[email protected]> wrote:
>
>>  Hie
>>
>>
>> I created a robot to add some stuff to an existing wave as soon as i add
>> it as a contact.
>> The code is:
>>
>> @Capability(contexts = {Context.SELF})
>> @Override
>> public void onWaveletSelfAdded(WaveletSelfAddedEvent e) {
>>
>> LOG.info("onWaveletSelfAdded");
>> Blip blip = e.getBlip();
>> Wavelet wavelet = e.getWavelet();
>>
>> // Test setting wavelet title.
>> wavelet.setTitle("The CRM opportunity wave");
>>
>> // Test inserting image.
>> blip.append(new Image("http://www.google.com/logos/clickortreat1.gif";,
>> 320, 118,
>> "Click or treat"));
>>
>>     Blip inlineBlip = blip.insertInlineBlip(5);
>> inlineBlip.append("Hello again!");
>> }
>>
>>
>> This works fine but the issue is it deletes/overrides the previous wave
>> contents. What I want is to append the stuff instead. Any advise please
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "Google Wave API" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<google-wave-api%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-wave-api?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Wave API" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-wave-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-wave-api?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Wave API" 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/google-wave-api?hl=en.

Reply via email to