Re: Custom UIViewRoot

2007-09-18 Thread Manfred K.
Hi Gary, thank you very much for your great answer. I already tried to access the rendered HTML content in a custom ViewHandler. In a similar way as the ClayViewHandler does it and the recursiveRender method was exactly what I was looking for. Unfortunately there is still one problem remaining:

Re: Custom UIViewRoot

2007-09-18 Thread Manfred K.
Thanx again! In your custom view handler, I would try overriding the renderView method while delegating to the original for the other methods. In the renderView, pipe the response writer to a local buffer and use the external context to dispatch to the viewId (JSP page) [1]. Under JSF 1.1

Re: Custom UIViewRoot

2007-09-17 Thread Manfred K.
render phase. There are wrappers on the ResponseWriter you can use to decorate the existing one (see ResponseWriterWrapper in shared_tomahawk). It is as simple as FacesContext.getCurrentInstance().setResponseWriter(obj); On 9/16/07, Manfred K. [EMAIL PROTECTED] wrote: Andrew

Re: Custom UIViewRoot

2007-09-16 Thread Manfred K.
pages for this requirement. Andrew Robinson-5 wrote: You could replace the responsewriter and have full control over the output On 9/15/07, Manfred K. [EMAIL PROTECTED] wrote: Thank you for your reply! We are using myfaces (1.1.5). I just had a look at the standard ViewHandler

Re: How to email a JSF page?

2007-09-16 Thread Manfred K.
Hi Andrew, how can you wrap the response writer in a custom phase listener? facesContext.getResponseWriter() returns null in a phaselistener or custom viewhandler! Best Regards Andrew Robinson-5 wrote: One idea could be to write a custom phase listener that wraps the ResponseWriter,

Custom UIViewRoot

2007-09-15 Thread Manfred K.
Hi all, I implemented a custom UIViewRoot because I need to override the encodeBegin and encodeEnd methods. Unfortunately my methods never get called!? I declared my UIViewRoot class in faces-config as new component: component component-typejavax.faces.ViewRoot/component-type

Re: Custom UIViewRoot

2007-09-15 Thread Manfred K.
component. Than you need to replace the ViewHandler like we did in tobago. Regards, Volker 2007/9/15, Manfred K. [EMAIL PROTECTED]: Hi all, I implemented a custom UIViewRoot because I need to override the encodeBegin and encodeEnd methods. Unfortunately my methods never get called