Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 15289 invoked from network); 13 Sep 2007 15:52:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 15:52:25 -0000 Received: (qmail 28934 invoked by uid 500); 13 Sep 2007 15:52:12 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 28904 invoked by uid 500); 13 Sep 2007 15:52:12 -0000 Mailing-List: contact users-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Discussion" Delivered-To: mailing list users@myfaces.apache.org Received: (qmail 28893 invoked by uid 99); 13 Sep 2007 15:52:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 08:52:12 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mail.micke@gmail.com designates 209.85.128.191 as permitted sender) Received: from [209.85.128.191] (HELO fk-out-0910.google.com) (209.85.128.191) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 15:52:07 +0000 Received: by fk-out-0910.google.com with SMTP id 18so564070fks for ; Thu, 13 Sep 2007 08:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=tQ8fImx24ia+ERoX1AdrI8XNmwWDdGP4tQAP0ZTGcIU=; b=YGgVLcIVx0hsNumAv1plLFBp48/bSSyE3H0Y3EZ/kmvzZyn5tk3QsGxddRb1uMSUw8QwSjtFGPhK16e6YxyYn75GWVKa5Hzim+0QZlQKkNPZOGDeJMTReeFNvPwMxKTDrf+iYsnq4cyN08XbdJhRkk3Wfy8tJw93Ng+q3W4XuaQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=NssVz8zttmntw5+fb6pFOI5uW0utHEwR8S7Q039RrzgmOFacRUP1Oo6IUwV5QGAXdj5sv2B3oK89cTOv2FQiMGuo2JY0PLuByBh/avZ1YXt7MU4wZSDASDGsA33qwUaI9md7bmL6vO3t2G+QCl9Sn4NrpwDUDzjA4vXEh1sSCp0= Received: by 10.82.178.11 with SMTP id a11mr1136822buf.1189698706524; Thu, 13 Sep 2007 08:51:46 -0700 (PDT) Received: by 10.82.106.7 with HTTP; Thu, 13 Sep 2007 08:51:46 -0700 (PDT) Message-ID: <8eed5c5b0709130851n3d67d838s577e3e715c1a3e41@mail.gmail.com> Date: Thu, 13 Sep 2007 16:51:46 +0100 From: "Mikael Andersson" To: "MyFaces Discussion" Subject: Re: Download File In-Reply-To: <8eed5c5b0709130850w1d27557cv4e5743ff1f3c2e0d@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24928_16987158.1189698706514" References: <46E92C37.4000205@ebi.ac.uk> <71235db40709130636q1fbcada2pfa8141e74af69c2b@mail.gmail.com> <46E92FE1.5090302@ebi.ac.uk> <71235db40709130655t5eb2abfbyed9bdf000ef070b8@mail.gmail.com> <8eed5c5b0709130850w1d27557cv4e5743ff1f3c2e0d@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24928_16987158.1189698706514 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry wrong method name, should be "exportHtmlTableToExcel", copy pasting is difficult ;) On 13/09/2007, Mikael Andersson wrote: > > You can also do this with plain jsf in a action method. > > Search for this method "getInstrumentsBySecCodePattern" on this page : > http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel > > That method could easily be changed into a normal action method. Seem to > remeber there was a page in the wiki with howto-download information but > couldn't find it :) > > Cheers, > Mike > > > On 13/09/2007, Matthias Wessendorf wrote: > > > > On 9/13/07, Wolfgang wrote: > > > Which Trinidad component should that be?? > > > > no component; an actionListener. > > > > See the doc: > > > > > > http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_fileDownloadActionListener.html > > > > source is here: > > > > > > http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/FileDownloadActionListener.java?revision=548532&view=markup > > > > > Can I also use the upload file component for downloading? > > > > no. > > > > greetings, > > matthias > > > > > > Trinidad has an actionlistener for that. > > > > If you aren't using trinidad, you still can take a look at the code > > > > and use its logic. > > > > > > > > -Matthias > > > > > > > > On 9/13/07, Wolfgang wrote: > > > > > > > >> Hi, > > > >> > > > >> is there any kind of a jsf component with which I can download > > files? > > > >> I need just a simple download-button on my webpage. > > > >> > > > >> Cheers! > > > >> > > > >> > > > > > > > > > > > > > > > > > > > > > > > > -- > > Matthias Wessendorf > > > > further stuff: > > blog: http://matthiaswessendorf.wordpress.com/ > > mail: matzew-at-apache-dot-org > > > > ------=_Part_24928_16987158.1189698706514 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sorry wrong method name, should be "exportHtmlTableToExcel", copy pasting is difficult ;)


On 13/09/2007, Mikael Andersson < mail.micke@gmail.com> wrote:
You can also do this with plain jsf in a action method.

Search for this method "getInstrumentsBySecCodePattern" on this page :
http://wiki.apache.org/myfaces/Exporting_DataTable_To_MS-Excel

That method could easily be changed into a normal action method. Seem to remeber there was a page in the wiki with howto-download information but couldn't find it :)

Cheers,
Mike



On 13/09/2007, Matthias Wessendorf <matzew@apache.org > wrote:
On 9/13/07, Wolfgang <wkluge@ebi.ac.uk> wrote:
> Which Trinidad component should that be??

no component; an actionListener.

See the doc:

http://myfaces.apache.org/trinidad/trinidad-api/tagdoc/tr_fileDownloadActionListener.html

source is here:

http://svn.apache.org/viewvc/myfaces/trinidad/trunk/trinidad/trinidad-impl/src/main/java/org/apache/myfaces/trinidadinternal/taglib/listener/FileDownloadActionListener.java?revision=548532&view=markup

> Can I also use the upload file component for downloading?

no.

greetings,
matthias

> > Trinidad has an actionlistener for that.
> > If you aren't using trinidad, you still can take a look at the code
> > and use its logic.
> >
> > -Matthias
> >
> > On 9/13/07, Wolfgang <wkluge@ebi.ac.uk> wrote:
> >
> >> Hi,
> >>
> >> is there any kind of a jsf component with which I can download files?
> >> I need just a simple download-button on my webpage.
> >>
> >> Cheers!
> >>
> >>
> >
> >
> >
>
>


--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
mail: matzew-at-apache-dot-org


------=_Part_24928_16987158.1189698706514--