powered by Jive Software

Code formatting in Plain Text mode

Hello,

I noticed a couple of odd things when I tried to post some code in this discussion. If you try to paste the toXML() method from the attached .java file into the Plain Text composition area you’ll notice the getElement() portion of the method gets dropped, even if you use the tag.

I tried this with both Safari and Firefox and got the same results.

Thanks,

Ryan

Trying it with

private void sendBuzz() {
      Message buzz = new Message();
      buzz.setTo("kobelsem@openfire_srv");
      buzz.addExtension(new PacketExtension() {
         public String getElementName() {
            return "buzz";
         }          public String getNamespace() {
            return "http://www.jivesoftware.com/spark";
         }          public String toXML() {
            return "<" + getElementName() + " xmlns=\"" + getNamespace() + "\"/>" ;
         }
      });
            connection.sendPacket(buzz);
   }

yeah, no better. I’ll look into it - I’m guessing it’s a bug in the conversion between the wiki text and rendering it for display.

It’s good to see that I’m not the only one. Thanks for looking into this.

Yep, it’s a bug in Clearspace. We’ve filed it.