[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-1466) customizable error page in the portlet that threw the exception
Julien Viet (JIRA)
jira-events at lists.jboss.org
Mon Jun 4 16:54:14 EDT 2007
[ http://jira.jboss.com/jira/browse/JBPORTAL-1466?page=comments#action_12364145 ]
Julien Viet commented on JBPORTAL-1466:
---------------------------------------
The main problem I have here regarding that feature is that behavior upon failure is a portal behavior and having the error page coded in the portlet application is a portlet container feature.
Here are two ways of having the same feature that respect the nature of the decoupling between portal and portlet container:
- have a way to capture the error and react on the portal side. It would be similar to what you want but declared in a jboss portal configuration file, not in a portlet application war file.
- use an interception like feature on the portlet container which intercept all request made to a portlet and react on error by providing an appropriate error page. It is hard to implement it with a standard API because the javax.portlet.filter API is only defined in the version 2.0 of the spec which is still being written and is not implemented in our product.
> customizable error page in the portlet that threw the exception
> ---------------------------------------------------------------
>
> Key: JBPORTAL-1466
> URL: http://jira.jboss.com/jira/browse/JBPORTAL-1466
> Project: JBoss Portal
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Portal Core
> Affects Versions: 2.6.CR2
> Reporter: William DeCoste
> Assigned To: Julien Viet
>
> Feature request from customer.
> Feature:
> For error handing, the portlet should be able to render a customizable error page in the portlet that threw the exception. This feature would be something similar to the error-page tag in web.xml.
> Currently JBoss Portal provides a way to either hide the portlet that has errors or show it with the stack trace or show it with only the error message. But there is no way where the developers could customize the contents that appear in the window for the portlet that throws an exception.
> We had opened case #00015844 about not being able to use web.xml error-page tag with JBoss portal applications. The provided solution about catching the specific exception in the render method does not work as it is not customizable & too tied up with the portlet class code. And as you might be aware about the WAP function - someone using the WAP application components will not be able to customize it according to their requirements.
>
> We know that the portlet standard doesn't specify what to do, and we're just trying to have it behave as much like a regular web application in lieu of something being in the standard.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list