Hi.  I wrote my first Java-based robot today, following this
example:

http://gaejexperiments.wordpress.com/2009/11/04/episode-7-writing-your-first-google-wave-robot/

I can successfully add the robot, and I see it join the wave and post
a short text message thereafter (after the example above).

However, with this event handler

            if (e.getType() == EventType.BLIP_SUBMITTED) {
                Blip blip = wavelet.appendBlip();
                TextView tv = blip.getDocument();

                String creator = blip.getCreator() == null ? "(creator
unavailable)" : blip.getCreator();
                String strBlipMetaData = "Blip Id : " + blip.getBlipId
() + " , " + "Blip Creator : " + creator;
                String strBlipText = "You typed : " + tv.getText();
                String echo = strBlipMetaData + "\r\n" + strBlipText;

                blip.createChild().getDocument().append(echo);

                logger.info("bot echoing: " + echo);
            }

I find that "creator" and strBlipText are null, and the empty String,
respectively.

Here is my capabilities file, should it matter:

http://carpediem-wavebot-01.appspot.com/_wave/capabilities.xml

Any ideas?

Thanks.

--

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=.


Reply via email to