You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Ch...@t-systems.com on 2014/03/24 13:56:55 UTC

Show Excelsheet in Browser

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



Re: Show Excelsheet in Browser

Posted by Martin Grigorov <mg...@apache.org>.
Stefan's approach is even better when you have to work with raw data (like
byte[]).
DownloadLink should be used when your data is already stored in a file.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:48 PM, Stefan Renz <s....@efonds.com> wrote:

> Hi,
>
> we use a ResourceLink with a ResourceReference wrapping an
> AbstractResource, that generates an Excel via POI in a WriteCallback
> implementation. The AbstractResource implementation can
> #setContentType() and #setContentDisposition() on the attributes object
> passed into #newResourceResponse().
>
> I hope I mentioned all the relevant classes an methods involved; I also
> hope that someone (Martin?) corrects me if I'm wrong...
>
> Bye
>     Stefan
>
> Martin Grigorov wrote:
> > There is no Link impl in Wicket distro that does all you need.
> > DownloadLink is the closest but it uses ContentDisposition#ATTACHMENT to
> > make a real download experience.
> > I think it is OK to add a way to change the content disposition for the
> > next version.
> >
> > Until then you will have to use your own Link impl for this need. Extend
> > from DownloadLink and override its #onClick method.
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> >
> >
> > On Mon, Mar 24, 2014 at 4:32 PM, <Ch...@t-systems.com> wrote:
> >
> >> Sorry for so much questions but it’s the first webapp I have to develop.
> >> How can I change the ContentDisposition to show the data embedded in the
> >> browser? Which Link or button should I use.
> >>
> >>
> >> 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.Manig@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:mgrigorov@apache.org]
> >> Gesendet: Montag, 24. März 2014 15:25
> >> An: users@wicket.apache.org
> >> Betreff: Re: Show Excelsheet in Browser
> >>
> >> You can't at the moment.
> >>
> >> Martin Grigorov
> >> Wicket Training and Consulting
> >>
> >>
> >> On Mon, Mar 24, 2014 at 4:19 PM, <Ch...@t-systems.com> wrote:
> >>
> >>> How can I change the ContentDisposition while using an DownloadLink?
> >>>
> >>>
> >>> 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.Manig@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:mgrigorov@apache.org]
> >>> Gesendet: Montag, 24. März 2014 14:45
> >>> An: users@wicket.apache.org
> >>> Betreff: Re: Show Excelsheet in Browser
> >>>
> >>> 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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
> >>> For additional commands, e-mail: users-help@wicket.apache.org
> >>>
> >>>
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Show Excelsheet in Browser

Posted by Stefan Renz <s....@efonds.com>.
Hi,

we use a ResourceLink with a ResourceReference wrapping an
AbstractResource, that generates an Excel via POI in a WriteCallback
implementation. The AbstractResource implementation can
#setContentType() and #setContentDisposition() on the attributes object
passed into #newResourceResponse().

I hope I mentioned all the relevant classes an methods involved; I also
hope that someone (Martin?) corrects me if I'm wrong...

Bye
    Stefan

Martin Grigorov wrote:
> There is no Link impl in Wicket distro that does all you need.
> DownloadLink is the closest but it uses ContentDisposition#ATTACHMENT to
> make a real download experience.
> I think it is OK to add a way to change the content disposition for the
> next version.
> 
> Until then you will have to use your own Link impl for this need. Extend
> from DownloadLink and override its #onClick method.
> 
> Martin Grigorov
> Wicket Training and Consulting
> 
> 
> On Mon, Mar 24, 2014 at 4:32 PM, <Ch...@t-systems.com> wrote:
> 
>> Sorry for so much questions but it’s the first webapp I have to develop.
>> How can I change the ContentDisposition to show the data embedded in the
>> browser? Which Link or button should I use.
>>
>>
>> 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.Manig@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:mgrigorov@apache.org]
>> Gesendet: Montag, 24. März 2014 15:25
>> An: users@wicket.apache.org
>> Betreff: Re: Show Excelsheet in Browser
>>
>> You can't at the moment.
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>>
>>
>> On Mon, Mar 24, 2014 at 4:19 PM, <Ch...@t-systems.com> wrote:
>>
>>> How can I change the ContentDisposition while using an DownloadLink?
>>>
>>>
>>> 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.Manig@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:mgrigorov@apache.org]
>>> Gesendet: Montag, 24. März 2014 14:45
>>> An: users@wicket.apache.org
>>> Betreff: Re: Show Excelsheet in Browser
>>>
>>> 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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
> 



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


AW: Show Excelsheet in Browser

Posted by Ch...@t-systems.com.
Is it possible to override the onclick-method of DownloadLink and change the ContentDisposition to INLINE?


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.Manig@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:mgrigorov@apache.org] 
Gesendet: Montag, 24. März 2014 15:41
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

There is no Link impl in Wicket distro that does all you need.
DownloadLink is the closest but it uses ContentDisposition#ATTACHMENT to make a real download experience.
I think it is OK to add a way to change the content disposition for the next version.

