How to display an error message?

2009-08-03 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

Re: How to display an error message?

2009-08-03 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

Modal dialog's components get disabled after closing

2009-07-31 Thread Gajo Csaba
Hi, I have a class which extends ModalWindow and has just one content panel inside. I've added several radio buttons and ajaxfallbackbuttons to it. When I display it with dialog.show(target) it shows without problem. I also have a Cancel button in it, which is supposed to close the dialog.

Re: Modal dialog's components get disabled after closing

2009-07-31 Thread Gajo Csaba
I've found the error, looks like our abstract class which extends the ModalWindow had contentPanel.setEnabled(false); written in its close callback method... Gajo Csaba wrote: Hi, I have a class which extends ModalWindow and has just one content panel inside. I've added several radio

Re: Beginner problems with TabbedPanel

2009-07-30 Thread Gajo Csaba
); setREsponsePage(page); } ** Martin ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: Hmm there's something very wrong here... I try to refresh the page like this: setResponsePage(getPage()); When this is the only action, the current page is refreshed. When I write setSelectedTab(0) above

Re: Thanks Wicket-Team!

2009-07-30 Thread Gajo Csaba
Oliver, good website, I can see you've put a lot of work in it. Could you please make it work fully with Opera too? At one page I got a message telling me to come back with IE or Firefox. I think wicket works without problems on Opera 9... Regards, Csaba okrohne wrote: Hi Jeremy, let me

Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
Hello, I've recently started working with Wicket, so a lot of things are still unknown for me. For example, right now I have a tabbed panel with two tabs. In the begining, I write setSelectedTab(1), so that the first tab is the default. This works ok. However, I have an AjaxFallbackLink on

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
selects tab 0. You need to build that logic into tabbedpanel when it is being rendered... That's what we did. I am not sure if it is possible to call setSelectedTab after the page has rendered... you could have a look at the code in the tab link and do something similar. ** Martin 2009/7/29 Gajo

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
and an ajaxfallbacklink... Maybe I really should redirect to the same page with another parameter, like you did. Martin Makundi wrote: Nono... just look at the source code of the link. ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: I really hope that I don't have to write ?wicket:interface=:6

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
and an ajaxfallbacklink... Maybe I really should redirect to the same page with another parameter, like you did. Martin Makundi wrote: Nono... just look at the source code of the link. ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: I really hope that I don't have to write ?wicket:interface=:6

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
the complete URL ?wicket:interface=:2:innertabs:tabs-container:tabs:0:link:1:ILinkListener:: seems to be the only suggestion which actually works for now. Martin Makundi wrote: Ah.. do you repaint the page after your ajax button call? ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si

Re: Beginner problems with TabbedPanel

2009-07-29 Thread Gajo Csaba
page = getPage(); tabbedPanel.setSelectedTab(0); setREsponsePage(page); } ** Martin ** Martin 2009/7/29 Gajo Csaba cg...@i-rose.si: Hmm there's something very wrong here... I try to refresh the page like this: setResponsePage(getPage()); When this is the only action, the current page