[ http://issues.apache.org/jira/browse/BEEHIVE-97?page=all ] Zach Smith closed BEEHIVE-97: -----------------------------
verified src is now correctly generated and public constructor calls this( as opposed to super( and all event notifier registration is in protected constructor. > 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
