Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 6CBF5200CDE for ; Tue, 8 Aug 2017 17:23:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6B0961676EE; Tue, 8 Aug 2017 15:23:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id AE89C1676EC for ; Tue, 8 Aug 2017 17:23:11 +0200 (CEST) Received: (qmail 96410 invoked by uid 500); 8 Aug 2017 15:23:10 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 96400 invoked by uid 99); 8 Aug 2017 15:23:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Aug 2017 15:23:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 32FF11A0634 for ; Tue, 8 Aug 2017 15:23:10 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.718 X-Spam-Level: * X-Spam-Status: No, score=1.718 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_FAIL=0.919] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id DJmap2M3TUbI for ; Tue, 8 Aug 2017 15:23:09 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 092A05F21F for ; Tue, 8 Aug 2017 15:23:03 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 27D1DE059C for ; Tue, 8 Aug 2017 15:23:02 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id C0F0E23FFD for ; Tue, 8 Aug 2017 15:23:00 +0000 (UTC) Date: Tue, 8 Aug 2017 15:23:00 +0000 (UTC) From: "Thomas Andraschko (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MYFACES-4132) Search expression doesn't work as expected when expression is id:keyword MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 08 Aug 2017 15:23:12 -0000 [ https://issues.apache.org/jira/browse/MYFACES-4132?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16118461#comment-16118461 ] Thomas Andraschko commented on MYFACES-4132: -------------------------------------------- Could you please create a unit test for it? we have many unit tests for search expressions. > Search expression doesn't work as expected when expression is id:keyword > ------------------------------------------------------------------------ > > Key: MYFACES-4132 > URL: https://issues.apache.org/jira/browse/MYFACES-4132 > Project: MyFaces Core > Issue Type: Bug > Affects Versions: 2.3.0-beta > Reporter: Eduardo Breijo > Attachments: ComponentSearchExpression.war > > > When a component search is done using an expression of this type "id:keyword", the resolved id is unexpected. > I have provided a test app: > 1) Deploy the app on tomcat > 2) Drive a request: http://localhost:8080/ComponentSearchExpression/index.xhtml > 3) When you check this response message: "TEST resolveComponent with search expression 'form1:@parent' -> form1" we should expect that the expression "form1:@parent" resolves to "body" and not "form1". > 4) Another example in that same test: Check the page source and look for "Body Child(1)" which is an outputLabel, the search expression used in the for attribute is "body:@child(1)" and this should resolve to "form1" but instead it is resolving to "body" > Tested this app using mojarra and it works as expected. -- This message was sent by Atlassian JIRA (v6.4.14#64029)