On 01/06/2010 10:03 AM, Ed Burns wrote:
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