Okay a little more playing around and I've gotten a betwixt view working. The trouble seemed to be with their SAXBeanWriter. They have another BeanWriter that simply writes to a stream. Using this I got it to work. I assume that it's not going to be as efficient as the SAXBeanWriter, but it works. And it should prove a good place holder until their SAXBeanWriter is working. Once it is, we should be able to simply update opt-betwixt. I assume that the xml produced will be the same, so no one should even have to update their projects.
You can get it here: http://www.scolamoore.com/jim/opt-betwixt-20020910.zip It's pretty heavily based on opt-domify, so Jeff and Scott deserve much of the credit. There is a friendbook-betwixt in there that works if you want an example. --jim ----- Original Message ----- From: "jim moore" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 10, 2002 12:39 PM Subject: [Mav-user] jxv and betwixt views > So I spent a little while this morning screwing around with making jxv and > betwixt views. JXV contains DOMSource and SAXSource objects (not the exact > names, but close enough) that should be able to passed to TransformSteps > though step.go(source). Unfortunately, both break in different ways. > > Betwixt has a SAXBeanWriter object that is created from a SAX > ContentHandler, so theoretically we should be able to use it in maverick as > so: > > TransformStep next = vctx.getNextStep(); > SAXBeanWriter sbw = new SAXBeanWriter(next.getSAXHandler()); > try { > sbw.write(vctx.getModel()); > } catch (SAXException ex) { > throw new ServletException(ex); > } catch (IntrospectionException ex) { > throw new ServletException(ex); > } > next.done(); > > Unfortunately this too blows up with some pretty cryptic errors. > > The problem with both packages does not seem to be with Maverick but rather > with jxv and betwixt themselves. Neither has release versions available (I > had to build both from cvs) and I think for now they are still too unstable > to be useful. > > On the upside though, once they are stable, it shouldn't take too long to > write maverick views for them (it took me about 30 minutes total to write > both views, basing them on opt-domify). > > --jim > > > > ------------------------------------------------------- > This sf.net email is sponsored by: OSDN - Tired of that same old > cell phone? Get a new here for FREE! > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 > _______________________________________________ > Mav-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/mav-user > Archives are available at http://www.mail-archive.com/ ------------------------------------------------------- This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE! https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390 _______________________________________________ Mav-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mav-user Archives are available at http://www.mail-archive.com/
