Andrea - thanks, but how can I access the panels from a child panel within the component hierarchy of a page without having to put them in the constructor of each child panel?
best regards, Chris > Am 02.02.2015 um 19:02 schrieb Andrea Del Bene <an.delb...@gmail.com>: > > Changing visibility is less complex and if the result looks good I would go > for it. >> Hi, >> >> I would like to swap panels B and C when the user clicks on a certain div >> element in Subpanel Aa >> >> The Page consists of following panels: >> - Panel A > Subpanel Aa >> - Panel B >> - Panel C >> >> How can I access the panels B and C and replace them or change their >> visibility from the WebMarkupContainer onEvent(AjaxRequestTarget target) >> method? >> Is it better to replace them or change their visibility? >> >> Subpanel Aa: >> … >> WebMarkupContainer div=new WebMarkupContainer(„item"); >> div.setOutputMarkupId(true); >> div.add(new AjaxEventBehavior("onclick") { >> protected void onEvent(AjaxRequestTarget target) { >> >> >> } >> }); >> ... >> >> Thanks, >> Chris >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org >