Hello,

I have a requirement to download html files so that they can be added to 
an electronic dossier.
These files need to be completely self-contained, so no javascript, 
stylesheets, links, etc.

My approach so far was to simply call the following in the constructor 
of the page:
getWebRequestCycle().getWebResponse().setAttachmentHeader(filename);

The problem with this approach is that I can not find a way to get rid 
of the default header stuff like the Ajax console and the pagemap trickery.

The pagemap trickery is configured in the constructor of WebPage. I 
could not find a decent way to (temporarily) disable this. For example 
by calling 
getApplication().getPageSettings().setAutomaticMultiWindowSupport(false). 
Doing this in onBeforeRender is clearly too late.

Why the header stuff for the ajax console is added is another riddle for 
me. As far as I can see, there is no ajax behavior added to any 
component on the page.

Another approach I tried was to disable all header contributions. 
Unfortunately I could not find the appropriate hooks for that.

Does anybody have an idea on what I could do?

Thanks and regards,
    Erik.


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to