Package org.apache.wicket.request.cycle

Examples of org.apache.wicket.request.cycle.AbstractRequestCycleListener


    RequestCycleContext context = new RequestCycleContext(request, response,
      getRootRequestMapper(), getExceptionMapperProvider().get());

    RequestCycle requestCycle = getRequestCycleProvider().get(context);
    requestCycle.getListeners().add(requestCycleListeners);
    requestCycle.getListeners().add(new AbstractRequestCycleListener()
    {
      @Override
      public void onDetach(final RequestCycle requestCycle)
      {
        getPageManager().commitRequest();
View Full Code Here


   */
  public void invalidate()
  {
    if (sessionInvalidated == false)
    {
      RequestCycle.get().getListeners().add(new AbstractRequestCycleListener()
      {
        @Override
        public void onDetach(final RequestCycle cycle)
        {
          detach();
View Full Code Here

  {
    RequestCycleContext context = new RequestCycleContext(request, response,
      getRootRequestMapper(), getExceptionMapperProvider().get());

    RequestCycle requestCycle = getRequestCycleProvider().get(context);
    requestCycle.getListeners().add(new AbstractRequestCycleListener()
    {
      @Override
      public void onDetach(final RequestCycle requestCycle)
      {
        Session.get().getPageManager().commitRequest();
View Full Code Here

   */
  public void invalidate()
  {
    if (sessionInvalidated == false)
    {
      RequestCycle.get().getListeners().add(new AbstractRequestCycleListener()
      {
        @Override
        public void onDetach(final RequestCycle cycle)
        {
          detach();
View Full Code Here

    final org.hibernate.cfg.Configuration hibernateConfiguration = localSessionFactoryBean.getConfiguration();
    final PluginsRegistry pluginsRegistry = PluginsRegistry.instance();
    pluginsRegistry.set(getResourceSettings());
    projectForgeApp = ProjectForgeApp.init(beanFactory, hibernateConfiguration);
    // Own error page for deployment mode and UserException and AccessException.
    getRequestCycleListeners().add(new AbstractRequestCycleListener() {
      /**
       * Log only non ProjectForge exceptions.
       * @see org.apache.wicket.request.cycle.AbstractRequestCycleListener#onException(org.apache.wicket.request.cycle.RequestCycle,
       *      java.lang.Exception)
       */
 
View Full Code Here

    RequestCycleContext context = new RequestCycleContext(request, response,
      getRootRequestMapper(), getExceptionMapperProvider().get());

    RequestCycle requestCycle = getRequestCycleProvider().get(context);
    requestCycle.getListeners().add(requestCycleListeners);
    requestCycle.getListeners().add(new AbstractRequestCycleListener()
    {
      @Override
      public void onDetach(final RequestCycle requestCycle)
      {
        if (Session.exists())
View Full Code Here

    RequestCycleContext context = new RequestCycleContext(request, response,
      getRootRequestMapper(), getExceptionMapperProvider().get());

    RequestCycle requestCycle = getRequestCycleProvider().get(context);
    requestCycle.getListeners().add(requestCycleListeners);
    requestCycle.getListeners().add(new AbstractRequestCycleListener()
    {
      @Override
      public void onDetach(final RequestCycle requestCycle)
      {
        if (Session.exists())
View Full Code Here

        if(markupFactory != null) {
            getMarkupSettings().setMarkupFactory(markupFactory);
        }

       
        getRequestCycleListeners().add(new AbstractRequestCycleListener() {

            @Override
            public IRequestHandler onException(RequestCycle cycle, Exception ex) {
                Throwable current = ex;
               
View Full Code Here

TOP

Related Classes of org.apache.wicket.request.cycle.AbstractRequestCycleListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.