org.apache.tiles.request.AbstractRequest Java Examples
The following examples show how to use
org.apache.tiles.request.AbstractRequest.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: TilesView.java From spring-analysis-note with MIT License | 6 votes |
@Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { Assert.state(this.renderer != null, "No Renderer set"); exposeModelAsRequestAttributes(model, request); if (this.exposeJstlAttributes) { JstlUtils.exposeLocalizationContext(new RequestContext(request, getServletContext())); } if (this.alwaysInclude) { request.setAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME, true); } Request tilesRequest = createTilesRequest(request, response); this.renderer.render(getUrl(), tilesRequest); }
Example #2
Source File: TilesView.java From java-technology-stack with MIT License | 6 votes |
@Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { Assert.state(this.renderer != null, "No Renderer set"); exposeModelAsRequestAttributes(model, request); if (this.exposeJstlAttributes) { JstlUtils.exposeLocalizationContext(new RequestContext(request, getServletContext())); } if (this.alwaysInclude) { request.setAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME, true); } Request tilesRequest = createTilesRequest(request, response); this.renderer.render(getUrl(), tilesRequest); }
Example #3
Source File: TilesView.java From lams with GNU General Public License v2.0 | 5 votes |
@Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { exposeModelAsRequestAttributes(model, request); if (this.exposeJstlAttributes) { JstlUtils.exposeLocalizationContext(new RequestContext(request, getServletContext())); } if (this.alwaysInclude) { request.setAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME, true); } Request tilesRequest = createTilesRequest(request, response); this.renderer.render(getUrl(), tilesRequest); }
Example #4
Source File: TilesView.java From spring4-understanding with Apache License 2.0 | 5 votes |
@Override protected void renderMergedOutputModel(Map<String, Object> model, HttpServletRequest request, HttpServletResponse response) throws Exception { exposeModelAsRequestAttributes(model, request); if (this.exposeJstlAttributes) { JstlUtils.exposeLocalizationContext(new RequestContext(request, getServletContext())); } if (this.alwaysInclude) { request.setAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME, true); } Request tilesRequest = createTilesRequest(request, response); this.renderer.render(getUrl(), tilesRequest); }
Example #5
Source File: TilesViewTests.java From spring-analysis-note with MIT License | 4 votes |
@Test public void alwaysIncludeDefaults() throws Exception { view.render(new HashMap<>(), request, response); assertNull(request.getAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME)); }
Example #6
Source File: TilesViewTests.java From spring-analysis-note with MIT License | 4 votes |
@Test public void alwaysIncludeEnabled() throws Exception { view.setAlwaysInclude(true); view.render(new HashMap<>(), request, response); assertTrue((Boolean)request.getAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME)); }
Example #7
Source File: TilesViewTests.java From java-technology-stack with MIT License | 4 votes |
@Test public void alwaysIncludeDefaults() throws Exception { view.render(new HashMap<>(), request, response); assertNull(request.getAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME)); }
Example #8
Source File: TilesViewTests.java From java-technology-stack with MIT License | 4 votes |
@Test public void alwaysIncludeEnabled() throws Exception { view.setAlwaysInclude(true); view.render(new HashMap<>(), request, response); assertTrue((Boolean)request.getAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME)); }
Example #9
Source File: TilesViewTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test public void alwaysIncludeDefaults() throws Exception { view.render(new HashMap<String, Object>(), request, response); assertNull(request.getAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME)); }
Example #10
Source File: TilesViewTests.java From spring4-understanding with Apache License 2.0 | 4 votes |
@Test public void alwaysIncludeEnabled() throws Exception { view.setAlwaysInclude(true); view.render(new HashMap<String, Object>(), request, response); assertTrue((Boolean)request.getAttribute(AbstractRequest.FORCE_INCLUDE_ATTRIBUTE_NAME)); }