org.codehaus.groovy.grails.scaffolding
Class ScaffoldedGroovyPageView
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.web.context.support.WebApplicationObjectSupport
org.springframework.web.servlet.view.AbstractView
org.springframework.web.servlet.view.AbstractUrlBasedView
org.codehaus.groovy.grails.web.servlet.view.GroovyPageView
org.codehaus.groovy.grails.scaffolding.ScaffoldedGroovyPageView
- All Implemented Interfaces:
- BeanNameAware, InitializingBean, ApplicationContextAware, ServletContextAware, View
public class ScaffoldedGroovyPageView
- extends GroovyPageView
A special Spring View for scaffolding that renders an in-memory scaffolded view to the response.
- Since:
- 0.5
Created: Feb 27, 2007
Time: 11:30:10 AM
- Author:
- Graeme Rocher
Methods inherited from class org.springframework.web.servlet.view.AbstractView |
addStaticAttribute, createRequestContext, exposeModelAsRequestAttributes, getAttributesMap, getContentType, getRequestContextAttribute, getStaticAttributes, render, setAttributes, setAttributesCSV, setAttributesMap, setBeanName, setContentType, setRequestContextAttribute |
ScaffoldedGroovyPageView
public ScaffoldedGroovyPageView(String uri,
String contents)
getBeanName
public String getBeanName()
- Used for debug reporting
- Overrides:
getBeanName
in class AbstractView
- Returns:
- The URL of the view
renderWithTemplateEngine
protected void renderWithTemplateEngine(GroovyPagesTemplateEngine templateEngine,
Map model,
HttpServletResponse response,
HttpServletRequest request)
throws IOException
- Overrides the default implementation to render a GSP view using an in-memory representation held in the #contents property
- Overrides:
renderWithTemplateEngine
in class GroovyPageView
- Parameters:
templateEngine
- The GroovyPagesTemplateEngine instancemodel
- The modelresponse
- The HttpServletResponse instancerequest
- The HttpServletRequest
- Throws:
IOException
- Thrown if there was an IO error rendering the view
Copyright (c) 2005-2006 The Grails project