From adffaces-user-return-1885-apmail-incubator-adffaces-user-archive=incubator.apache.org@incubator.apache.org Wed Jan 17 16:10:58 2007 Return-Path: Delivered-To: apmail-incubator-adffaces-user-archive@locus.apache.org Received: (qmail 61044 invoked from network); 17 Jan 2007 16:10:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 Jan 2007 16:10:36 -0000 Received: (qmail 19922 invoked by uid 500); 17 Jan 2007 16:10:38 -0000 Delivered-To: apmail-incubator-adffaces-user-archive@incubator.apache.org Received: (qmail 19904 invoked by uid 500); 17 Jan 2007 16:10:38 -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 19895 invoked by uid 99); 17 Jan 2007 16:10:38 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2007 08:10:38 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=MSGID_FROM_MTA_HEADER,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of mholitska3@hotmail.com designates 65.54.246.149 as permitted sender) Received: from [65.54.246.149] (HELO bay0-omc2-s13.bay0.hotmail.com) (65.54.246.149) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Jan 2007 08:10:27 -0800 Received: from hotmail.com ([64.4.16.54]) by bay0-omc2-s13.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2668); Wed, 17 Jan 2007 08:10:07 -0800 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Wed, 17 Jan 2007 08:10:07 -0800 Message-ID: Received: from 198.168.250.7 by by22fd.bay22.hotmail.msn.com with HTTP; Wed, 17 Jan 2007 16:10:03 GMT X-Originating-IP: [198.168.250.7] X-Originating-Email: [mholitska3@hotmail.com] X-Sender: mholitska3@hotmail.com In-Reply-To: <1F701D303A73F2458C1F9B1439C115E40132F952@ex1.S2.int> From: "magdolna holitska" To: adffaces-user@incubator.apache.org Subject: RE: commandLink open new window Date: Wed, 17 Jan 2007 11:10:03 -0500 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 17 Jan 2007 16:10:07.0117 (UTC) FILETIME=[F47133D0:01C73A51] X-Virus-Checked: Checked by ClamAV on apache.org Hi all, Thank you for your input. I might need to go down the path suggested by Stefan. However, before that, I would like to try to take advantage if the "PageFlowScope" suggested in the Trinidad documentation: http://incubator.apache.org/adffaces/devguide/communicatingBetweenPages.html Here is my question: Is there a way to open a non-modal (non-dialog) window from a current window using the "PageFlowScope"? Or was it exclusively meant to be used by dialogs only? The requirement for my application is to open multiple instances of the same screen, each with its own set of parameters. By reading the documentation about "PageFlowScope" I got the impression that it was designed to handle these cases. Thank you, Magdolna >From: "Meyer, Stefan" >Reply-To: adffaces-user@incubator.apache.org >To: >Subject: AW: commandLink open new window >Date: Wed, 17 Jan 2007 12:11:11 +0100 > >If you want to launch a modeless dialog from a link, you can do it this >way: > > onclick="window.open('','WindowName','width=700px,height=500px,resizable=true,scrollbars=yes');" >destination="/popup.jsf" targetFrame="name"> > > >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�ngliche Nachricht----- >Von: Renaud Denis [mailto:Renaud.Denis@bsb.com] >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 = (HttpServletResponse) >getExternalContext().getResponse(); > response.setContentType(this.getContentType()); > response.setBufferSize(this.getSize()); > > try { > ServletOutputStream ostream = >response.getOutputStream(); > byte[] content = this.getContent(); > ostream.write(content); > ostream.flush(); > > // 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 > > >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="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="_blank" text="Open new window" useWindow="false" > > windowWidth="800" windowHeight="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 > > > > >-- >Matthias Wessendorf >http://tinyurl.com/fmywh > >further stuff: >blog: http://jroller.com/page/mwessendorf >mail: mwessendorf-at-gmail-dot-com _________________________________________________________________ Buy what you want when you want it on Sympatico / MSN Shopping http://shopping.sympatico.msn.ca/content/shp/?ctId=2,ptnrid=176,ptnrdata=081805