Hi,
I'm trying to develop a very simple bot that simply has two input
fields and a submit button. I'm having trouble on multiple levels.
My main problem at the moment is that after the bot is initially
added, it doesn't respond to anything at all. For example, it will
say hello to everyone, but if I then add another participant, it does
nothing.
After that issue gets resolved, then my issue is that I can't make it
respond to a button click at all. Any help getting me off the ground
would be appreciated.
I've created the fields in my rootBlip and the submit button instance
looks something like this:
private static final String SUBMIT = "clicked";
TextView introForm = rootBlip.getDocument();
introForm.appendElement(new FormElement(ElementType.BUTTON, SUBMIT,
"Submit"));
-------------------------
my processEvents function looks like so:
public void processEvents(RobotMessageBundle context) {
Blip blip;
TextView textView;
wavelet = context.getWavelet();
if(isNewWave(context)) {
botControl = new AdminWavelet(context);
botControl.healthBlip(new String("Starting AdminWave handler"), 3);
}
for (Event e: context.getEvents()) {
botControl.healthBlip(e.getType().toString(), 3);
}
}
---------------------------
My capabilities file looks like so:
<?xml version="1.0" encoding="utf-8"?>
<w:robot xmlns:w="http://wave.google.com/extensions/robots/1.0">
<w:capabilities>
<w:capability name="document_changed"/>
<w:capability name="WAVELET_PARTICIPANTS_CHANGED"
content="true"/>
<w:capability name="WAVELET_SELF_ADDED" content="true"/>
<w:capability name="FORM_BUTTON_CLICKED" content="true"/>
<w:capability name="WAVELET_BLIP_CREATED" content="true"/>
</w:capabilities>
<w:version>2</w:version>
</w:robot>
---------------------------
and for completeness, the robot is [email protected]
--
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.