|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.extensions.surf.render.PresentationUtil
public class PresentationUtil
This class basically delegates through to the RenderUtil functions but provides for a 'pretty' user experience. Exceptions that trickle back are trapped and presented nicely to the end user. The exceptions are also logged so that administrators can track down the issues at hand.
Field Summary | |
---|---|
static String |
CONTEXT_VALUE_ERROR_COMPONENT_ID
|
static String |
CONTEXT_VALUE_ERROR_PAGE_ID
|
static String |
CONTEXT_VALUE_ERROR_REGION_ID
|
static String |
CONTEXT_VALUE_ERROR_REGION_SCOPE_ID
|
static String |
CONTEXT_VALUE_ERROR_REGION_SOURCE_ID
|
static String |
CONTEXT_VALUE_ERROR_TEMPLATE_ID
|
static String |
CONTEXT_VALUE_ERROR_THROWABLE
|
Constructor Summary | |
---|---|
PresentationUtil()
|
Method Summary | |
---|---|
protected static void |
handleComponentRenderProblem(RenderContext context,
Throwable t,
String componentId)
|
protected static void |
handlePageRenderProblem(RenderContext context,
Throwable t,
String pageId)
|
protected static void |
handleRegionRenderProblem(RenderContext context,
Throwable t,
String templateId,
String regionId,
String regionScopeId)
|
protected static void |
handleTemplateRenderProblem(RenderContext context,
Throwable t,
String templateId)
|
static void |
renderChromelessComponent(RenderContext context,
RenderFocus renderFocus,
String componentId)
|
static void |
renderChromelessRegion(RenderContext context,
RenderFocus renderFocus,
String templateId,
String regionId,
String regionScopeId)
|
static void |
renderComponent(RenderContext context,
RenderFocus renderFocus,
String componentId)
|
static void |
renderComponent(RenderContext context,
RenderFocus renderFocus,
String componentId,
String chromeId)
|
static void |
renderContent(RenderContext context)
Renders the current content object using the BODY focus |
static void |
renderContent(RenderContext context,
RenderFocus renderFocus)
Renders the current content object using its associated presentation template in the given focus. |
static void |
renderJspPage(RenderContext context,
String dispatchPath)
Renders a JSP page |
static void |
renderPage(RenderContext context)
Renders the current page using the BODY focus |
static void |
renderPage(RenderContext context,
RenderFocus renderFocus)
Renders the current page using the BODY focus |
static void |
renderRegion(RenderContext context,
RenderFocus renderFocus,
String templateId,
String regionId,
String regionScopeId)
|
static void |
renderRegion(RenderContext context,
RenderFocus renderFocus,
String templateId,
String regionId,
String regionScopeId,
String overrideChromeId)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String CONTEXT_VALUE_ERROR_COMPONENT_ID
public static final String CONTEXT_VALUE_ERROR_REGION_SOURCE_ID
public static final String CONTEXT_VALUE_ERROR_REGION_SCOPE_ID
public static final String CONTEXT_VALUE_ERROR_REGION_ID
public static final String CONTEXT_VALUE_ERROR_TEMPLATE_ID
public static final String CONTEXT_VALUE_ERROR_PAGE_ID
public static final String CONTEXT_VALUE_ERROR_THROWABLE
Constructor Detail |
---|
public PresentationUtil()
Method Detail |
---|
public static void renderJspPage(RenderContext context, String dispatchPath) throws RequestDispatchException
context
- dispatchPath
-
RequestDispatchException
public static void renderPage(RenderContext context) throws RequestDispatchException
context
-
RequestDispatchException
public static void renderPage(RenderContext context, RenderFocus renderFocus) throws RequestDispatchException
context
- renderFocus
-
RequestDispatchException
public static void renderChromelessRegion(RenderContext context, RenderFocus renderFocus, String templateId, String regionId, String regionScopeId) throws RequestDispatchException
RequestDispatchException
public static void renderRegion(RenderContext context, RenderFocus renderFocus, String templateId, String regionId, String regionScopeId) throws RequestDispatchException
RequestDispatchException
public static void renderRegion(RenderContext context, RenderFocus renderFocus, String templateId, String regionId, String regionScopeId, String overrideChromeId) throws RequestDispatchException
RequestDispatchException
public static void renderChromelessComponent(RenderContext context, RenderFocus renderFocus, String componentId) throws RequestDispatchException
RequestDispatchException
public static void renderComponent(RenderContext context, RenderFocus renderFocus, String componentId) throws RequestDispatchException
RequestDispatchException
public static void renderComponent(RenderContext context, RenderFocus renderFocus, String componentId, String chromeId) throws RequestDispatchException
RequestDispatchException
public static void renderContent(RenderContext context) throws RequestDispatchException
context
-
RequestDispatchException
public static void renderContent(RenderContext context, RenderFocus renderFocus) throws RequestDispatchException
context
- renderFocus
-
RequestDispatchException
protected static void handlePageRenderProblem(RenderContext context, Throwable t, String pageId) throws RequestDispatchException
RequestDispatchException
protected static void handleTemplateRenderProblem(RenderContext context, Throwable t, String templateId) throws RequestDispatchException
RequestDispatchException
protected static void handleRegionRenderProblem(RenderContext context, Throwable t, String templateId, String regionId, String regionScopeId) throws RequestDispatchException
RequestDispatchException
protected static void handleComponentRenderProblem(RenderContext context, Throwable t, String componentId) throws RequestDispatchException
RequestDispatchException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |