Getting hold of the complete model in a Post Processor
I'm trying to run validation on a form, which contains fragments that are brought in via layout:fragment.
My validation happens too early if I leave my processor to run in the decorator, as the layout:fragment has not been called yet (it's further down the DOM). It could happen at the right time, if I have it in fragment, but that means a lot of code duplication.
I was wondering if I could use a Post Processor to get hold of the whole, rendered model and run the validation then.
I currently have a working Post Processor (using an IPostProcessorDialect, an IPostProcessor and a class that extends AbstractTemplateHandler and implements ITemplateHandler), but I cannot figure out how to get hold of the processed model/context.
Is it possible to manipulate the already processed template in a Post Processor, and if so, how?