new AjaxButton() { private boolean available; onBeforeRender() { available = someFlag(); }
isVisible() { return available; } onSubmit() { if (!available) { error("no longer available"); } } } Sven On 07/08/2010 04:48 PM, Conny Kühne wrote:
I have an AjaxButton with @Override public boolean isVisible() { return someFlag; } In a race condition, if user B sets someFlag to false, and then user A clicks the button A gets the following exception org.apache.wicket.WicketRuntimeException: Submit Button buttonName ... is not visible Any ideas how to circumvent this? Conny
--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org