Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96D8D9F65 for ; Fri, 21 Dec 2012 07:15:49 +0000 (UTC) Received: (qmail 54754 invoked by uid 500); 21 Dec 2012 07:15:49 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 54603 invoked by uid 500); 21 Dec 2012 07:15:48 -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 54556 invoked by uid 99); 21 Dec 2012 07:15:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2012 07:15:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of zhao.koh@gmail.com designates 209.85.210.47 as permitted sender) Received: from [209.85.210.47] (HELO mail-da0-f47.google.com) (209.85.210.47) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Dec 2012 07:15:39 +0000 Received: by mail-da0-f47.google.com with SMTP id s35so1931478dak.6 for ; Thu, 20 Dec 2012 23:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=E5I3RfZsHHoltzYeyLRAeUf7SieEQIE83IXRPU8IIQ0=; b=fT9NkkNe8ovKZDnkeivtJwF0tnKv5c5p44Hi3U18ffHBG/cdtq0KE9heMzOP/jCAAi OsJS0HkMg9MBHvDNACxzghstYbS8EW23Y6fTsAXwR/H+WCGX+wGK3h5PKw2TyjujN/Sh Kp6R7hBK5FPExxp2geLJZF7idE64qDw7CbUwGaCwxBQGv0Fn3eRD4KBGNRWe3oMZ6jFI /SzMUpvcQ0hDansC5Xb51GV2BXiERqFalqlI53yBfCgognZcZuJEY2evBQTBqhqKXCw3 /iyvS2/kcCDR5bQav0Hwvmdf02CA1o2mdNbiElkL7sBM+LlEhtbmyYZOhbrtl9bOcsCK pD/w== X-Received: by 10.68.241.65 with SMTP id wg1mr37584116pbc.141.1356074118028; Thu, 20 Dec 2012 23:15:18 -0800 (PST) Received: from [192.168.1.4] (115-64-130-151.static.tpgi.com.au. [115.64.130.151]) by mx.google.com with ESMTPS id se4sm6494733pbb.13.2012.12.20.23.15.16 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Dec 2012 23:15:17 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: MyFaces 2.1.8 - Issues with composite component renderFacet From: Zhao Koh In-Reply-To: Date: Fri, 21 Dec 2012 18:15:12 +1100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <60517876-ED01-413E-8228-FF2CBA1674B7@gmail.com> To: "MyFaces Development" X-Mailer: Apple Mail (2.1283) X-Virus-Checked: Checked by ClamAV on apache.org Thanks Leonardo for the prompt response.=20 I did a test today by removing prependId=3D"false" from my form, but it = does not seem to fix the issue with v2.1.8. One question - how can I re-open the JIRA ticket MYFACES-3373? I have = registered myself in JIRA but unable to re-open the issue which is = closed at the moment. Leonardo, if you have any interim workaround for this issue, please let = me know. Thanks again. Regards, Zhao On 21/12/2012, at 4:32 AM, Leonardo Uribe wrote: > Hi >=20 > It is probably a bug, just that it is hard to see it at first view. I > can't reproduce it, > but I found the change that create the problem: >=20 > https://issues.apache.org/jira/browse/MYFACES-3373 >=20 > UIForm.createUniqueId should take into account prependId logic >=20 > The problem is related to >=20 > https://issues.apache.org/jira/browse/MYFACES-3663 >=20 > UIViewRoot.createUniqueId() should generate unique ids for all the > component tree. >=20 > I think in your case there should be one component programatically = added by a > third party library that changes the order of the generated ids. If > the order changes, > the action is not executed the first time. I suppose if you set > prependId to true it > will work. >=20 > Please reopen MYFACES-3373 in order to fix it properly. I think the > solution is only > apply the code when prependId is false AND the seed is not provided. >=20 > Thanks for the report. Issues like this one are hard to find. >=20 > regards, >=20 > Leonardo Uribe >=20 > 2012/12/20 Zhao Koh : >> Hi all, >>=20 >> I am currently using MyFaces 2.1.8 but discovered an issue with = composite >> component renderFacet - and this issue started at version 2.1.4. >>=20 >> The following describes the problem: >>=20 >> I have a composite component called buttonSelectBox that uses >> composite:renderFacet to inject content from client - nothing fancy, = only a >> span that surrounds the content. >>=20 >>=20 >> > xmlns:h=3D"http://java.sun.com/jsf/html" >> xmlns:f=3D"http://java.sun.com/jsf/core" >> xmlns:c=3D"http://java.sun.com/jsp/jstl/core" >> xmlns:ui=3D"http://java.sun.com/jsf/facelets" >> xmlns:composite=3D"http://java.sun.com/jsf/composite" >> xmlns:p=3D"http://primefaces.org/ui"> >>=20 >> >> >> >> >> >>=20 >> >> >> >> >> >>=20 >> >>=20 >>=20 >>=20 >> Then I have a facelet page that uses this composite component and a = standard >> that invokes an action. >>=20 >> > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> >>=20 >> > xmlns:h=3D"http://java.sun.com/jsf/html" >> xmlns:c=3D"http://java.sun.com/jsp/jstl/core" >> xmlns:f=3D"http://java.sun.com/jsf/core" >> xmlns:ui=3D"http://java.sun.com/jsf/facelets" >> xmlns:custom=3D"http://java.sun.com/jsf/composite/components" >> xmlns:p=3D"http://primefaces.org/ui" >> xmlns:pe=3D"http://primefaces.org/ui/extensions" >> lang=3D"en"> >>=20 >> >> >> >>=20 >> >>=20 >> >> >>=20 >>=20 >> The issue is whenever the web app that contains the above deployed to = web >> container (I am using Websphere 7), the button on the facelet page = does not >> register the action until the second click, i.e. the first click does >> nothing. The request did reach the server though. >>=20 >> I have tried every version since 2.1.4 - 2.1.8, and it still = occurring - so >> I am currently downgraded to 2.1.3. >>=20 >> Can you please advise if this is a bug or something that I have = missed? If >> this is a bug, how can I go about raising this in JIRA? >>=20 >> Any comment would be much appreciated. >>=20 >> Thanks. >>=20 >> Regards, >> Zhao >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20