Ok so what you're saying is that I should go with something like:
public void onClick(AjaxRequestTarget target) {
label.setVisible(!label.isVisible());
target.addComponent(table);
}
This doesn't work either.. I get a java.lang.NullPointerException when
calling label.setVisible(..) when "!label.isVisible()" returns false. When I
debug I come to versionManager.componentStateChanging(change); in the
componentStateChanging method in class Page. But versionManager is null. I'm
not using the latest snapshot but I tried downloading and installing it. But
then I can't even build my projects due to the following error:
"The project was not built since its build path is incomplete. Cannot find
the class file for
wicket.protocol.http.request.urlcompressing.UrlCompressor.".
Alex Objelean wrote:
>
> ... and a quick reply about your issue is (quoting Igor Vaynberg):
>
> "the proper way to do this is to add button's parent, that way the parent
> will repaint itself without the button's tag in it, and later when you
> make it visible the parent will repaint itself with button's tags so
> everything works nicely. "
>
>
>
--
View this message in context:
http://www.nabble.com/Toggle-visibility-for-a-component-using-ajax-tf3260070.html#a9061649
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user