See. https://cwiki.apache.org/confluence/display/WICKET/AJAX+update+and+file+download+in+one+blow
There was some work to move such functionality to wicket core. You need some variation of it, I guess. On Mar 2, 2017 17:30, "SeldonCrisis" <[email protected]> wrote: > Yes, sorry for the spam. I kept forgetting to enclose the html in . My > fault. > > OK, so ideally I want to create an AjaxButton that when pressed would serve > my custom resource (extending ByteArrayResource) in a new tab and > simultaneously setEnabled(true) and setVisible(true) on a Label in my page. > Right now I'm using a ResourceLink and ResourceReference to display my > resource in a new tab. But I cannot add Ajax Events to ResourceLinks > onClick, and I want a Button not a Link. > > Sorry, RTFM definitely applies here, but I don't know if I need to read > about wickets requestCycle to accomplish this or something else. I'm trying > to mess around with ITargetRespondListener for now, but I'm not sure if I'm > on the right track. > > -- > View this message in context: http://apache-wicket.1842946.n > 4.nabble.com/Display-PDF-in-new-tab-tp4677202p4677227.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
