Hi Thanks, it worked!!
However, how can I do it if after upload my file I want to show the pdf without force the user to click on link? Regards J On Mon, Feb 20, 2012 at 1:46 PM, Martin Grigorov <martingrigo...@yahoo.com> wrote: > add(new DownloadLink("someId", "the/path/to/the.pdf")); > > This is the simplest way. > > > ________________________________ > From: Javier Leyba <xle...@gmail.com> > To: users@wicket.apache.org; Martin Grigorov <martingrigo...@yahoo.com> > Sent: Monday, 20 February 2012, 13:38 > Subject: Re: Show pdf > > Hi > > Thanks for your replies. > > However, I am totally new with Wicket and my development was done > following examples and tutorials. I really have no idea how to > implement the recommended classes. > > Could you please show some sample code or provide a link to samples? > > Regards > J > > > On Mon, Feb 20, 2012 at 1:25 PM, Martin Grigorov > <martingrigo...@yahoo.com> wrote: >> Hi, >> >> I think the easiest is to use ResourceLink or DownloadLink. >> Otherwise using ByteArrayResource should be almost the same as >> DynamicWebResource from 1.4. >> >> >> ________________________________ >> From: Javier Leyba <xle...@gmail.com> >> To: users@wicket.apache.org >> Sent: Monday, 20 February 2012, 12:59 >> Subject: Show pdf >> >> Hi >> >> I did a page that will upload a file to a folder. >> >> Another application will convert the file to pdf and left it in a >> different folder where my web app will pick it up and show it. >> >> How can I show that pdf? >> >> I have checked many tutorials, even in wicket how-to, but all of them >> are using DynamicWebResource or some other classes that seems were >> deprecated on Wicket 1.5. >> >> Thanks in advance! >> >> >> Regards >> >> -- >> Javier Leyba >> Barcelona - Spain >> http://blog.leyba.com.ar >> http://www.leybafendrik.com.ar >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org > > > > -- > Javier Leyba > Barcelona - Spain > http://blog.leyba.com.ar > http://www.leybafendrik.com.ar > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org -- Javier Leyba Barcelona - Spain http://blog.leyba.com.ar http://www.leybafendrik.com.ar --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org