Re: How to display an error message?

2009-08-03 Thread Igor Vaynberg
/** * Adds a component to the list of components to be rendered * * @param component *component to be rendered */ public void addComponent(Component component) i suggest you get sources or javadoc into your IDE so you can see it. it

Re: How to display an error message?

2009-08-02 Thread Gajo Csaba
Thanks Igor, that was exactly what I needed to do. Could you tell me what does target.addComponent() do? It tells Wicket which component should be refreshed by the ajax request? Igor Vaynberg wrote: feedback.rendercomponent()??? i assume this add button is an ajax button? in that case you ha

Re: How to display an error message?

2009-08-02 Thread Igor Vaynberg
feedback.rendercomponent()??? i assume this add button is an ajax button? in that case you have to add the feedback panel to the ajax target passed to you. there are plenty of examples in wicket-examples. -igor On Sun, Aug 2, 2009 at 11:23 PM, Gajo Csaba wrote: > Hello, > > I have a FeedbackPane

How to display an error message?

2009-08-02 Thread Gajo Csaba
Hello, I have a FeedbackPanel, a TreeTable and an Add button. When I click on the Add button, I check if there are any selected nodes in the tree. If there are none, I want to display an error message in the FeedbackPanel. How to do this? The following doesn't work: feedback.error("Select on