/** * 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 will make your learning experience much better. -igor On Sun, Aug 2, 2009 at 11:56 PM, Gajo Csaba<cg...@i-rose.si> wrote: > 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 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<cg...@i-rose.si> wrote: >> >>> >>> 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 one node."); >>> >>> i've also tried re-rendering it, but it also didn't work: >>> feedback.renderComponent(); >>> >>> What is the proper way to display the error message? >>> >>> Regards, >>> Csaba >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org