You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Jakub Srba (JIRA)" <ji...@apache.org> on 2009/02/23 09:11:07 UTC

[jira] Created: (WICKET-2121) Feedback message isn't displayed

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.


[jira] Closed: (WICKET-2121) Feedback message isn't displayed

Posted by "Jakub Srba (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakub Srba closed WICKET-2121.
------------------------------


Ok, I'll count with this next time. Thanks

> 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
>            Assignee: Igor Vaynberg
>         Attachments: feedback-message-problem.zip
>
>
> 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.


[jira] Resolved: (WICKET-2121) Feedback message isn't displayed

Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-2121.
-----------------------------------

    Resolution: Won't Fix
      Assignee: Igor Vaynberg

the load method of your model can be called after the feedback panel has already rendered - thus it will not pick it up. it is simply a bad idea to call any feedback related messages from your model's get methods because you have no idea when they are called.

> 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
>            Assignee: Igor Vaynberg
>         Attachments: feedback-message-problem.zip
>
>
> 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.


[jira] Updated: (WICKET-2121) Feedback message isn't displayed

Posted by "Jakub Srba (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2121?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jakub Srba updated WICKET-2121:
-------------------------------

    Attachment: feedback-message-problem.zip

Problem packed as eclipse project.

> 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
>         Attachments: feedback-message-problem.zip
>
>
> 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.