[
https://issues.apache.org/jira/browse/WICKET-6529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16352448#comment-16352448
]
Sven Meier commented on WICKET-6529:
------------------------------------
Another fact I was ignorant of:
On *stateless* pages no feedbackPanel is prepared during initialization -
contrary to all other components on that page.
This is done to prevent feedbackModels from collecting messages *prematurely.*
Interesting enough this has two negative implications:
* you can't have links inside a feedback component if used on a stateless page
* all other models on that stateless page *are prematurely* fetched, which
might be confusing e.g. in case of repeaters that should change their model in
response to a click (e.g. deleting a row).
We would have to detach the whole page to give it a clean state, but that
probably would have other negative consequences.
> Feedback from onSubmit not rendered on stateless pages
> ------------------------------------------------------
>
> Key: WICKET-6529
> URL: https://issues.apache.org/jira/browse/WICKET-6529
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 8.0.0-M8
> Reporter: Emond Papegaaij
> Priority: Blocker
> Fix For: 8.0.0
>
>
> On a stateless page, feedback added in onSubmit is not displayed because the
> FeedbackPanel collects its feedbackmessages prior to onSubmit being called.
> This is a regression since 8.0.0-M8, caused by
> [https://github.com/apache/wicket/commit/c27a57b31a0e519ef15dfe08b425d85f9a24f685]
> (for WICKET-6503).
> I'll add a testcase to show the problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)