You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jan Winkler (JIRA)" <ji...@apache.org> on 2010/01/28 14:55:34 UTC

[jira] Issue Comment Edited: (WICKET-2705) Feedback messages get cleaned up in AJAX request, thus never rendered and never visible to user

    [ https://issues.apache.org/jira/browse/WICKET-2705?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12805911#action_12805911 ] 

Jan Winkler edited comment on WICKET-2705 at 1/28/10 1:53 PM:
--------------------------------------------------------------

Testcase - maven project quickly hacked together.

1) Unpack, build, and deploy the project to appserver (I'm running on SGES 2.1)
2) Open the application (e.g. http://localhost:8080/feedbackbug-1.0-SNAPSHOT/ )
3) DON'T fill in the text field, submit the form, its onError will hang for 10 secs.
4) In the 10 second meantime, click the 'clickme' button
5) Wait for the end of the 10 sec processing. No feedback messages are provided, even though one should be displayed.

      was (Author: winkler):
    Testcase - maven project quickly hacked together.

1) Unpack, build, and deploy the project to appserver (I'm running on SGES 2.1)
2) Open the application (e.g. http://localhost:8080/feedbackbug-1.0-SNAPSHOT/)
3) DON'T fill in the text field, submit the form, its onError will hang for 10 secs.
4) In the 10 second meantime, click the 'clickme' button
5) Wait for the end of the 10 sec processing. No feedback messages are provided, even though one should be displayed.
  
> Feedback messages get cleaned up in AJAX request, thus never rendered and never visible to user
> -----------------------------------------------------------------------------------------------
>
>                 Key: WICKET-2705
>                 URL: https://issues.apache.org/jira/browse/WICKET-2705
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 1.3.7
>         Environment: Sun Glassfish Enterpriser Server 2.1
>            Reporter: Jan Winkler
>         Attachments: feedbackbug.patch, feedbackbug.tgz
>
>
> Consider a page containing a form and an AJAXy component (as in an AJAX link or a panel with AjaxSelfUpdatingTimerBehavior). The form contains code, that makes its processing take relatively long time, even when validation fails (let's say we forgot to fill in a requred field). The form gets submitted, and while it's processing, the AJAX component triggers a request (AJAX link gets clicked, or AjaxSelfUpdatingTimerBehavior kicks in). While the AJAX request gets served, cleanupFeedbackMessages() is called, wiping all feedback messages found by WebSession.MESSAGES_FOR_COMPONENTS filter.
> WebSession.MESSAGES_FOR_COMPONENTS implementation (or its usage in cleanupFeedbackMessages()) is a little bit fishy, as it accept()s messages, that haven't been rendered.
> Will add testcase.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.