Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 18446 invoked from network); 18 Jun 2009 17:54:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Jun 2009 17:54:23 -0000 Received: (qmail 88220 invoked by uid 500); 18 Jun 2009 17:54:33 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 88063 invoked by uid 500); 18 Jun 2009 17:54:32 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 88032 invoked by uid 99); 18 Jun 2009 17:54:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 17:54:31 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Jun 2009 17:54:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6465D234C044 for ; Thu, 18 Jun 2009 10:54:07 -0700 (PDT) Message-ID: <1252627339.1245347647397.JavaMail.jira@brutus> Date: Thu, 18 Jun 2009 10:54:07 -0700 (PDT) From: "Henri Biestro (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (JEXL-29) Support non-object-level functions/methods, as size and empty function MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JEXL-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12721378#action_12721378 ] Henri Biestro commented on JEXL-29: ----------------------------------- The patch attached to JEXL-15 (2.0 trunk) should fix this too. > Support non-object-level functions/methods, as size and empty function > ---------------------------------------------------------------------- > > Key: JEXL-29 > URL: https://issues.apache.org/jira/browse/JEXL-29 > Project: Commons JEXL > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Weikuo Liaw > Priority: Critical > Fix For: 2.0 > > > This needs an enhanced JexlContext, as suggested in the prev request, to work. > As configured validators in a validation form. It is nice for users to use those validators directly such as "required(object)" or "requiredif(object, not empty(object2))". > I have added "LOOKAHEAD(3) Method() " in the Reference() in Parse.jjt, so it can be accepted but it needs changes to ASTMethod and JexlContext to work. > void Reference() : {} > { > (LOOKAHEAD(Identifier() "[" ( Expression() | IntegerLiteral() | Reference()) "]") ArrayAccess() | LOOKAHEAD(3) Method() | Identifier() ) > (LOOKAHEAD(2) "." -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.