wicket.protocol.http.portlet.pages
Class ExceptionErrorPortletPage

java.lang.Object
  extended by wicket.Component
      extended by wicket.MarkupContainer
          extended by wicket.Page
              extended by wicket.protocol.http.portlet.PortletPage
                  extended by wicket.protocol.http.portlet.pages.ExceptionErrorPortletPage
All Implemented Interfaces:
java.io.Serializable, IRedirectListener, IRequestListener, IPageMapEntry

public class ExceptionErrorPortletPage
extends PortletPage

Exception error portlet page

Author:
Janne Hietamäki
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class wicket.Component
Component.ComponentModelChange, Component.EnabledChange, Component.IVisitor, Component.VisibilityChange
 
Field Summary
 
Fields inherited from class wicket.Page
LATEST_VERSION
 
Fields inherited from class wicket.Component
ENABLE, FLAG_RESERVED1, FLAG_RESERVED2, FLAG_RESERVED3, FLAG_RESERVED4, FLAG_RESERVED5, FLAG_RESERVED6, FLAG_RESERVED7, FLAG_RESERVED8, PATH_SEPARATOR, RENDER
 
Fields inherited from interface wicket.IRedirectListener
INTERFACE
 
Constructor Summary
ExceptionErrorPortletPage(java.lang.Throwable throwable, Page page)
          Constructor.
 
Method Summary
protected  void configureResponse()
          Set-up response with appropriate content type, locale and encoding.
 java.lang.Throwable getThrowable()
          Get access to the exception
 boolean isErrorPage()
          Override this method and return true if your page is used to display Wicket errors.
 boolean isVersioned()
           
 
Methods inherited from class wicket.protocol.http.portlet.PortletPage
getMarkupType, getPortletMode, getPortletRequestCycle, getWindowState, onSetPortletMode, onSetWindowState, setPortletMode, setWindowState
 
Methods inherited from class wicket.Page
afterCallComponent, beforeCallComponent, checkAccess, detachModels, dirty, endComponentRender, expireOldestVersion, getAutoIndex, getCurrentVersionNumber, getFeedbackMessages, getId, getNumericId, getPageClass, getPageMap, getPageMapEntry, getSizeInBytes, getVersion, getVersions, hierarchyAsString, internalDetach, internalOnDetach, internalOnModelChanged, moveToPageMap, newVersionManager, onRedirect, onRender, removePersistedFormData, renderPage, setNumericId, startComponentRender, toString
 
Methods inherited from class wicket.MarkupContainer
add, autoAdd, contains, findMarkupStream, get, getAssociatedMarkupStream, getMarkupStream, internalAdd, internalAttach, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onComponentTagBody, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, replace, setMarkupStream, setModel, size, toString, visitChildren, visitChildren
 
Methods inherited from class wicket.Component
add, addStateChange, checkComponentTag, checkComponentTagAttribute, continueToOriginalDestination, debug, detachBehaviors, detachModel, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getApplicationPages, getApplicationSettings, getBehaviors, getBehaviors, getClassRelativePath, getConverter, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMetaData, getModel, getModelComparator, getModelObject, getModelObjectAsString, getOutputMarkupId, getPage, getPageFactory, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getString, getString, getString, getStyle, getVariation, hasErrorMessage, hasFeedbackMessage, info, initModel, internalOnAttach, isActionAuthorized, isAncestorOf, isBehaviorAccepted, isEnableAllowed, isEnabled, isHeadRendered, isIgnoreAttributeModifier, isRenderAllowed, isVisible, isVisibleInHierarchy, modelChanged, modelChanging, newPage, newPage, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onComponentTag, onDetach, onEndRequest, onModelChanged, onModelChanging, onRender, redirectToInterceptPage, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderedBehaviors, renderHead, replaceComponentTagBody, replaceWith, resetHeadRendered, sameRootModel, sameRootModel, setAuto, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMetaData, setModelObject, setOutputMarkupId, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface wicket.session.pagemap.IPageMapEntry
getPage
 

Constructor Detail

ExceptionErrorPortletPage

public ExceptionErrorPortletPage(java.lang.Throwable throwable,
                                 Page page)
Constructor.

Parameters:
throwable - The exception to show
page - The page being rendered when the exception was thrown
Method Detail

configureResponse

protected void configureResponse()
Description copied from class: Page
Set-up response with appropriate content type, locale and encoding. The locale is set equal to the session's locale. The content type header contains information about the markup type (@see #getMarkupType()) and the encoding. The response (and request) encoding is determined by an application setting (@see ApplicationSettings#getResponseRequestEncoding()). In addition, if the page's markup contains a xml declaration like <?xml ... ?> an xml declaration with proper encoding information is written to the output as well, provided it is not disabled by an applicaton setting (@see ApplicationSettings#getStripXmlDeclarationFromOutput()).

Note: Prior to Wicket 1.1 the output encoding was determined by the page's markup encoding. Because this caused uncertainties about the /request/ encoding, it has been changed in favour of the new, much safer, approach. Please see the Wiki for more details.

Overrides:
configureResponse in class Page
See Also:
WebPage.configureResponse()

getThrowable

public java.lang.Throwable getThrowable()
Get access to the exception

Returns:
The exception

isErrorPage

public boolean isErrorPage()
Description copied from class: Page
Override this method and return true if your page is used to display Wicket errors. This can help the framework prevent infinite failure loops.

Overrides:
isErrorPage in class Page
Returns:
True if this page is intended to display an error to the end user.
See Also:
Page.isErrorPage()

isVersioned

public boolean isVersioned()
Overrides:
isVersioned in class Component
Returns:
True if this component is versioned
See Also:
Component.isVersioned()


Copyright © 2004-2007 Wicket developers. All Rights Reserved.