Return-Path: Delivered-To: apmail-beehive-dev-archive@www.apache.org Received: (qmail 55616 invoked from network); 31 Aug 2005 20:21:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Aug 2005 20:21:10 -0000 Received: (qmail 19144 invoked by uid 500); 31 Aug 2005 20:21:09 -0000 Delivered-To: apmail-beehive-dev-archive@beehive.apache.org Received: (qmail 19127 invoked by uid 500); 31 Aug 2005 20:21:09 -0000 Mailing-List: contact dev-help@beehive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Beehive Developers" Delivered-To: mailing list dev@beehive.apache.org Received: (qmail 19112 invoked by uid 99); 31 Aug 2005 20:21:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2005 13:21:07 -0700 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id DEF79E1 for ; Wed, 31 Aug 2005 22:21:06 +0200 (CEST) Message-ID: <825199248.1125519666911.JavaMail.jira@ajax.apache.org> Date: Wed, 31 Aug 2005 22:21:06 +0200 (CEST) From: "Alejandro Ramirez (JIRA)" To: dev@beehive.apache.org Subject: [jira] Assigned: (BEEHIVE-97) Event notifiers aren't registered for Control extensions Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/BEEHIVE-97?page=all ] Alejandro Ramirez reassigned BEEHIVE-97: ---------------------------------------- Assign To: Zach Smith (was: Kyle Marvin) Zach, can you verify this? > Event notifiers aren't registered for Control extensions > -------------------------------------------------------- > > Key: BEEHIVE-97 > URL: http://issues.apache.org/jira/browse/BEEHIVE-97 > Project: Beehive > Type: Bug > Reporter: Dan Diephouse > Assignee: Zach Smith > Fix For: TBD > > I am extending a control, and the Event notifier isn't registered when I use the extended control (only when I use the non-extended control). > To understand, look at these constructors: > public XFireClientControlBean(ControlBeanContext context, String id, PropertyMap props) > { > super(context, id, props, org.controlhaus.xfire.client.XFireClientControl.class); > > // > // Register event notifier instances for any EventSets > // > setEventNotifier(EndInvokeCallback.class, new EndInvokeCallbackNotifier()); > } > /** > * This is the protected version that is used by any ControlBean subclass > */ > protected XFireClientControlBean(ControlBeanContext context, String id, PropertyMap props, > Class controlClass) > { > super(context, id, props, controlClass); > } > The event notifier is only registered in the first case, but should be registered in both. Extended controls call teh second constructor, so it doesn't receive any events. So, "super" should just be changed to "this": > /** > * This is the protected version that is used by any ControlBean subclass > */ > protected XFireClientControlBean(ControlBeanContext context, String id, PropertyMap props, > Class controlClass) > { > this(context, id, props, controlClass); > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira