Package org.apache.tiles.impl

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


    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

          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

    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

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.