From adffaces-user-return-1909-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Thu Jan 18 08:33:01 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 69005 invoked from network); 18 Jan 2007 08:33:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Jan 2007 08:33:00 -0000 Received: (qmail 43195 invoked by uid 500); 18 Jan 2007 08:33:06 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 43178 invoked by uid 500); 18 Jan 2007 08:33:06 -0000 Mailing-List: contact adffaces-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: adffaces-user@incubator.apache.org Delivered-To: mailing list adffaces-user@incubator.apache.org Received: (qmail 43169 invoked by uid 99); 18 Jan 2007 08:33:06 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 00:33:06 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of Renaud.Denis@bsb.com designates 213.193.146.76 as permitted sender) Received: from [213.193.146.76] (HELO serveur4.BSBCORP.BSB.COM) (213.193.146.76) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jan 2007 00:32:57 -0800 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: commandLink open new window Date: Thu, 18 Jan 2007 09:31:46 +0100 Message-ID: <0683C155C4F01E479E1560D1A30D9CF50F1C40@serveur4.bsbcorp.bsb.com> X-MS-Has-Attach: Importance: normal Priority: normal X-MS-TNEF-Correlator: Thread-Topic: commandLink open new window Thread-Index: Acc3EJC4EGAIDUZqTmOGqNgiIIhB8QDDvTDAAAHRWYAALLxFgA== From: "Renaud Denis" To: X-Virus-Checked: Checked by ClamAV on apache.org I'm sorry Stephan, but I can't actually see how this solve my problem... = ? My purpose is to generate a non-faces response from a faces request (I = mean, no link on a resource servlet or anything). It works well when = producing the response in the same window but I cannot actually find an = easy way to open this in a new window... -------------------------------------------------------- Renaud Denis (Renaud.Denis@bsb.com ) Consultant =20 BSB Belgium (www.bsb.com)=20 Avenue Ath=E9na 2 - B-1348 Louvain-la-Neuve T:+32 (0)10 48 79 63 - F:+32 (0)10 48 34 99 -------------------------------------------------------- -----Original Message----- From: Meyer, Stefan [mailto:S.Meyer@S2neueinformatik.de]=20 Sent: mercredi 17 janvier 2007 12:11 To: adffaces-user@incubator.apache.org Subject: AW: commandLink open new window If you want to launch a modeless dialog from a link, you can do it this = way: =20 To parse the parameters I use the ViewController from shale. I use a = non-faces request because the link is embedded in a tr:form whose target = is the current window. -----Urspr=FCngliche Nachricht----- Von: Renaud Denis [mailto:Renaud.Denis@bsb.com]=20 Gesendet: Mittwoch, 17. Januar 2007 11:11 An: adffaces-user@incubator.apache.org Betreff: RE: commandLink open new window A question in the same context; What if I want to generate a non-faces response from a faces request? For example, showing a PDF file in a new window via a classic = --- Backing bean method public void download(ActionEvent event) { HttpServletResponse response =3D (HttpServletResponse) = getExternalContext().getResponse(); response.setContentType(this.getContentType()); response.setBufferSize(this.getSize()); =09 try { ServletOutputStream ostream =3D response.getOutputStream(); byte[] content =3D this.getContent(); ostream.write(content); ostream.flush(); =09 // Indicate to JSF Framework that the response has already been = completed // And it must skip the render response phase of the JSF lifecycle. getFacesContext().responseComplete(); } catch (IOException e) { error("Download failed because of an I/O exception [" + = e.getMessage() + "]"); } } --- -------------------------------------------------------- Renaud Denis (Renaud.Denis@bsb.com ) Consultant =20 BSB Belgium (www.bsb.com) Avenue Athena 2 - B-1348 Louvain-la-Neuve T:+32 (0)10 48 79 63 - F:+32 (0)10 48 34 99 -------------------------------------------------------- BUSINESS SOLUTIONS BUILDERS DISCLAIMER This e-mail message and any attachments are intended exclusively for the = addressee(s) and may contain information which is confidential and/or = protected by intellectual property rights. If you receive this e-mail by = mistake, please notify immediately the sender, or Business Solutions = Builders (by e-mail at disclaimer@bsb.com), and delete the message and = any attachments without printing, copying or opening it. Any disclosure, = reproduction, distribution or use of this message or any attachments, by = persons other than the designed addressee(s), is strictly prohibited. = E-mail transmission and Internet use cannot be guaranteed to be secure. = Business Solutions Builders and its subsidiaries cannot be held = responsible for any loss, delay or damage arising from their use. -------------------------------------------------------- -----Original Message----- From: mwessendorf@gmail.com [mailto:mwessendorf@gmail.com] On Behalf Of Matthias Wessendorf Sent: samedi 13 janvier 2007 13:44 To: adffaces-user@incubator.apache.org Subject: Re: commandLink open new window useWindow=3D"true" outcome returns something like dialog:edit /all.xhtml dialog:edit /edit1.xhtml -Matthias On 1/12/07, Sabina Albu wrote: > Hi, > I'm trying to open a new window using: > > > target=3D"_blank" text=3D"Open new window" useWindow=3D"false" > windowWidth=3D"800" windowHeight=3D"500"> > > in my backing bean: > public String performOpenWindow(){ > ... > return "summaryView"; > } > > In my navigate.xml > > summaryView > /pages/SummaryView.xhtml > > > > Can someone point me to the right direction here. > > regards, > Sabina > --=20 Matthias Wessendorf http://tinyurl.com/fmywh further stuff: blog: http://jroller.com/page/mwessendorf mail: mwessendorf-at-gmail-dot-com