This was an issue that was recently fixed:

  http://code.google.com/p/google-wave-resources/issues/detail?id=704

Are you using the latest release of the library?

   Thanks,
   -joe

--
Joe Gregorio
Developer Relations, Google Wave


On Tue, Jun 29, 2010 at 3:53 AM, balderman <balder...@gmail.com> wrote:
> I am pushing a button to a blip:
> Code:
>  blip.append(new Element(ElementType.BUTTON,...);
>
> The button is shown in the blip and works fine.
>
> There is an event that as a  response to it I would like to remove the
> button from the blip.
> Code:
>   BlipContentRefs firstButton = blip.first(ElementType.BUTTON);
>   if(firstButton != null)
>   {
>            log.info("found the first button. deleting it");
>             firstButton.delete();
>   }
>
> But the button is not deleted.
> Below is the outgoing operations:
>
>
> com.google.wave.api.AbstractRobot serializeOperations: Outgoing
> operations:
> [{"method":"robot.notifyCapabilitiesHash","id":"op31","params":
>
> {"capabilitiesHash":"e16c63dbf7a7","protocolVersion":"0.21"}},
>
> {"method":"wavelet.modifyParticipantRole","id":"op32","params":
>
> {"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":
>
> "googlewave.com!conv
> +root","participantId":"remedy...@appspot.com","participantRole":"READ_ONLY"}},
>
> {"method":"wavelet.modifyParticipantRole","id":"op33","params":
>
> {"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":"googlewave.com!
> conv+root","participantId":
>
> "balder...@googlewave.com","participantRole":"READ_ONLY"}},
> {"method":"wavelet.modifyParticipantRole","id":
>
> "op34","params":{"waveId":"googlewave.com!w
> +4c7IFrZkBDs","waveletId":"googlewave.com!conv+root","participantId":
>
> "ohadr.develo...@googlewave.com","participantRole":"READ_ONLY"}},
> {"method":"wavelet.modifyParticipantRole","id"
>
> :"op35","params":{"waveId":"googlewave.com!w
> +4c7IFrZkBDs","waveletId":"googlewave.com!conv+root","participantId":
>
> "ohad.redl...@googlewave.com","participantRole":"READ_ONLY"}},
> {"method":"document.modify","id":"op36","params":
>
> {"waveId":"googlewave.com!w+4c7IFrZkBDs","waveletId":"googlewave.com!
> conv+root","blipId":"b+RfIXyavlT",
>
> "modifyAction":
> {"modifyHow":"DELETE","values":null,"annotationKey":null,"elements":null,"bundledAnnotations":null,
>
> "useMarkup":false},"modifyQuery":{"elementMatch":"BUTTON","maxRes":
> 1,"textMatch":null,"restrictions":{}}}}]
>
> Please advice.
>
> Avishay
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Google Wave API" group.
> To post to this group, send email to google-wave-...@googlegroups.com.
> To unsubscribe from this group, send email to 
> google-wave-api+unsubscr...@googlegroups.com.
> 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 google-wave-...@googlegroups.com.
To unsubscribe from this group, send email to 
google-wave-api+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-wave-api?hl=en.

Reply via email to