You're not doing anything wrong, we just haven't needed to (de)serialise annotations before, so it wasn't a priority to implement it in the serialisation code. It shouldn't be too hard to implement yourself.
-- Ben On Wed, Sep 9, 2009 at 12:27 AM, tobber harley <[email protected]>wrote: > > Hey, > > If I try to use a annotation (the same like Eric's example), something > like this: > > docOp.elementStart( "p", new AttributesImpl(ImmutableMap.of > (LINE_AUTHOR, fClientBackend.getUserId().getAddress()))); > docOp.annotationBoundary( new AnnotationBoundaryMapImpl( [], ["style/ > fontStyle"], [null], ["italic"] ) ); > docOp.characters( "my text" ); > docOp.annotationBoundary( new AnnotationBoundaryMapImpl( ["style/ > fontStyle"], [], [], [] ) ); > docOp.elementEnd(); > > I get a IllegalArgumentException at (WaveletOperationSerializer.java: > 177). > > WaveletOperationSerializer.java: > >176: @Override public void annotationBoundary(AnnotationBoundaryMap map) > { > >>177: throw new IllegalArgumentException(); > >178: } > > Can someone tell me what I am doing wrong ? > > Thanks > Tobber > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Wave Protocol" 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/wave-protocol?hl=en -~----------~----~----~----~------~----~------~--~---
