org.springbyexample.web.servlet.view.tiles2
Class FlowAjaxDynamicTilesView

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.web.context.support.WebApplicationObjectSupport
          extended by org.springframework.web.servlet.view.AbstractView
              extended by org.springframework.web.servlet.view.AbstractUrlBasedView
                  extended by org.springframework.web.servlet.view.tiles2.TilesView
                      extended by org.springframework.js.ajax.tiles2.AjaxTilesView
                          extended by org.springbyexample.web.servlet.view.tiles2.AjaxDynamicTilesView
                              extended by org.springbyexample.web.servlet.view.tiles2.FlowAjaxDynamicTilesView
All Implemented Interfaces:
BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View

public class FlowAjaxDynamicTilesView
extends AjaxDynamicTilesView

If the request isn't an AJAX request, DynamicTilesView will handle the request. Otherwise it is expected that an AJAX view render will be next in the chain and can handle the request.

Note: All code is copied from AjaxDynamicTilesView (giving author credit to original author). Necessary to duplicate logic since getRenderFragments is protected, so no way to delegate to the original code.

Author:
Jeremy Grelle

Field Summary
 
Fields inherited from class org.springframework.web.servlet.view.AbstractView
DEFAULT_CONTENT_TYPE
 
Constructor Summary
FlowAjaxDynamicTilesView()
           
 
Method Summary
protected  String[] getRenderFragments(Map model, HttpServletRequest request, HttpServletResponse response)
          Gets rendered fragments.
 
Methods inherited from class org.springbyexample.web.servlet.view.tiles2.AjaxDynamicTilesView
renderMergedAjaxOutputModel, renderMergedOutputModel
 
Methods inherited from class org.springframework.js.ajax.tiles2.AjaxTilesView
getAjaxHandler, setAjaxHandler
 
Methods inherited from class org.springframework.web.servlet.view.AbstractUrlBasedView
afterPropertiesSet, getUrl, isUrlRequired, setUrl, toString
 
Methods inherited from class org.springframework.web.servlet.view.AbstractView
addStaticAttribute, createRequestContext, createTemporaryOutputStream, exposeModelAsRequestAttributes, generatesDownloadContent, getAttributesMap, getBeanName, getContentType, getRequestContextAttribute, getStaticAttributes, prepareResponse, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute, writeToResponse
 
Methods inherited from class org.springframework.web.context.support.WebApplicationObjectSupport
getServletContext, getTempDir, getWebApplicationContext, initApplicationContext, initServletContext, isContextRequired, setServletContext
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, requiredContextClass, setApplicationContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FlowAjaxDynamicTilesView

public FlowAjaxDynamicTilesView()
Method Detail

getRenderFragments

protected String[] getRenderFragments(Map model,
                                      HttpServletRequest request,
                                      HttpServletResponse response)

Gets rendered fragments.

Note: Copied from FlowAjaxTilesView.

Overrides:
getRenderFragments in class org.springframework.js.ajax.tiles2.AjaxTilesView


Copyright © 2008 Spring by Example. All Rights Reserved.