« Return to Thread: Replace non-wicket attributed sections of a html document

Re: Replace non-wicket attributed sections of a html document

by Tremelune :: Rate this Message:

Reply (Restricted by the Administrator) | Reply to Author | View in Thread

Hm, still a good question. How do you get the IResponseFilter in there? There doesn't seem to be a way to do anything with the RequestCycle, and getApplication().getRequestCycleSettings() doesn't seem to have a place to set the IResponseFilter...I would also like to ensure that the custom response filter that does the FreeMarkering is only applied to the current request. Any tips/snippets?



Andrew Moore wrote:
Thanks again igor (you always seem to be able to fix any problems I'm having getting to grasps with wicket)
I've now got a basic IResponseFilter running that will stick data into freemarker tags.

At the moment though I'm creating a HashMap of values to put into freemarker directly in the Filter (just for testing purposes), whereas I really want to create a HashMap in the page I'm currently generating and either pass, or make it available to the filter, but I can't think how I would do that.

So, how to I get data from the Page Class I have to the IResponseFilter? All the examples I could find, just use data directly available from the FilterClass (like system time).

Thanks again,
Andrew

 « Return to Thread: Replace non-wicket attributed sections of a html document