Examples of endContext()


Examples of org.apache.tiles.TilesContainer.endContext()

        container.prepare("myPreparer", request);
        expect(resolver.computeAttribute(container, attribute, "myName", "myRole", false, "myDefaultValue",
                "myDefaultValueRole", "myDefaultValueType", request)).andReturn(attribute);
        expect(container.startContext(request)).andReturn(attributeContext);
        container.endContext(request);
        container.render(attribute, request);

        replay(resolver, container, request, applicationContext, modelBody);
        model.execute(false, "myPreparer", "myRole", "myDefaultValue", "myDefaultValueRole",
                "myDefaultValueType", "myName", attribute, false, request, modelBody);
View Full Code Here

Examples of org.apache.tiles.TilesContainer.endContext()

        AttributeContext attributeContext = container.startContext(request, response);
        Attribute attr = new Attribute(actionUrl);
        attributeContext.putAttribute("body", attr);
        try {
            container.render("main.layout", request, response);
            container.endContext(request, response);
        } catch (Exception e) {
            if (log.isDebugEnabled()) {  // Intentionally logged at debug level
                log.debug("Error occurred while rendering." +
                          " We generally see this 'harmless' exception on WebLogic. Hiding it.", e);
            }
View Full Code Here

Examples of org.apache.tiles.impl.BasicTilesContainer.endContext()

          throw new ServletException("No tiles attribute with a name of '" + element
              + "' could be found for the current view: " + this);
        } else {
          container.startContext(request, response).inheritCascadedAttributes(compositeDefinition);
          container.render(attributeToRender, request, response);
          container.endContext(request, response);
        }
      }
    } else {
      super.renderMergedOutputModel(model, request, response);
    }
View Full Code Here

Examples of org.apache.tiles.impl.BasicTilesContainer.endContext()

    attributeContext.putAttribute("body", new Attribute("/WEB-INF/dynamicTemplate.jsp"));
    Map<String, Attribute> resultMap = new HashMap<String, Attribute>();
    ajaxTilesView.addRuntimeAttributes(container, tilesRequest, resultMap);
    assertNotNull(resultMap.get("body"));
    assertEquals("/WEB-INF/dynamicTemplate.jsp", resultMap.get("body").toString());
    container.endContext(tilesRequest);
  }

  public void testRenderFragment_Multiple() throws Exception {
    setupStaticWebApplicationContext();
    request.addHeader("Accept", SpringJavascriptAjaxHandler.AJAX_ACCEPT_CONTENT_TYPE);
View Full Code Here

Examples of org.apache.tiles.impl.BasicTilesContainer.endContext()

          throw new ServletException("No tiles attribute with a name of '" + element
              + "' could be found for the current view: " + this);
        }
        container.startContext(tilesRequest).inheritCascadedAttributes(compositeDefinition);
        container.render(attributeToRender, tilesRequest);
        container.endContext(tilesRequest);
      }
    } else {
      super.renderMergedOutputModel(model, request, response);
    }
  }
View Full Code Here

Examples of org.apache.tiles.impl.BasicTilesContainer.endContext()

    attributeContext.putAttribute("body", new Attribute("/WEB-INF/dynamicTemplate.jsp"));
    Map<String, Attribute> resultMap = new HashMap<String, Attribute>();
    ajaxTilesView.addRuntimeAttributes(container, resultMap, request, response);
    assertNotNull(resultMap.get("body"));
    assertEquals("/WEB-INF/dynamicTemplate.jsp", resultMap.get("body").toString());
    container.endContext(requestItems);
  }

  public void testRenderFragment_Multiple() throws Exception {
    setupStaticWebApplicationContext();
    request.addHeader("Accept", SpringJavascriptAjaxHandler.AJAX_ACCEPT_CONTENT_TYPE);
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

        Object mockServletContext = null;
        if (isServletApiAvailable())
        {
            mockServletContext = OwbHelper.getMockServletContext();
        }
        contextsService.endContext(Singleton.class, mockServletContext);
    }

    private void stopApplicationScope()
    {
        ContextsService contextsService = getContextsService();
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

        Object mockServletContext = null;
        if (isServletApiAvailable())
        {
            mockServletContext = OwbHelper.getMockServletContext();
        }
        contextsService.endContext(ApplicationScoped.class, mockServletContext);
    }

    private void stopSessionScope()
    {
        ContextsService contextsService = getContextsService();
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

        Object mockSession = null;
        if (isServletApiAvailable())
        {
            mockSession = OwbHelper.getMockSession();
        }
        contextsService.endContext(SessionScoped.class, mockSession);
    }

    private void stopRequestScope()
    {
        ContextsService contextsService = getContextsService();
View Full Code Here

Examples of org.apache.webbeans.spi.ContextsService.endContext()

    private void stopRequestScope()
    {
        ContextsService contextsService = getContextsService();

        contextsService.endContext(RequestScoped.class, null);
    }

    private void stopConversationScope()
    {
        ContextsService contextsService = getContextsService();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.