Until then you will have to use your own Link impl for this need. Extend from DownloadLink and override its #onClick method.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:32 PM, <Ch...@t-systems.com> wrote:

> Sorry for so much questions but it’s the first webapp I have to develop.
> How can I change the ContentDisposition to show the data embedded in 
> the browser? Which Link or button should I use.
>
>
> 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.Manig@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:mgrigorov@apache.org]
> Gesendet: Montag, 24. März 2014 15:25
> An: users@wicket.apache.org
> Betreff: Re: Show Excelsheet in Browser
>
> You can't at the moment.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Mon, Mar 24, 2014 at 4:19 PM, <Ch...@t-systems.com> wrote:
>
> > How can I change the ContentDisposition while using an DownloadLink?
> >
> >
> > 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.Manig@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:mgrigorov@apache.org]
> > Gesendet: Montag, 24. März 2014 14:45
> > An: users@wicket.apache.org
> > Betreff: Re: Show Excelsheet in Browser
> >
> > 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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

Re: Show Excelsheet in Browser

Posted by Martin Grigorov <mg...@apache.org>.
There is no Link impl in Wicket distro that does all you need.
DownloadLink is the closest but it uses ContentDisposition#ATTACHMENT to
make a real download experience.
I think it is OK to add a way to change the content disposition for the
next version.

Until then you will have to use your own Link impl for this need. Extend
from DownloadLink and override its #onClick method.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:32 PM, <Ch...@t-systems.com> wrote:

> Sorry for so much questions but it’s the first webapp I have to develop.
> How can I change the ContentDisposition to show the data embedded in the
> browser? Which Link or button should I use.
>
>
> 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.Manig@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:mgrigorov@apache.org]
> Gesendet: Montag, 24. März 2014 15:25
> An: users@wicket.apache.org
> Betreff: Re: Show Excelsheet in Browser
>
> You can't at the moment.
>
> Martin Grigorov
> Wicket Training and Consulting
>
>
> On Mon, Mar 24, 2014 at 4:19 PM, <Ch...@t-systems.com> wrote:
>
> > How can I change the ContentDisposition while using an DownloadLink?
> >
> >
> > 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.Manig@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:mgrigorov@apache.org]
> > Gesendet: Montag, 24. März 2014 14:45
> > An: users@wicket.apache.org
> > Betreff: Re: Show Excelsheet in Browser
> >
> > 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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
> > For additional commands, e-mail: users-help@wicket.apache.org
> >
> >
>

AW: Show Excelsheet in Browser

Posted by Ch...@t-systems.com.
Sorry for so much questions but it’s the first webapp I have to develop. How can I change the ContentDisposition to show the data embedded in the browser? Which Link or button should I use.


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.Manig@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:mgrigorov@apache.org] 
Gesendet: Montag, 24. März 2014 15:25
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

You can't at the moment.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:19 PM, <Ch...@t-systems.com> wrote:

> How can I change the ContentDisposition while using an DownloadLink?
>
>
> 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.Manig@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:mgrigorov@apache.org]
> Gesendet: Montag, 24. März 2014 14:45
> An: users@wicket.apache.org
> Betreff: Re: Show Excelsheet in Browser
>
> 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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: Show Excelsheet in Browser

Posted by Martin Grigorov <mg...@apache.org>.
You can't at the moment.

Martin Grigorov
Wicket Training and Consulting


On Mon, Mar 24, 2014 at 4:19 PM, <Ch...@t-systems.com> wrote:

> How can I change the ContentDisposition while using an DownloadLink?
>
>
> 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.Manig@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:mgrigorov@apache.org]
> Gesendet: Montag, 24. März 2014 14:45
> An: users@wicket.apache.org
> Betreff: Re: Show Excelsheet in Browser
>
> 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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

AW: Show Excelsheet in Browser

Posted by Ch...@t-systems.com.
How can I change the ContentDisposition while using an DownloadLink?


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.Manig@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:mgrigorov@apache.org] 
Gesendet: Montag, 24. März 2014 14:45
An: users@wicket.apache.org
Betreff: Re: Show Excelsheet in Browser

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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Show Excelsheet in Browser

Posted by Carl-Eric Menzel <cm...@wicketbuch.de>.
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 <mg...@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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Show Excelsheet in Browser

Posted by Martin Grigorov <mg...@apache.org>.
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, <Ch...@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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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
> > >
> > >
> > >
> >
>

AW: Show Excelsheet in Browser

Posted by Ch...@t-systems.com.
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.Manig@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:mgrigorov@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, <Ch...@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:mgrigorov@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, <Ch...@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
> >
> >
> >
>

Re: Show Excelsheet in Browser

Posted by Martin Grigorov <mg...@apache.org>.
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, <Ch...@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:mgrigorov@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, <Ch...@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
> >
> >
> >
>

AW: Show Excelsheet in Browser

Posted by Ch...@t-systems.com.
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:mgrigorov@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, <Ch...@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
>
>
>

Re: Show Excelsheet in Browser

Posted by Martin Grigorov <mg...@apache.org>.
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, <Ch...@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
>
>
>