Example usage for org.apache.wicket Application getComponentPreOnBeforeRenderListeners

List of usage examples for org.apache.wicket Application getComponentPreOnBeforeRenderListeners

Introduction

In this page you can find the example usage for org.apache.wicket Application getComponentPreOnBeforeRenderListeners.

Prototype

public final ComponentOnBeforeRenderListenerCollection getComponentPreOnBeforeRenderListeners() 

Source Link

Usage

From source file:com.github.javawithmarcus.wicket.cdi.CdiConfiguration.java

License:Apache License

private void enablePropagation(ConfigurationParameters params, Application application) {
    disablePropagation(params); // Force remove active listeners if any
    IRequestCycleListener requestCycleListener = conversationPropagator;// new RequestCycleListenerWrapper();
    application.getRequestCycleListeners().add(requestCycleListener);
    params.setActiveRequestCycleListener(requestCycleListener);

    IComponentOnBeforeRenderListener componentOnBeforeRenderListener = new ComponentOnBeforeRenderListenerWrapper();
    application.getComponentPreOnBeforeRenderListeners().add(componentOnBeforeRenderListener);
    params.setActiveComponentOnBeforeRenderListener(componentOnBeforeRenderListener);
}