Is there a way to link EventListeners to a dynamic form ?

I mean is there a way to declare an EventListener without knowing the id(s) of the component(s) it shoulb be linked to ? In a dynamic form (generally build with a loop with the For component), the developer doesn't always know the ids that will be assigned to the components.

So is there a way to tell an EventListener it should listen to a class of components (like CheckBoxes for exemple) or a subclass ? Perhaps linking the component with a regular expression would be powerfull so that one could link for exemple a listener with all the text fields in a loop (field_0, field_1, field_...).

--
Stéphane Decleire


Reply via email to