protected void initStatelessChecker() { if (RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) { getComponentPostOnBeforeRenderListeners().add(new StatelessChecker()); } }
protected void initStatelessChecker() { if (RuntimeConfigurationType.DEVELOPMENT.equals(getConfigurationType())) { getComponentPostOnBeforeRenderListeners().add(new StatelessChecker()); } }
@Override public void init(WebApplication webApplication) { webApplication.getComponentPostOnBeforeRenderListeners().add(new StatelessChecker()); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
@Override public void init(WebApplication webApplication) { webApplication.getComponentPostOnBeforeRenderListeners().add(new StatelessChecker()); wicketEndpointRepository.add(new WicketAutoConfig.Builder(this.getClass()) .withDetail("properties", props) .build()); }
/** * Preferred entry point for configuring your WicketApplication automatically. * @param application Your wicket application */ public static void configure(Application application) { application.getComponentInstantiationListeners().add(new AttributeModifyingInstantiationListener()); application.getComponentPostOnBeforeRenderListeners().add(new AttributeModifyingComponentVisitor()); }
/** * Preferred entry point for configuring your WicketApplication automatically. * @param application Your wicket application */ public static void configure(Application application) { application.getComponentInstantiationListeners().add(new AttributeModifyingInstantiationListener()); application.getComponentPostOnBeforeRenderListeners().add(new AttributeModifyingComponentVisitor()); }
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); }
/** * Creates and registers an {@code EventBus} for the given application and broadcaster * * @param application * @param broadcaster */ public EventBus(WebApplication application, Broadcaster broadcaster) { this.application = application; this.broadcaster = broadcaster; application.setMetaData(EVENT_BUS_KEY, this); application.mount(new AtmosphereRequestMapper(createEventSubscriptionInvoker())); application.getComponentPostOnBeforeRenderListeners().add( createEventSubscriptionCollector()); application.getSessionStore().registerUnboundListener(this); }
/** * Mock a request to table component and return its response. * * @param tableComponent * @return */ private BufferedWebResponse doRequest(Component tableComponent) { originalResponse = RequestCycle.get().getResponse(); BufferedWebResponse mockResponse = new BufferedWebResponse(null); RequestCycle.get().setResponse(mockResponse); Application.get().getComponentPreOnBeforeRenderListeners().add(PathSetupListener.INSTANCE); Page page = tableComponent.getPage(); page.startComponentRender(tableComponent); tableComponent.prepareForRender(); tableComponent.render(); return mockResponse; }
/** * Creates and registers an {@code EventBus} for the given application and broadcaster * * @param application * @param broadcaster */ public EventBus(WebApplication application, Broadcaster broadcaster) { this.application = application; this.broadcaster = broadcaster; application.setMetaData(EVENT_BUS_KEY, this); application.mount(new AtmosphereRequestMapper(createEventSubscriptionInvoker())); application.getComponentPostOnBeforeRenderListeners().add( createEventSubscriptionCollector()); application.getSessionStore().registerUnboundListener(this); checkEnabledAnalytics(getBroadcaster().getBroadcasterConfig().getAtmosphereConfig()); }
application.getComponentPreOnBeforeRenderListeners().add(new ConversationExpiryChecker(container)); SeamConversationContextFactory.setDisableNoopInstance(true);