Hallo again,
to be more concrete, I've added a Throwable.jsp and a 500.jsp to
"contrib/explorers/resourceeditor/src/main/resources/SLING-INF/libs/sling/resource-editor/errorhandler"
and
"contrib/explorers/resourceeditor/src/main/resources/SLING-INF/libs/sling/resource-editor"
but still the default white error page shows up with the 500 status.
Does someone have an idea what's wrong with the configuration and how I
can show an error page for the resource editor?
Best,
Sandro
Am 02.07.15 um 10:19 schrieb Sandro Boehme:
Hello,
for the Resource Editor's [1] property page I would like to switch the
addition and update of the properties from being ajax calls to be
regular page requests. But on an error a new an plain error page is
rendered while I would like to get my Resource Editor page [4] rendered
with the error data as request attributes that I can use to show the
error there.
The Resource Editor uses a Resource Provider [2], that wraps the
resources to add a resource type marker. Based on that marker the
ResourceProviderBasedResourceDecorator [3] changes the resource type of
a resource that leads to the JSP [4] to be rendered.
I checked the errorhandling page [5] for Sling but couldn't get it
working with that information.
Any hint is much appreciated!
Best,
Sandro
[1] - https://sling.apache.org/documentation/bundles/resource-editor.html
- contrib/explorers/resourceeditor/README
[2] -
http://svn.apache.org/viewvc/sling/trunk/contrib/explorers/resourceeditor/src/main/java/org/apache/sling/reseditor/resource/
[3] -
http://svn.apache.org/viewvc/sling/trunk/contrib/explorers/resourceeditor/src/main/java/org/apache/sling/reseditor/resource/ResourceProviderBasedResourceDecorator.java?view=markup
[4] -
http://svn.apache.org/viewvc/sling/trunk/contrib/explorers/resourceeditor/src/main/resources/SLING-INF/libs/sling/resource-editor/html.jsp?view=markup
[5] -
https://sling.apache.org/documentation/the-sling-engine/errorhandling.html