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 E7F467019 for ; Tue, 26 Jul 2011 17:39:35 +0000 (UTC) Received: (qmail 24043 invoked by uid 500); 26 Jul 2011 17:39:35 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 23785 invoked by uid 500); 26 Jul 2011 17:39:34 -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 23601 invoked by uid 99); 26 Jul 2011 17:39:34 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 17:39:34 +0000 X-ASF-Spam-Status: No, hits=-2001.2 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jul 2011 17:39:32 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id B0A1688380 for ; Tue, 26 Jul 2011 17:39:10 +0000 (UTC) Date: Tue, 26 Jul 2011 17:39:10 +0000 (UTC) From: "Max Starets (JIRA)" To: dev@myfaces.apache.org Message-ID: <497168117.8522.1311701950720.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1964790450.7504.1311690789624.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (TRINIDAD-2123) tr:chart chartDrillDownListener method not called with facelets MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/TRINIDAD-2123?page=3Dcom.atlass= ian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1= 3071240#comment-13071240 ]=20 Max Starets commented on TRINIDAD-2123: --------------------------------------- As a temporary workaround, you can use a component binding for your chart w= ith a request-scoped bean. In your bean's setter method (lets say it is cal= led setChart()) you can call addChartDrillDownListener programmatically to = register your listener. > tr:chart chartDrillDownListener method not called with facelets > --------------------------------------------------------------- > > Key: TRINIDAD-2123 > URL: https://issues.apache.org/jira/browse/TRINIDAD-2123 > Project: MyFaces Trinidad > Issue Type: Bug > Components: Components, Facelets > Affects Versions: 2.0.0 > Environment: Intel x64 platform, Windows 7, FireFox 5.0 > Reporter: Kokavecz Andr=C3=A1s > Original Estimate: 1h > Remaining Estimate: 1h > > I'm trying to use Trinidad charts and I have problems with the chartDrill= Down listener and also with the binding of the chart component to an UIComp= onent. > 1.) > If I use a JSPX page with jsp:root and f:view tags, so withOUT Facelets i= t all works fine...the chartDrillDown fires up. > 2.) > If inside ui:composition tags, so WITH facelets the problem is, that the = API tries to look up the chartDrillDownListener as a property not as a Meth= odExpression. > This is also the case with bindig the tr:chart element to an UIComponent. > I debugged the class UIXChart, as the event travels throught its "broadca= st(FacesEvent event)" method. > =09=09// Deliver to the default ChartDrillDownEvent > =09=09if (event instanceof ChartDrillDownEvent) { > =09=09=09broadcastToMethodExpression(event, getChartDrillDownListener()); > =09=09} > =09=09super.broadcast(event); > In case of FACELETS the getChartDrillDownListener() method tries to call = getProperty() for UIXComponentBase and exits with a PropertyNotFoundExcepti= on. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira