Feedback message isn't displayed
--------------------------------

                 Key: WICKET-2121
                 URL: https://issues.apache.org/jira/browse/WICKET-2121
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 1.4-RC2
            Reporter: Jakub Srba


Error message created with error() method in load() method of 
LoadableDetachableModel isn't displayed on FeedbackPanel. The same happens when 
using AbstractReadOnlyModel.getObject():

ProblemPage.java:
public class ProblemPage extends WebPage
{

    @SuppressWarnings("serial")
    public ProblemPage()
    {
        add(new FeedbackPanel("feedback"));
       
        error("this error message is displayed");
       
        final IModel<String> helloModel = new LoadableDetachableModel<String>()
        {
            @Override
            protected String load()
            {
                error("this error message is NOT displayed");
                return "Hello message";
            }
        };
        add(new Label("hello", helloModel));
    }
   
}

ProblemPage.html:
<html>
<body>

    <div wicket:id="hello">[hello]</div>
   
    <div wicket:id="feedback">[feedback messages]</div>

</body>
</html> 

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

Reply via email to