Hi, I have just migrated the example to 6.x. See the details in here
https://github.com/reiern70/antilia-bits/tree/master/content-iframe On Wed, Mar 13, 2013 at 2:08 PM, dpmihai <[email protected]> wrote: > Hi. > > I have a wicket 1.4 application where I just render a html inside an > iframe. > I used the wiki from here: > > > https://cwiki.apache.org/WICKET/displaying-content-eg-pdf-excel-word-in-an-iframe.html > > The idea was to create a DynamicWebResource. This class was extended from > WebResource which was extended from Resource which implemented > IResourceListener. So, as you see from wiki, the DocumentInlineFrame > onResourceRequested method just called > resourceListener.onResourceRequested(); > > I want to port this code to wicket 6.6.0 . So I created a ByteArrayResource > instead of DynamicWebResource with > > protected byte[] getData(final Attributes attributes) to return my html > data. > > But ByteArrayResource does not implement IResourceListener anymore, so I > have no clue how to modify DocumentInlineFrame component. I tried to make > my > resource implementing IResourceListener and inside > > public void onResourceRequested() method I compute my data that must be > returned from > > protected byte[] getData(final Attributes attributes) method. > > But nothing happens. getData() method is not called from > DocumentInlineFrame . Does anybody know how to do it? > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-6-Displaying-content-in-an-iframe-tp4657207.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] > > -- Regards - Ernesto Reinaldo Barreiro Antilia Soft http://antiliasoft.com/ <http://antiliasoft.com/antilia>
