[Google Wave APIs] Re: Wavelet.getRootBlip() -- Do I understand something wrong?
Reply to myself and others: I think this is related to http://code.google.com/p/google-wave-resources/issues/detail?id=200 . 2009/10/22 Bálint Kriván bal...@krivan.info Hi! I have this little chunk of code: public void debug(RobotMessageBundle bundle, String msg) { ListString list = new ArrayList(); list.add(myaddress in google wave); Wavelet wave = bundle.createWavelet(list); wave.appendBlip().getDocument().append(msg); } @Override public void processEvents(RobotMessageBundle robotMessageBundle) { Wavelet wavelet = robotMessageBundle.getWavelet(); for (Event event : robotMessageBundle.getEvents()) { Blip currentBlip = event.getBlip(); switch (event.getType()) { case BLIP_SUBMITTED: debug(robotMessageBundle, String.valueOf(wavelet.getRootBlip().getBlipId())); // line 46! } } } So when I add a blip to the wavelet where the robot is, it should open a new wave with me and send the id of the root blip (The top blip in the wavelet). But if this blip isn't right after the root blip (so the very first Reply button) then I've got a NullPointerException: java.lang.NullPointerException at com.google.wave.api.impl.BlipImpl.getBlipId(BlipImpl.java:56) at robot.MainServlet.processEvents(MainServlet.java:46) at com.google.wave.api.AbstractRobotServlet.doPost(AbstractRobotServlet.java:89) [...] What is the recommended way to access the very first blip (which is I guess the RootBlip)? Thanks for your help! -- Üdv, Kriván Bálint -- Üdv, Kriván Bálint --~--~-~--~~~---~--~~ 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-api@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 -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Wavelet.getRootBlip() -- Do I understand something wrong?
Oh I see...So robot doesn't get the whole wavelet with all of the blips, but the blip of the related event and it's parent. Ok, but if I would like to access to the rootblip, and I get its id with wavelet.getRootBlipId(), how can I request its content (getDoucment().getText())? (wavelet.getRootBlip().getDocument().getText() also throws null exception in these cases, so I don't have any idea how to achieve this) Thanks for your guidance! On Fri, Oct 23, 2009 at 2:56 AM, Austin Chau (Google employee) api.aus...@google.com wrote: Hi, To get the root blip id in your scenario - wave.appendBlip().getDocument().append(wavelet.getRootBlipId()); This would work because it does not require context of a grandparent blip. The reason that you are getting exception is because the context associated with an event callback only goes back its immediate parent. So in your case if the triggering event is resulted from a grandchild blip away from root, it will no longer has context to recreate the root blip when you invoked wavelet.getRootBlip() - thus you will get a null reference. Hope it helps, Austin 2009/10/22 Bálint Kriván bal...@google.com Reply to myself and others: I think this is related to http://code.google.com/p/google-wave-resources/issues/detail?id=200 . 2009/10/22 Bálint Kriván bal...@krivan.info Hi! I have this little chunk of code: public void debug(RobotMessageBundle bundle, String msg) { ListString list = new ArrayList(); list.add(myaddress in google wave); Wavelet wave = bundle.createWavelet(list); wave.appendBlip().getDocument().append(msg); } @Override public void processEvents(RobotMessageBundle robotMessageBundle) { Wavelet wavelet = robotMessageBundle.getWavelet(); for (Event event : robotMessageBundle.getEvents()) { Blip currentBlip = event.getBlip(); switch (event.getType()) { case BLIP_SUBMITTED: debug(robotMessageBundle, String.valueOf(wavelet.getRootBlip().getBlipId())); // line 46! } } } So when I add a blip to the wavelet where the robot is, it should open a new wave with me and send the id of the root blip (The top blip in the wavelet). But if this blip isn't right after the root blip (so the very first Reply button) then I've got a NullPointerException: java.lang.NullPointerException at com.google.wave.api.impl.BlipImpl.getBlipId(BlipImpl.java:56) at robot.MainServlet.processEvents(MainServlet.java:46) at com.google.wave.api.AbstractRobotServlet.doPost(AbstractRobotServlet.java:89) [...] What is the recommended way to access the very first blip (which is I guess the RootBlip)? Thanks for your help! -- Üdv, Kriván Bálint -- Üdv, Kriván Bálint -- Üdv, Kriván Bálint --~--~-~--~~~---~--~~ 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-api@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 -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Can Robot updates the wave outside processEvents()?
Oh thanks! Maybe that is what I was looking for, where can I find more information about these cron events? On Fri, Oct 23, 2009 at 10:03 AM, markowl mark.cowlis...@gmail.com wrote: Hello, ... a question came up: Is is possible to update a wave (e.g.: append blip) outside processEvents() method (Java API)? I believe you can also update a Wave using the Cron events. http://code.google.com/intl/ja-JP/apis/wave/extensions/robots/index.html I've not tested this myself however. Rgds, Mark -- Üdv, Kriván Bálint --~--~-~--~~~---~--~~ 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-api@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 -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Using JSNI to access external JavaScript function of an external library
Hi! If you're looking for gadget api binding to gwt, I recommend the cobogwave wrapper. --~--~-~--~~~---~--~~ 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-api@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 -~--~~~~--~~--~--~---
[Google Wave APIs] Re: Using JSNI to access external JavaScript function of an external library
Sorry but you're first question is out of the mailing list's topic. Try this group: http://groups.google.com/group/Google-Web-Toolkit Because you're question is not related to Google Wave, right know :) On Mon, Nov 2, 2009 at 2:07 PM, Prashant antsh...@gmail.com wrote: guys you are ignoring my problem, someone please help me out (refer to the very first post of this thread, ignore others :P) -- Üdv, Kriván Bálint --~--~-~--~~~---~--~~ 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-api@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 -~--~~~~--~~--~--~---
Re: [Google Wave APIs] Buggy Robots Status
Yeah, it's a little strange why these bugs come up, I think the unit tests should indicate if something isn't working in the build, but who knows :) On 11/12/09, Dirk Holtwick dirk.holtw...@gmail.com wrote: Hi, I really become crazy with these robots. Each day something new is not working and it is totally arbitrary if I'm on the preview account or the sandbox. Currently I get all events on the 'preview' machine, but can not send back text on 'ROBOT ADDED' (while text submit after 'BLIP SUBMITTED' works). On the sandbox the same robot returns text on 'ROBOT ADDED' but does not get notified on 'BLIP SUBMITTED'. I need to get this stuff running because my Push Notification system of Waveboard relies on it. http://www.getwaveboard.com/2009/11/waveboard-2-0-for-iphone-submitted/ The bots are called 'dirk4' and 'xwaveboard' if you'd like to test. (Still in development, changing frequently, very experimental!) My proposal: Why couldn't Google people set up a central page where these know issues are listed with the most recent state. It takes me each day about an hour to figure out if the problem is on my side or on the Google side. Thanks, Dirk -- 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=. -- Üdv, Kriván Bálint -- 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=.
Re: [Google Wave APIs] Moving waves into folders with API
I think it would be great if folders would be like labels in Gmail, so waves could be tagged with multiple labels. It's great if you can tag the waves with tags, but labels are useful visual indicators in the Inbox/All/Trash views. What do you think? On Sun, Nov 15, 2009 at 11:07 AM, pamela (Google Employee) pamela...@gmail.com wrote: Hi jhb - A wave can only be in one folder, and robots do not currently have the ability to move wave into a folder (or assign tags, a related action). Please file a feature request for folder manipulation here: http://code.google.com/p/google-wave-resources/issues/entry?template=Robots%20Feature%20Request http://code.google.com/p/google-wave-resources/issues/entry?template=Robots%20Feature%20Request- pamela On Fri, Nov 13, 2009 at 11:30 PM, jhb barr.j...@gmail.com wrote: Is there a way to manipulate the location of a wave from a user's inbox to robot created or previously created folders. Also, can a wave be in multiple folders? -- 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.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- 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.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- Üdv, Kriván Bálint -- 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=.
Re: [Google Wave APIs] Moving waves into folders with API
Well, it's a good idea. Maybe one could star/highlight particular tags with a style (colored text/background - just like labes in gmail) and it would be appear in the Navigiation tab (Something like Searches ). P.S.: Now this can be achived by: Adding saved search for tag:tag and set a design for it, but this could be wrapped to an own Navigation bar section. On Sun, Nov 15, 2009 at 11:14 AM, pamela (Google Employee) pamela...@gmail.com wrote: So, am I correct that you want better visualization of the existing tags? The team is likely considering ways to do that. 2009/11/15 Bálint Kriván bal...@krivan.info I think it would be great if folders would be like labels in Gmail, so waves could be tagged with multiple labels. It's great if you can tag the waves with tags, but labels are useful visual indicators in the Inbox/All/Trash views. What do you think? On Sun, Nov 15, 2009 at 11:07 AM, pamela (Google Employee) pamela...@gmail.com wrote: Hi jhb - A wave can only be in one folder, and robots do not currently have the ability to move wave into a folder (or assign tags, a related action). Please file a feature request for folder manipulation here: http://code.google.com/p/google-wave-resources/issues/entry?template=Robots%20Feature%20Request http://code.google.com/p/google-wave-resources/issues/entry?template=Robots%20Feature%20Request- pamela On Fri, Nov 13, 2009 at 11:30 PM, jhb barr.j...@gmail.com wrote: Is there a way to manipulate the location of a wave from a user's inbox to robot created or previously created folders. Also, can a wave be in multiple folders? -- 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.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- 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.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- Üdv, Kriván Bálint -- 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.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- 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.comgoogle-wave-api%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-wave-api?hl=. -- Üdv, Kriván Bálint -- 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=.