@Override public void processEvent(ComponentSystemEvent event) throws AbortProcessingException { super.processEvent(event); if (!(event instanceof PreRenderComponentEvent) || !getLayout().isBuildOptions()) { return; } setOptions(getParent()); }
@Override public void processEvent(ComponentSystemEvent event) throws AbortProcessingException { super.processEvent(event); if (event instanceof PostAddToViewEvent) { String queueId = getClientId(); if (componentsToAssociate != null) { for (UIComponent componentToAssociate : componentsToAssociate) { immediateAssociateWith(componentToAssociate, queueId); } componentsToAssociate = null; } if (behaviorsToAssociate != null) { for (AjaxBehavior ajaxBehavior : behaviorsToAssociate) { immediateAssociateWith(ajaxBehavior, queueId); } behaviorsToAssociate = null; } } }