Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 27756 invoked from network); 4 Apr 2006 07:35:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 Apr 2006 07:35:55 -0000 Received: (qmail 28949 invoked by uid 500); 4 Apr 2006 07:35:51 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 28915 invoked by uid 500); 4 Apr 2006 07:35:51 -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 28904 invoked by uid 99); 4 Apr 2006 07:35:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 00:35:50 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [212.27.42.35] (HELO smtp5-g19.free.fr) (212.27.42.35) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Apr 2006 00:35:49 -0700 Received: from imp3-g19.free.fr (imp3-g19.free.fr [212.27.42.3]) by smtp5-g19.free.fr (Postfix) with ESMTP id AD1442689E for ; Tue, 4 Apr 2006 09:35:28 +0200 (CEST) Received: by imp3-g19.free.fr (Postfix, from userid 33) id E47215CFD; Tue, 4 Apr 2006 09:36:48 +0200 (CEST) Received: from 195.25.154.57 ([195.25.154.57]) by imp3-g19.free.fr (IMP) with HTTP for ; Tue, 04 Apr 2006 09:36:48 +0200 Message-ID: <1144136208.44322210cf70c@imp3-g19.free.fr> Date: Tue, 04 Apr 2006 09:36:48 +0200 From: =?iso-8859-1?b?U+liYXN0aWVu?= Marin To: MyFaces Discussion Subject: The content-type does not change MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 195.25.154.57 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, i'am working on BIRT printing with HTML and PDF format. So My report are OK and i can display it in HTML on a new Window. First pb : how can i open a popup in jsf? So i use Jenia popup... Second pb : to display the PDF report generates, i have to change the content-typt of the response. But when i am in debug, the content-type doesn't change and stay at "html/text". So my report isn't displayed properly. <--------------------------------------------------------> FacesContext context = FacesContext.getCurrentInstance(); HttpServletResponse httpServletResponse = context.getExternalContext().getResponse(); httpServletResponse .setContentType("application/pdf"); <--------------------------------------------------------> I work on a jetspeed portal. Please help me to solve or understand the problem. |Cordialement, S�bastien MARIN.| |------------------------------| |-> http://www.marin-s.com <-| |------------------------------|