You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2012/08/06 14:14:02 UTC

[jira] [Comment Edited] (WICKET-4693) ComponentFeedbackPanel with Form filter and FormComponentPanel exhibits strange behavior

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

Martin Grigorov edited comment on WICKET-4693 at 8/6/12 12:13 PM:
------------------------------------------------------------------

You need
final FeedbackPanel feedback = new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(form));

ComponentFeedbackPanel uses ComponentFeedbackMessageFilter which filters only on the passed component, while you need ContainerFeedbackMessageFilter to be able to filter on the passed component and its children.
In your case the error feedback message that the FCP is required was never rendered and thus it stayed in error state for each submit.
                
      was (Author: mgrigorov):
    You need
final FeedbackPanel feedback = new FeedbackPanel("feedback", new ContainerFeedbackMessageFilter(form));

ComponentFeedbackPanel uses ComponentFeedbackMessageFilter which filters only on the passed component, while you need ContainedFeedbackMessageFilter to be able to filter on the passed component and its children.
In your case the error feedback message that the FCP is valid was never rendered and thus it stayed in error state for each submit.
                  
> ComponentFeedbackPanel with Form filter and FormComponentPanel exhibits strange behavior
> ----------------------------------------------------------------------------------------
>
>                 Key: WICKET-4693
>                 URL: https://issues.apache.org/jira/browse/WICKET-4693
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.0.0-beta3
>         Environment: Firefox, Chrome, Safari, JDK 1.6.0_33 on OSX
>            Reporter: Jeff Bailey
>            Priority: Critical
>         Attachments: cfp.zip
>
>
> FormComponentPanels in a Form used as the component in a ComponentFeedbackPanel fails to re-submit once a validation has failed.
> A quickstart demonstrating the bug and steps to reproduce will be forthcoming.

--
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