Re: DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-07 Thread Petr Fejfar
On Fri, Aug 7, 2009 at 8:39 AM, Martin Makundi wrote: > hidden component not found".. naturally. So in order for  the hidden > component to "exist" in the HTML DOM tree even if it is HIDDEN, you > must set: ... still thinking like in Desktop world :'( Thanks for prompt help Petr -

Re: DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-06 Thread Martin Makundi
> I've AjaxButton on my form in the modal window hidden at the beginning: > But the button is not shown event if setVisible() is set to true. > What I'm missing now? Look at Wicket Debug console in your browser. You will probably see that "canont replace hidden component with visible component bec

Re: DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-06 Thread Petr Fejfar
On Fri, Aug 7, 2009 at 8:03 AM, Martin Makundi wrote: > You must add OnChangeAjaxBehavior onto the dropdown and NOT > wantOnSelectionChangedNotifications(). I see... I fixed it following you recommendation. Thanks for prompt help. -- Anyway, I'm still fighting with Ajax: I want to show/hide a

Re: DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-06 Thread Martin Makundi
ModalWindow supports only AJAX behavior. You must add OnChangeAjaxBehavior onto the dropdown and NOT wantOnSelectionChangedNotifications(). dropdown.add(new OnchangeAjaxBehavior() { onUpdate() {... } }); ** Martin 2009/8/7 Petr Fejfar : > Hi all, > > I have a DropDownChoice on a panel within

DropDownChoice.onSelectionChanged() in ModalWindow

2009-08-06 Thread Petr Fejfar
Hi all, I have a DropDownChoice on a panel within ModalWindow and once I return true from wantOnSelectionChangedNotifications() method and its value is changed, a browser shows dialog asking for confirmation to continue: "Reloading this page will cause the modal window to disappear" Please, c