Update: This works now, thanks googlers!

The title is sent with the event bundle:
"type":"FORM_BUTTON_CLICKED"}]},"wavelet":{"lastModifiedTime":
1254311154431,"title":"title", and the previously mentioned test robot
produce this output:
 after button is clicked:
 title:title

Peter


On Sep 17, 12:42 am, Peter Svedberg <[email protected]>
wrote:
> Yes, I can confirm this. At least for a FORM_BUTTON_CLICKED event the
> context does not return the title. Or more precisely, the title
> appears to be empty.
>
>   public void processEvents(RobotMessageBundle context) {
>     Wavelet wavelet = context.getWavelet();
>     TextView text = wavelet.getRootBlip().getDocument();
>     if (context.wasSelfAdded()) {
>       wavelet.setTitle("title");
>       text.append("\ntitle: " + wavelet.getTitle() + "\n");
>       text.getFormView().append(new FormElement(ElementType.BUTTON,
> "button-name", "click-me"));
>     } else {
>       text.append("\ntitle: " + wavelet.getTitle() + "\n");
>     }
>   }
>
> Output,
> on self added:
> title: title
>
> after button is clicked:
> title:
>
> Excerpt from log with empty title field:
> "type":"FORM_BUTTON_CLICKED"}]},"wavelet":{"lastModifiedTime":
> 1253138910552,"title":"","waveletId":"wavesandbox.com!conv+root","
>
> this is with content="true" in capabilities.xml for both events
--~--~---------~--~----~------------~-------~--~----~
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