Re: Toggling visibility via ajax fails

2015-10-07 Thread Tom Götz
… additional info: container + contained components are visible if I do a page refresh Tom > On 07.10.2015, at 12:42, Tom Götz wrote: > > Hi there, > > I’m currently struggling with toggling the visibility of a WebMarkupContainer: > > * setOutputMarkupIdPlaceholderTag

Toggling visibility via ajax fails

2015-10-07 Thread Tom Götz
Hi there, I’m currently struggling with toggling the visibility of a WebMarkupContainer: * setOutputMarkupIdPlaceholderTag is set to true * container is not visible, i.e. contained components are hidden * ajax request is triggered that should make the container visible * the container is

Re: Toggling visibility via ajax fails

2015-10-07 Thread Martin Grigorov
Hi Tom, Check the browser DevTools. First check for JS errors in the console. Then check the response of the Ajax call - you should see the new HTML with all components there. Verify that the component id is existing in the DOM. Wicket will log an error if it is not anyway. Martin Grigorov

Re: Toggling visibility via ajax fails

2015-10-07 Thread Tom Götz
Hi, thanks for your hints, I have already checked all of this, otherwise I wouldn’t have asked ;-) The container that’s toggled is added to the AjaxRequestTarget, which has no effect as described. If I add container.getParent() it works though … strange thing, will look even deeper. Tom

Re: Toggling visibility via ajax fails

2015-10-07 Thread Martin Grigorov
Well, you didn't mention that you have checked it ... By chance/mistake do you use for this component ? Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, Oct 7, 2015 at 2:39 PM, Tom Götz wrote: > Hi, > > thanks for your hints, I have