Here is a simpler example that doesn't work for me either:

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>

First message is displayed, the second one isn't and in the output console I
can read:
Component-targetted feedback message was left unrendered. This could be
because you are missing a FeedbackPanel on the page.  Message:
[FeedbackMessage message = "this error message is NOT displayed", reporter =
0, level = ERROR]


Cristiano Kliemann wrote:
> 
> Maybe you are calling the error method of a wrong component. Can you send
> some code snippet?
> 
> -- Cristiano
> 
> On Tue, Feb 17, 2009 at 9:59 AM, Jakub Srba <[email protected]> wrote:
> 
>>
>> Hi
>>
>> I have LoadableDetachableModel model1. In load method it calls
>> error(String). When I put model1 into Label, the error message is
>> displayed
>> in my FeedbackPanel. Then I have PropertyModel model2, that wraps model1.
>> This time, when I put model2 into Label, the error message isn't
>> displayed.
>>
>> Do you have any idea what do I do wrong?
>>
>> Jakub Srba
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Feedback-message-isn%27t-displayed-tp22056824p22056824.html
>> Sent from the Wicket - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Feedback-message-isn%27t-displayed-tp22056824p22074113.html
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to