You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2015/09/02 20:48:45 UTC

[jira] [Commented] (WICKET-5979) Feedback.anyMessage() and 1891.10.01 date bug

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

Sven Meier commented on WICKET-5979:
------------------------------------

Feedback.anyMessage()

Problem is that MyFeedback is calling #anyMessage() from #isVisible(), which is called during form submit already. This forces FeedbackMessagesModel to collect all messages *before* your #onSubmit(). These messages are cached until #detach() is called, so MyFeedback shows the additional message on the next request only.

You should follow good practices:

{code}
WebMarkupContainer border = new WebMarkupContainer("border") {
    @Override
    protected void onConfigure() {
        super.onConfigure();
   			
        setVisible(feedback.anyMessage());
    }
};
{code}


> Feedback.anyMessage() and 1891.10.01 date bug
> ---------------------------------------------
>
>                 Key: WICKET-5979
>                 URL: https://issues.apache.org/jira/browse/WICKET-5979
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket, wicket-datetime
>    Affects Versions: 7.0.0-M6, 7.0.0
>         Environment: Apache Tomcat 8
>            Reporter: Keresztes József
>            Assignee: Sven Meier
>
> Feedback.anyMessage() is not working perfectly,
> and 1891.10.01 is invalid date in the TextField.
> The quickstart project location is:
> https://github.com/xesj/wicket7-bug.git



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)