[jsr-314-open] [716-VDLResponseWriter] Pluggable VDL handler heavy depends from ViewHandler implementation.

Alexander Smirnov asmirnov at exadel.com
Wed Jan 6 20:06:39 EST 2010



On 01/06/2010 10:03 AM, Ed Burns wrote:
> I've created
> <https://javaserverfaces-spec-public.dev.java.net/issues/show_bug.cgi?id=716>,
> target for 2.1 (not 2.0 Rev a)
> 
skiped...

> 
> As you know, ultimate responsibility for creating the ResponseWriter
> lies with the RenderKit.  Is it fair to describe your requirement like
> this:
> 
> we need a standard way for the VDL to decorate the ResponseWriter at the
> beginning of the rendering phase?
> 
> If so, the VDL could listen for the PreRenderView event and perform the
> decoration there.  Would that work?
Oops, you give me a clue how to improve implementation without spec
changes. Currently, VDL creates response writer wrapper that process
state field marker written in the ViewHandler#writeState method that
makes these classes close related though they can be configured
separately. I wish to move late state writing to one class wherever it
possible. The better solution would be to move decoration and late state
writing into ViewHandler that can subscribe to render view events.
That will reduce number of copypasted code in the VDL implementation and
put all late state writing functionality into single class.
I'll create patch and attach it to the bugzilla issue.
> 
> Ed
> 




More information about the jsr-314-open-mirror mailing list