onBeforeRender() set visibility of NavigationToolbar prevents it from showing
again
-----------------------------------------------------------------------------------
Key: WICKET-2175
URL: https://issues.apache.org/jira/browse/WICKET-2175
Project: Wicket
Issue Type: Bug
Components: wicket-extensions
Affects Versions: 1.4-RC3
Reporter: Anton Veretennikov
Priority: Trivial
This code in NavigationToolbar:
@Override
protected void onBeforeRender()
{
setVisible(table.getPageCount() > 1);
super.onBeforeRender();
}
makes impossible to show toolbar after it became hidden when using with Ajax
(AjaxNavigationToolbar)
Possible solution:
@Override
public boolean isVisible() {
return table.getPageCount()>1;
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.