Am 28.09.2009 um 17:12 schrieb cordenier christophe:
Hi Have you test with a MarkupWriterListener ?
I didn't know that interface. But that will not work because i need the whole generated content.
2009/9/28 Sascha Tandel <s.tan...@kenoxa.de>Hi, i try to modify the generated markup of a ajax request. MyPartialMarkupRendererFilter modifies the markup through the MarkupWriter:public void renderMarkup(MarkupWriter writer, JSONObject reply, PartialMarkupRenderer renderer) { renderer.renderMarkup(writer, reply); addMarkup(writer) }The writer contains the added elements but in reply.content is still theold markup. When i add final String content = root.getChildMarkup().trim(); reply.put("content", content); it works.Put it doesn't "feel" right. I think it has something to do with the orderof the PartialMarkupRendererFilters. Here is my contribution method: public voidcontributePartialMarkupRenderer (OrderedConfiguration<PartialMarkupRendererFilter>configuration) { configuration.addInstance("MyFilter", MyFilter.class, "after:Heartbeat"); } Can somebody give me a hint how to solve that problem. Thanks Sascha
smime.p7s
Description: S/MIME cryptographic signature