Re: Changing DefaultDOMWriter settings
Ron Alsobrook <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Organization | Origin Productions, LLC |
| Message-ID | <[email protected]> |
Cool, it's good to have options. Thanks guys. Ron On Wednesday 03 September 2003 12:58 pm, Christian Cryder wrote: > Another option is to use object repository assembler to override > the default settings in DefaultDOMWriter. For instance, adding a > line like this: > > <object > class="org.enhydra.barracuda.core.util.dom.DefaultDOMWriter"> <prop > name="defaultPrintPretty">true</prop> > </object> > > would automatically set everything to use pretty printing. But its > going to affect _everything_...ie. all handlers, etc across the > board. > > So if that's not what you are after, then Shawn's approach is > probably best... > > Christian > > ---------------------------------------------- > Christian Cryder > Internet Architect, ATMReports.com > Project Chair, BarracudaMVC - http://barracudamvc.org > ---------------------------------------------- > "Coffee? I could quit anytime, just not today" > > > -----Original Message----- > > From: [email protected] > > [mailto:[email protected]]On Behalf Of Ron > > Alsobrook Sent: Wednesday, September 03, 2003 3:15 PM > > To: [email protected] > > Subject: [Barracuda] Changing DefaultDOMWriter settings > > > > > > Is there a way to easily change DefaultDOMWriter settings without > > having to override handleViewEvent(ViewEventContext context)? > > Generally, I like to remain insulated from rendering/writing > > details so I often make use of BTemplateViewHandler or > > DefaultViewHandler to handle response events. But in some cases, > > I'd like to turn on prettyPrinting or set cache behavior at some > > point in the event cycle. > > > > I know I could override handleViewEvent(ViewEventContext vec) in > > DefaultViewHandler but there's so much going on in there I'd > > rather have an easier way of changing those DefaultDOMWriter > > settings. If there is no such mechanism, I'll go ahead and > > override but I thought I'd ask first. Thanks! > > > > Ron > > > > _______________________________________________ > > Barracuda mailing list > > [email protected] > > http://barracudamvc.org/lists/listinfo/barracuda > > _______________________________________________ > Barracuda mailing list > [email protected] > http://barracudamvc.org/lists/listinfo/barracuda