String event = (String)it.next();
Iterator lit = prop.getFormEventListeners(event).iterator();
while (lit.hasNext())
{
EventBoundListener listener = (EventBoundListener)lit.next();
String formId = listener.getFormId();
List formNames = (List)cycle.getAttribute(FORM_NAME_LIST + formId);
// defer connection until form is rendered
if (formNames == null)
{
deferFormConnection(formId, scriptParms,
listener.isAsync(),
listener.isValidateForm(),
ScriptUtils.functionHash(listener.hashCode() + (String) scriptParms.get("clientId")));
/*deferFormConnection(formId, scriptParms,
listener.isAsync(),
listener.isValidateForm(),
ScriptUtils.functionHash(listener.hashCode() + (String) scriptParms.get("clientId")));*/
// re-looping over the same property -> event listener list would
// result in duplicate bindings so break out
break;
}
// form has been rendered so go ahead
retval.add(new Object[] {
event, formNames,
Boolean.valueOf(listener.isAsync()),
Boolean.valueOf(listener.isValidateForm()),
ScriptUtils.functionHash(listener)
});
}
}