[
https://issues.apache.org/jira/browse/WICKET-4103?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13118856#comment-13118856
]
Christian Huber commented on WICKET-4103:
-----------------------------------------
I had tried adding
throw new RestartResponseException(ErrorPage.class);
to the onrequesthandlerexecuted() callback while ErrorPage is just an empty
page with empty markup and mounted at "error" (calling that page did work when
the exception was not thrown) but that caused the following error:
ERROR - DefaultExceptionMapper - Unexpected error occurred
org.apache.wicket.RestartResponseException
ERROR - DefaultExceptionMapper - Unexpected error occurred
java.lang.IllegalStateException: Header was already written to response!
throwing the exception directly in the homepage constuctor got me redirected to
the error page as expected.
would you need a new quickstart for this?
> FeedbackMessages added in IRequestCycleListener#onRequestHandlerExecuted do
> not get displayed in response page
> --------------------------------------------------------------------------------------------------------------
>
> Key: WICKET-4103
> URL: https://issues.apache.org/jira/browse/WICKET-4103
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.1
> Environment: WinXP SP2, Eclipse 3.4.2
> Reporter: Christian Huber
> Assignee: Igor Vaynberg
> Labels: IRequestCycleListener, feedback, message,
> onRequestHandlerExecuted
> Attachments: endrequesttest.zip
>
>
> When adding a feedback message in
> IRequestCycleListener#onRequestHandlerExecuted it does not get displayed on
> the response page. It is also not available on subsequent requests.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira