Hi Tiago Teixeira,

The first all, thanks for your reply. I understand You. I will be
explain more about my function at current time.

Before I added function create new wave by robot with syntax: newwave
<titleWave> <participants> and work well.
And Now I dont want user enter syntax these instance of using gadget
create from with inputtext include title Wave, participants and submit
button. when user submit i call servlet process create wave. But the
time I cannt get robotMessagesBundle. That is all.


thanks,
Alex

On Dec 15, 12:26 am, Tiago Teixeira <[email protected]> wrote:
> Hi,
>
> I'm afraid i didn't get everything you mean, but if the idea is to
> have a robot for BI and Gadget for GUI, why don't you simply
> gather the info you need with the robot, process it and after you pass
> it into the gadget using the state object.
> Ex:
> @Override
> public void processEvents(RobotMessageBundle bundle)
> {
>        Gadget g = new Gadget("http://url_to_gadget_xml_file";);
>        g.setField("robot_processed_info",processed_info); // This can
> be an array stringyfied or any value
>
>        Wavelet wavelet = bundle.getWavelet();
>        TextView textView = wavelet.getRootBlip().getDocument();
>        textView.appendElement(g);
>
> }
>
> The code above will trigger, the state change event in the robot and
> there you get the processed info passed by the robot and you present
> it in your GUI.
>
> HTH,
> Tiago Teixeira
>
> On Dec 14, 8:08 am, hvt_kg <[email protected]> wrote:
>
> > Hey developer,
>
> > I just think ideal about combine gadget with Robot. So. I will using
> > gadget for GUI and Robot Process Business logic. ex: when user add
> > robot, we render form which can create wave: title wave, participants
> > whatever if can and user click submit button with action /_wave/gadget/
> > createwave then call servlet CreateWaveServlet. Also, we need
> > robotMessageBundle help create wave,...So, My Question: how to we can
> > get robotMessageBundle from action /_wave/gadget/createwave within
> > CreateWaveServlet.
>
> > My nest code:
>
> > class CreateWaveServlet extends AbstractRobotServlet{
> > protected void doPost(HttpServletRequest request, HttpServletResponse
> > response){
> > dosomethingPost(); // Createwave, set title,....
>
> > }
>
> > @Override
> > public void processEvents(RobotMessageBundle bundle) {
> > dosomethingEvent();
>
> > }
> > }
>
> > anyideal.
>
> > thanks
> > Alex

--

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