Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 34725 invoked from network); 12 Jul 2007 16:28:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jul 2007 16:28:40 -0000 Received: (qmail 41469 invoked by uid 500); 12 Jul 2007 16:28:37 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 41431 invoked by uid 500); 12 Jul 2007 16:28:37 -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 41420 invoked by uid 99); 12 Jul 2007 16:28:37 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 09:28:37 -0700 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=DNS_FROM_AHBL_RHSBL,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of awiner@gmail.com designates 64.233.162.230 as permitted sender) Received: from [64.233.162.230] (HELO nz-out-0506.google.com) (64.233.162.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jul 2007 09:28:31 -0700 Received: by nz-out-0506.google.com with SMTP id r28so170297nza for ; Thu, 12 Jul 2007 09:28:11 -0700 (PDT) DKIM-Signature: a=rsa-sha1; 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:content-transfer-encoding:content-disposition:references; b=koksjgr6Qnb6ay3hHeREvajYPpse5AtCmPxjdYrfXWEEp5AQfhkHK9M/gaGqkTMLEDRSpJyG7PHeU87HA4HsDXSPSdQ80uHWIRT6Uv21c7YEgwNXeJd+RcdZWWcLdjNiGHoBjmuX4Tv7KCb4JCK5P2HggUWEZrUxoSedIEJUys0= 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:content-transfer-encoding:content-disposition:references; b=HEySsaJnFGEQeMTYuFyarDL0T1rkPTTNw5wi9Zg96Zd6i9V6T9IV1pC7amLLx432sIZtVi+gxS/OKNrXwsv6g1/Oo4pGE+VE/O/FEV8+HUN2Y/bmAix/B1I/NNJW9dSrbWcwjbNfkEN5N75P8AWepGO3z0Cnpb2k+x26LqT0hxY= Received: by 10.115.79.1 with SMTP id g1mr745523wal.1184257690665; Thu, 12 Jul 2007 09:28:10 -0700 (PDT) Received: by 10.115.18.12 with HTTP; Thu, 12 Jul 2007 09:28:05 -0700 (PDT) Message-ID: <6dac79b90707120928v1a35b92erfca4d6aaa7620bbf@mail.gmail.com> Date: Thu, 12 Jul 2007 09:28:05 -0700 From: "Adam Winer" To: "MyFaces Discussion" Subject: Re: [Trinidad] FacesContext's UIViewRoot in PhaseListener In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org The UIViewRoot is populated post-Restore View. If you want the view root to be populated, you'd better make that request a POST with all form data available. -- Adam On 7/11/07, Trung Hoang wrote: > Hi, I am creating some ajax functionality which makes a request to a phase > listener. Im actually using Oracle ADF 10.1.3 but i want to know how it > works in Trinidad so i could try to figure out how to do it in ADF 10.1.3 > > My query is, I need access to the UIViewRoot available via > FacesContext.getInstance().getViewRoot(). When i access this in my > PhaseListener, it's empty since JSF thinks the ajax request is a new view. > > Now, i need to tell JSF that i want to access the ViewRoot of the parent > page where the ajax enable component is on, where the UIViewRoot is already > populated. > > Seemingly easy stuff, as Ajax4JSF and many other component frameworks > probably already do it. I've seen a post by someone on the Oracle forums > trying to do the same thing without success > http://forums.oracle.com/forums/thread.jspa?threadID=527009 > . Surely ADF can do it since it works!!! How do i get it to work for my > situation. > > Do i need to supply special values in the ajax request? Do i need to extend > the ADF PhaseListener? >