FLUID-4335: Add possibility for "proleptic binding" in declarative listener binding specifications

Metadata

Source
FLUID-4335
Type
Improvement
Priority
Major
Status
Closed
Resolution
Fixed
Assignee
Antranig Basman
Reporter
Cindy Li
Created
2011-07-12T15:56:28.566-0400
Updated
2014-03-03T13:05:42.458-0500
Versions
  1. 1.4
Fixed Versions
  1. 1.5
Component
  1. IoC System

Description

This is analogous to the facility supplied by jQuery.live() and jQuery.delegate() event binding functions: When a listener or event binding specification refers to a component which does NOT YET EXIST via "{component}.events.Xxxxx" type specification, this should be converted into a specification to supply the relevant configuration to such a component that WILL BE MATCHED when it is constructed via "createOnEvent".

ALSO - further interaction is required between the IoC system and the "clearComponent" function - when a component is cleared from the tree, any listeners that were bound WITHIN it on its behalf by the IoC system should be removed. This implies that there needs to be a standard "destroyComponent" lifecycle point.

Comments

  • Antranig Basman commented 2013-01-10T22:46:04.712-0500

    This issue is subsumed by the "IoCSS" or "Luke Skywalker options" work package described in FLUID-4873

  • Antranig Basman commented 2013-05-25T05:41:40.675-0400

    There should now be enough framework in existence to support this use case - however, we need explicit tests and an exercise of the functionality in the upcoming UIOptions refactoring.

  • Antranig Basman commented 2013-09-19T03:39:38.424-0400

    This issue has most likely been resolved by improvements to the framework in the last two years. The so-called "proleptic binding" can be achieved via IoCSS distribution, and the automatic deregistration of listeners referred to now occurs.