Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 61252 invoked from network); 14 Aug 2007 17:17:50 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2007 17:17:50 -0000 Received: (qmail 76692 invoked by uid 500); 14 Aug 2007 17:17:44 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 76500 invoked by uid 500); 14 Aug 2007 17:17:43 -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 76489 invoked by uid 99); 14 Aug 2007 17:17:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 10:17:43 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 195.130.132.56 is neither permitted nor denied by domain of Jurgen.Lust@gmail.com) Received: from [195.130.132.56] (HELO adicia.telenet-ops.be) (195.130.132.56) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Aug 2007 17:17:53 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by adicia.telenet-ops.be (Postfix) with SMTP id 95A9D2300AC for ; Tue, 14 Aug 2007 19:17:17 +0200 (CEST) Received: from [192.168.2.122] (dD57799AE.access.telenet.be [213.119.153.174]) by adicia.telenet-ops.be (Postfix) with ESMTP id 6F6B2230118 for ; Tue, 14 Aug 2007 19:17:17 +0200 (CEST) Subject: Re: Schedule tomahawk From: Jurgen Lust Reply-To: jlust@apache.org To: users Content-Type: text/plain Date: Tue, 14 Aug 2007 19:17:14 +0200 Message-Id: <1187111834.20378.6.camel@rivendell.middleearth> Mime-Version: 1.0 X-Mailer: Evolution 2.10.2 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org It depends which authentication mechanism you're using, but when using a decent library like Acegi Security or SecurityFilter, you should be able to get some information about the logged in user, like the username, from FacesContext.getCurrentInstance().getExternalContext.getUserPrincipal() You can use this information to filter the events. Jurgen Op maandag 13-08-2007 om 13:09 uur [tijdzone -0700], schreef ignicolist: > Tks for your help, i read the values from the data base very well. But now i > have another problem. > > I have a user autentication, i read the users from a data base. SO, when i > read the events from data base in the class SimpleScheduleModel, i want to > read just the entries from the user loged in. > > I know do that, but the problem is the autentication is made in the > aplication not in the component, and i read the events in the component. So > how can i do to know the loged user in the component to read just the events > from that user? > > Any help please!! > > > Tks for all the help!! -- Jurgen Lust