If the browser doesn't know how to display an excel file inline, it
will still open a download window.

This has nothing to do really with Wicket - if you want the browser to
display an actual Excel .xls file, you need a browser plugin that can
do it.

What you can do, for example, is parse the file on the server and
generate a HTML table to show in the browser (or display it in any
other way).

Carl-Eric

On Mon, 24 Mar 2014 15:45:24 +0200
Martin Grigorov <mgrigo...@apache.org> wrote:

> Yes, DownloadLink uses ContentDisposition.ATTACHMENT. You need
> #INLINE. That's why I said to use it as an example.
> 
> Martin Grigorov
> Wicket Training and Consulting
> 
> 
> On Mon, Mar 24, 2014 at 3:39 PM, <christoph.ma...@t-systems.com>
> wrote:
> 
> > The DownloadLink open the save as dialog but I want to show the
> > data in a browser embedded excel. Are there other Wicket-Components
> > to implement this?
> >
> >
> > Mit freundlichen Grüßen
> > Christoph Manig
> > Systems Engineer
> >
> > T-Systems International GmbH
> > Systems Integration - SC Travel, Transport & Logistics
> > Hoyerswerdaer Str. 18
> > 01099 Dresden
> > tel.:   +49 (0) 351 / 8152 - 188
> > fax:    +49 (0) 351 / 8152 – 209
> > email:  christoph.ma...@t-systems.com
> >
> > T-SYSTEMS INTERNATIONAL GMBH
> > Aufsichtsrat: Thomas Dannenfeldt (Vorsitzender)
> > Geschäftsführung: Reinhard Clemens (Vorsitzender), Dr. Ferri
> > Abolhassan, Thilo Kusch, Dr. Markus Müller, Georg Pepping, Hagen
> > Rickmann Handelsregister: Amtsgericht Frankfurt am Main HRB 55933
> > Sitz der Gesellschaft: Frankfurt am Main
> > WEEE-Reg.-Nr. DE50335567
> >
> >
> > -----Ursprüngliche Nachricht-----
> > Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> > Gesendet: Montag, 24. März 2014 14:25
> > An: users@wicket.apache.org
> > Betreff: Re: Show Excelsheet in Browser
> >
> > then all you need is to set few response headers:
> > Content-Disposition: Inline
> > Content-type: (see http://stackoverflow.com/a/2938188/497381)
> >
> > See org.apache.wicket.markup.html.link.DownloadLink#onClick for an
> > example how to do this
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Mon, Mar 24, 2014 at 3:17 PM, <christoph.ma...@t-systems.com>
> > wrote:
> >
> > > Hello,
> > >
> > > iam getting an byte array from the backend and I want to send
> > > this to the browser with an outputstream. So the browser notice
> > > that he gets an excel sheet and shows this. It should be the same
> > > if you open pdfs with the browser while downloading this data.
> > >
> > >
> > > Mit freundlichen Grüßen
> > > Christoph Manig
> > >
> > > -----Ursprüngliche Nachricht-----
> > > Von: Martin Grigorov [mailto:mgrigo...@apache.org]
> > > Gesendet: Montag, 24. März 2014 14:03
> > > An: users@wicket.apache.org
> > > Betreff: Re: Show Excelsheet in Browser
> > >
> > > Hi,
> > >
> > > You can use a JavaScript solution like
> > > http://handsontable.com/index.htmlto show spreadsheet like tables.
> > > I am not sure whether it supports multiple sheets.
> > > I guess there are more such JS solutions out there.
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > >
> > >
> > > On Mon, Mar 24, 2014 at 2:56 PM, <christoph.ma...@t-systems.com>
> > > wrote:
> > >
> > > > Hello,
> > > >
> > > > I want to show an excel data set by clicking on a wicket
> > > > button. The sheet should be shown in the browser and this data
> > > > set has multiple
> > > table-sheets.
> > > > How can I do that with wicket?
> > > >
> > > >
> > > > Mit freundlichen Grüßen
> > > > Christoph Manig
> > > >
> > > >
> > > >
> > >
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to