Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 85752 invoked from network); 19 Apr 2007 10:14:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Apr 2007 10:14:59 -0000 Received: (qmail 89950 invoked by uid 500); 19 Apr 2007 10:15:00 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 89927 invoked by uid 500); 19 Apr 2007 10:15:00 -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 89916 invoked by uid 99); 19 Apr 2007 10:15:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 03:14:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [212.227.126.186] (HELO moutng.kundenserver.de) (212.227.126.186) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Apr 2007 03:14:52 -0700 Received: from [172.23.4.153] (helo=pustefix153.kundenserver.de) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis), id 0MKxQS-1HeTeo2qwn-0001O3; Thu, 19 Apr 2007 12:14:30 +0200 Message-Id: <3055703.829951176977670687.JavaMail.servlet@kundenserver> From: "H. Swaczinna" To: Subject: [Tobago] Problem with target attribue (Reminder) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 26990028 X-Routing: DE X-Message-Id: <26990028$1176977670612172.23.4.15315271968@pustefix153.kundenserver.de--1496272565> X-Received: from pustefix153.kundenserver.de by 194.113.141.55 with HTTP id 26990028 for [users@myfaces.apache.org]; Thu, 19 Apr 2007 12:14:30 CEST Date: Thu, 19 Apr 2007 12:14:30 +0200 X-Provags-ID: V01U2FsdGVkX1893IvJrpt1SDzrDW/tj5lLkO/Yhtxw1I+VYQi vKLkt9LiNnQqTA6WGm0fkAKzx9ph0QEMm1BgJnnPquP3BvjdLj ikKoXThGu7usJkipwuPxg== X-Virus-Checked: Checked by ClamAV on apache.org Hi, I want to display the result of an action (a new page) in a new browser window. So I set the target attribute of tc:link or tc:button to the window name. This works fine. But when I click another button or link in the page the action is not executed (the page is rendered again). I always have to click the button twice. I think this is a known problem with a known solution. In my code for the PDF download I included this two lines to avoid this problem: // Save serialized view or else after clicking on the export button, // user will have to click TWICE to invoke another action StateManager stateManager = (StateManager)facesContext.getApplication().getStateManager(); stateManager.saveSerializedView(facesContext); (Taken from http://swforum.sun.com/jive/thread.jspa?threadID=63566) Maybe this code should be included in Tobago (or myFaces?) when the target attribute is set. Here's a simple test case for you: test1.jsp test2.jsp faces-config.xml /test1.jsp newWindow /test2.jsp Controller.java public String newWindowAction() { LOG.debug("newWindowAction"); return "newWindow"; } public void anotherAction() { LOG.debug("anotherAction"); } When you click the "new window" link in test1.jsp a new window is opened with test2.jsp. But when you click the link again test1.jsp is displayed in the new window. When you click the "another action" button after clicking the "new window" link the anotherAction() is not called. You have to click the button once again. I'm using myFaces 1.1.5 and Tobago 1.0.11 from yesterday. I think you should be able to reproduce this behavior. Regards Helmut