Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 48640 invoked from network); 13 Dec 2005 22:37:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Dec 2005 22:37:23 -0000 Received: (qmail 21348 invoked by uid 500); 13 Dec 2005 22:37:20 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 21107 invoked by uid 500); 13 Dec 2005 22:37:18 -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 21096 invoked by uid 99); 13 Dec 2005 22:37:18 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 14:37:18 -0800 X-ASF-Spam-Status: No, hits=0.3 required=10.0 tests=RCVD_IN_NJABL_PROXY X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [72.3.139.240] (HELO s61200.enredese.net) (72.3.139.240) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 14:37:17 -0800 Received: from [192.168.1.9] (Dynamic-IP-cr2001188664.cable.net.co [200.118.86.64]) (authenticated bits=0) by s61200.enredese.net (8.12.11/8.12.11) with ESMTP id jBDNh5C3018486 for ; Tue, 13 Dec 2005 17:43:34 -0600 Message-ID: <439F4D43.1040200@unionsoluciones.com.co> Date: Tue, 13 Dec 2005 17:37:55 -0500 From: =?ISO-8859-1?Q?Juli=E1n_Garc=EDa?= User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: MyFaces Discussion Subject: Re: PhaseListener Doubts References: <439F4417.20005@unionsoluciones.com.co> <1a681ff20512131409l64b4801dq@mail.gmail.com> In-Reply-To: <1a681ff20512131409l64b4801dq@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks. I included this in my config xml co.com.atenaerp.seguridad.acegi.jsf.AccessDecicionManagerPhaseListener within the application tag....but now it doesn't print anything at all!.....what could be wrong..... Thanks in advance Bruno Aranda wrote: > It seems that the PhaseListener is being registered several times. > Have you added the faces-config.xml in the javax.faces.CONFIG_FILES > context parameter in the web.xml file? If so, you should remove that, > as the faces-config.xml file is parsed by default, so it is not > necessary to add it again in this context parameter, as it will be > parsed twice (and your phase listener added again). You should check > that your component is registering only once when the application > starts up. > > Regards, > > Bruno > > 2005/12/13, Juli�n Garc�a : > >>This is a basic question. I am just finishing a PhaseListener to be >>executed after the RENDER_RESPONSE phase. I add the listener to all my >>beans by executing the following code after setting all the properties >>that are configured in the faces-config: >> >>LifecycleFactory factory = >>(LifecycleFactory)FactoryFinder.getFactory(FactoryFinder.LIFECYCLE_FACTORY); >> Lifecycle lifecycle = >>factory.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE); >> lifecycle.addPhaseListener(new AccessDecicionManagerPhaseListener()); >> >>At the moment, my PhaseListener just prints the url of the page to be >>accessed, but the weird thing is that it is printing the urls several times. >> >>For instance, if i access seguridad/permiso/listadoPermiso.jsp then it >>prints.... /seguridad/permiso/listadoPermiso.jsp 7 times. Is this >>normal? Does this depend on the number of components? Beans referenced >>in the page? How can I force it to print the url just once?. >> >>Thanks for Help. >> >>Julian >> > >