Yes it did compile yesterday but the error occured when I updated my eclipse project after I installed the latest wicket snapshot. But I removed the whole wicket snapshot directory and did a clean checkout, now everything works. But the issue still remains though. The code looks like this:
public BasePage() { final WebMarkupContainer table = new WebMarkupContainer(this, "tableId"); table.setOutputMarkupId(true); final Label label = new Label(table, "labelId", "This is a label"); label.setOutputMarkupId(true); label.setVisible(false); new AjaxFallbackLink(this, "linkId") { private static final long serialVersionUID = 5523627214368899839L; @Override public void onClick(AjaxRequestTarget target) { final boolean visible = label.isVisible(); label.setVisible(!visible); target.addComponent(table); } }; } When I click on the AjaxFallbackLink the first time everything is fine, the label (with wicket id "labelId) gets visible. But when I click the link again to make it invisible, I get a NullPointerException when executing label.setVisible(..). Debugging down into the wicket source code tells me that the NullPointerException occurs on 327 in class Page, when it tries to execute "versionManager.componentStateChanging(change)". However versionManager is null. Why is this? Is this a bug or am I doing something wrong? Thanks igor.vaynberg wrote: > > actually everything compiles > > see here > > http://www.wicketstuff.org/bamboo/start.action > > also latest jars are here > http://www.wicketstuff.org/maven/repository > > -igor > -- View this message in context: http://www.nabble.com/Toggle-visibility-for-a-component-using-ajax-tf3260070.html#a9076595 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user