On Mon, Nov 7, 2011 at 7:39 PM, Wolfgang Schreiner <wschrei...@csc.com> wrote: > Hi all, > > I got a couple of questions ... > > 1) I would like to open a new browser tab and display a PDF when I click a > link. I extended ByteArrayResource but "getData" is not always called. > Seems like once generated the documents get cached and randomly displayed, > which of course is not acceptable, because the PDFs depend on user > selection. How can I fix that?
Override org.apache.wicket.request.resource.ByteArrayResource.configureResponse(ResourceResponse, Attributes) and call resourceResponse.setCacheDuration(Duration.NONE) > > 2) Is there a way to generally disable page versioning > (getPageSettings().setVersionPagesByDefault(false)) but enable versioning > for a single page? Just override MyPage#isVersioned() to return 'true' > > Hope you can help me. Thanks! > > w > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org