Hi there,

I'm trying to create some welcome wave in the server-side but from HTML
markup. After some days diving through the WIAB code and documentation,
and making tests without success, I need some orientation.

My code:
final OperationQueue opQueue = new OperationQueue();
final Wavelet newWavelet = opQueue.createWavelet(domain, participants);
final Blip rootBlip = newWavelet.getRootBlip();

if I add HTML markup as described in:
  http://www.waveprotocol.org/wave-apis/frequently-asked-questions
it doesn't work:
rootBlip.append(new com.google.wave.api.Markup("<b>foo</b>"));
and let the rootBlip empty. But this (without markup) works:
rootBlip.append("foo");

I suppose (please correct me) that this is some new issue related with
the WIAB release as open source, because I remember that this was
working with some of my robots in Google Wave.

If this is a real issue, maybe I can help to fix it if I finally
understand more the internals of this part of WIAB.

Looking the suggestion of the header of Markup.java I started to look
and play with the client PasteExtractor and RichTextTokenizer* etc to
figure out the better way to unrender a html into a blip.

To summarize, now I can create a IndexedDocument or DocInitialization like:
<line><?a "style/fontWeight"="bold"?>foo<?a "style/fontWeight"?></line>
in the server side but after several tests I don't know how to convert
this in a new Wave or to modify the rootBlip. Probably I'm following a
wrong path to make this.

Any suggestion/tip/orientation welcome.

TIA,
-- 
Vicente J. Ruiz Jurado

http://comunes.org
http://ourproject.org
http://homes.ourproject.org/~vjrj/blog

 "Poetry can only be made out of other poems; novels out of other
 novels," [Northrop Frye]






Reply via email to