Re: Changing DefaultDOMWriter settings

Shawn Wilson <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <[email protected]>
Hi Ron,

I believe you should be able to simply override the getDOMWriter() 
method in your ViewHandler and just return a new DefaultDOMWriter with 
whatever options you want.

-shawn

Ron Alsobrook wrote:

> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.