Hi all, I've been using the great new features of T4.1.1, and I'm having a few issues with the @EventListener. You see, I require multiple cascading PropertySelections that are re-usable, and can appear multiple times on the same page. These are wrapped in an 'AddressDefinition' component. However, the @EventListener requires something like:
@EventListener(events = "onchange", elements = "countrySelection", async = true, submitForm = "form") public void countrySelected(IRequestCycle cycle) { cycle.getResponseBuilder().updateComponent("stateSelection"); } But the thing is, the 'submitForm' name can (and will) change. In fact, the component could be used in any form with any name. Is there a way to make the EventListener sobmit the current form it is contained in without hard-coding the form name? Alternatively, can we make this form name be supplied dynamically ? I seem to arrive at an elegant solution for my problem except to hard code stuff across all components. Has anyone solved this ? I've been searching the lists like mad but no solution. Cheers