|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.7.0) E15995-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
javax.faces.render.Renderer
org.apache.myfaces.trinidad.render.CoreRenderer
oracle.adfinternal.view.faces.renderkit.rich.portlet.PortletErrorRenderer
oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
oracle.adf.view.rich.error.portlet.DefaultErrorRenderer
public class DefaultErrorRenderer
Default PortletErrorRenderer implementation for rendering errors that have occured for a portlet. This renderer renders a simple message for most exceptions, indicating if the problem is with the consumer or producer.
In addition, it handles ExternalAppCredentialException
by rendering a link a user can use to perform external application authentication.
Override getMessageForException(java.lang.Throwable)
to customize the text of the message that appears based on the exception.
encodeErrorMessage(javax.faces.context.FacesContext, java.lang.Throwable)
can be overridden to determine how the message is rendered.
oracle.adf.view.rich.portlet.error.PortletErrorRenderer
Field Summary |
---|
Fields inherited from class oracle.adfinternal.view.faces.renderkit.rich.portlet.PortletErrorRenderer |
---|
_portletExceptionKey, RENDERER_TYPE |
Fields inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
---|
CHAR_UNDEFINED, NO_CHILD_INDEX |
Constructor Summary | |
---|---|
DefaultErrorRenderer() |
Method Summary | |
---|---|
protected void |
encodeAll(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean) Called to encode the output from this rendered when an error occurs. |
protected void |
encodeError(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean) Render the error. |
protected void |
encodeErrorMessage(javax.faces.context.FacesContext context, java.lang.Throwable t) Encode a message to be shown to the user for the exception that ocurred. |
protected java.lang.String |
getMessageForException(java.lang.Throwable t) Get the message text to be show to the user for the given exception. |
protected boolean |
hidePortlet(java.lang.Throwable t) Should the Portlet be seen given the error that occured. |
boolean |
hideShowDetailFrame(org.apache.myfaces.trinidad.bean.FacesBean bean) Should the Portlet ShowDetailFrame chrome be shown given the error that occurred. |
protected boolean |
hideShowDetailFrame(java.lang.Throwable t) Should the Portlet ShowDetailFrame chrome be shown given the error that occured. |
Methods inherited from class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer |
---|
encodeExternalAppCredentialException |
Methods inherited from class oracle.adfinternal.view.faces.renderkit.rich.portlet.PortletErrorRenderer |
---|
findTypeConstants, getPortletException, getRendersChildren |
Methods inherited from class org.apache.myfaces.trinidad.render.CoreRenderer |
---|
afterEncode, beforeEncode, delegateRenderer, delegateRendererBegin, delegateRendererEnd, encodeAllChildren, encodeBegin, encodeBegin, encodeChild, encodeChildren, encodeEnd, encodeEnd, getClientId, getFacesBean, getFacet, getNextRenderedChildIndex, getRenderedChildCount, getRenderedFacetsAndChildren, getRenderingProperty, hasRenderedChildren, isDesktop, isGecko, isGenericPDA, isIE, isInaccessibleMode, isIPhone, isKonqueror, isNokiaS60, isPDA, isScreenReaderMode, isWebKit, partialEncodeVisit, renderEncodedActionURI, renderEncodedResourceURI, renderId, renderStyleClass, renderStyleClasses, setRenderingProperty, setupEncodingContext, setupEncodingContext, shouldRenderId, skipDecode, tearDownEncodingContext, tearDownEncodingContext, toActionUri, toChar, toInt, toLong, toResourceUri, toString, toUri |
Methods inherited from class javax.faces.render.Renderer |
---|
convertClientId, decode, getConvertedValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultErrorRenderer()
Method Detail |
---|
protected void encodeAll(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
encodeError(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.context.RenderingContext, javax.faces.component.UIComponent, org.apache.myfaces.trinidad.bean.FacesBean)
otherwise.encodeAll
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
context
- the FacesContextarc
- the RenderingContextcomponent
- the Portlet UIComponent for which the error is being rendered.bean
- the FacesBean for this renderer.java.io.IOException
protected void encodeError(javax.faces.context.FacesContext context, org.apache.myfaces.trinidad.context.RenderingContext arc, javax.faces.component.UIComponent component, org.apache.myfaces.trinidad.bean.FacesBean bean) throws java.io.IOException
hidePortlet(java.lang.Throwable)
returns true or calls encodeErrorMessage(javax.faces.context.FacesContext, java.lang.Throwable)
otherwise.encodeError
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
context
- the FacesContext.arc
- the RenderingContext.component
- the Portlet UIComponent we are rendering the error for.bean
- the FacesBean for this renderer.java.io.IOException
protected void encodeErrorMessage(javax.faces.context.FacesContext context, java.lang.Throwable t) throws java.io.IOException
getMessageForException(java.lang.Throwable)
to get the message text to display to the user.encodeErrorMessage
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
context
- the FacesContextt
- the Throwable that occurredjava.io.IOException
protected java.lang.String getMessageForException(java.lang.Throwable t)
encodeErrorMessage(javax.faces.context.FacesContext, java.lang.Throwable)
.getMessageForException
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
t
- the Throwable to producer the message for.public final boolean hideShowDetailFrame(org.apache.myfaces.trinidad.bean.FacesBean bean)
hideShowDetailFrame
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
bean
-hideShowDetailFrame(Throwable)
protected boolean hideShowDetailFrame(java.lang.Throwable t)
hidePortlet(java.lang.Throwable)
.hideShowDetailFrame
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
t
- the Throwable that occuredprotected boolean hidePortlet(java.lang.Throwable t)
hideShowDetailFrame(Throwable)
and encodeError(javax.faces.context.FacesContext, org.apache.myfaces.trinidad.context.RenderingContext, javax.faces.component.UIComponent, org.apache.myfaces.trinidad.bean.FacesBean)
to determine if the portlet chrome and error rendition should be shown.hidePortlet
in class oracle.adfinternal.view.faces.renderkit.rich.portlet.DefaultErrorRenderer
t
- the Throwable that occured
|
Oracle Fusion Middleware Java API Reference for Oracle WebCenter Portal 11g Release 1 (11.1.1.7.0) E15995-06 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |