Hi,i try to modify the generated markup of a ajax request. My PartialMarkupRendererFilter 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 the old 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 order of the PartialMarkupRendererFilters.
Here is my contribution method:public void contributePartialMarkupRenderer (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