Return-Path: Delivered-To: apmail-myfaces-users-archive@www.apache.org Received: (qmail 90862 invoked from network); 13 Nov 2006 16:58:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2006 16:58:30 -0000 Received: (qmail 411 invoked by uid 500); 13 Nov 2006 16:58:36 -0000 Delivered-To: apmail-myfaces-users-archive@myfaces.apache.org Received: (qmail 367 invoked by uid 500); 13 Nov 2006 16:58:36 -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 355 invoked by uid 99); 13 Nov 2006 16:58:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 08:58:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of martin.marinschek@gmail.com designates 64.233.182.190 as permitted sender) Received: from [64.233.182.190] (HELO nf-out-0910.google.com) (64.233.182.190) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Nov 2006 08:58:22 -0800 Received: by nf-out-0910.google.com with SMTP id p46so2130692nfa for ; Mon, 13 Nov 2006 08:58:01 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QOP1SNF/+73VZKRiDmt6xUyLKiFkjNfiHj/ih1CRmHFB1DjvZ6I4CzZ9b63UXDtwEc/dbZd2tkgm833ksxL10OJXbRyJc7R4A1aNNq88DfMMbzf8vojWSpBnTy7L8yJB9mRt9gYX5gSJQbd+9G+910nTmyL5dBbwvUK6nWbS81s= Received: by 10.48.220.15 with SMTP id s15mr10203250nfg.1163437080897; Mon, 13 Nov 2006 08:58:00 -0800 (PST) Received: by 10.49.30.20 with HTTP; Mon, 13 Nov 2006 08:58:00 -0800 (PST) Message-ID: <5a99335f0611130858p3de0154fma6ef609378e09aa7@mail.gmail.com> Date: Mon, 13 Nov 2006 17:58:00 +0100 From: "Martin Marinschek" To: "MyFaces Discussion" Subject: Re: JSF EL In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Hi Rene, what do you mean by "in a non JSF context"? If you mean in your managed beans, you can do: FacesContext.getCurrentInstance().getApplication().getVariableResolver().re= solveVariable(FacesContext.getCurrentInstance(),"exprString"); If you mean general expression resolving, you might want to use the commons-el package directly. regards, Martin On 11/13/06, Rene Guenther wrote: > Hello, > > I would like to make use of JSF EL in a non JSF context. I > d like to do something like: > > String name =3D (String) EVALUATE(child, > "child.parent.name") instead of > String name =3D child.getParent().getName(); > > Probably there is somewhere the EVALUATE method I am > looking for. Anyone knows where? > > Thanks > Ren=E9 > --=20 http://www.irian.at Your JSF powerhouse - JSF Consulting, Development and Courses in English and German Professional Support for Apache MyFaces