Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 11658 invoked from network); 13 Sep 2007 15:51:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Sep 2007 15:51:18 -0000 Received: (qmail 23640 invoked by uid 500); 13 Sep 2007 15:51:07 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 23603 invoked by uid 500); 13 Sep 2007 15:51:07 -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 23592 invoked by uid 99); 13 Sep 2007 15:51:07 -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:51:07 -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.185 as permitted sender) Received: from [209.85.128.185] (HELO fk-out-0910.google.com) (209.85.128.185) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Sep 2007 15:51:03 +0000 Received: by fk-out-0910.google.com with SMTP id 18so563810fks for ; Thu, 13 Sep 2007 08:50:41 -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=Yl+sSyvG7dF1uLwaQM38ucY7kCsRa0t460aQVzdpcKE=; b=Pu6JBk3mtGd9M+ZVRGIIca3QhCCfXxv09CAdbDoB6fgacpOxd5lZ1nkyDWoudfJHvl/3aG3YOshJHXMtZXTXZIvp6ybmZyn5jF9m4IoBhTuA7KzTWMLvuBjs/tuc2Z7OGqa4kzvH9/UBLWAb8CQ9u35X6vQm6+B++vfw9DIZJG4= 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=MFroL0F9e2Dcncgb3hlf8KwDf96PVy7NWkONAa1PRu54AJ5XXFKEn32j7gVs+lC0BylEnrm+qvs6BQ/ioidg2Z42x0Li9DKL6mpQKczmlMaxtYVacDDkzKL8nQAEQjv13oOP1uYN4CwTBTh64Q75hl0M1Gp27SZS/WYtbPPaBvA= Received: by 10.82.114.3 with SMTP id m3mr1131524buc.1189698641652; Thu, 13 Sep 2007 08:50:41 -0700 (PDT) Received: by 10.82.106.7 with HTTP; Thu, 13 Sep 2007 08:50:41 -0700 (PDT) Message-ID: <8eed5c5b0709130850w1d27557cv4e5743ff1f3c2e0d@mail.gmail.com> Date: Thu, 13 Sep 2007 16:50:41 +0100 From: "Mikael Andersson" To: "MyFaces Discussion" Subject: Re: Download File In-Reply-To: <71235db40709130655t5eb2abfbyed9bdf000ef070b8@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_24922_33211284.1189698641643" References: <46E92C37.4000205@ebi.ac.uk> <71235db40709130636q1fbcada2pfa8141e74af69c2b@mail.gmail.com> <46E92FE1.5090302@ebi.ac.uk> <71235db40709130655t5eb2abfbyed9bdf000ef070b8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_24922_33211284.1189698641643 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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_24922_33211284.1189698641643 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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_24922_33211284.1189698641643--