You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Leszek Gawron (JIRA)" <ji...@apache.org> on 2009/10/07 11:55:31 UTC

[jira] Commented: (WICKET-2175) onBeforeRender() set visibility of NavigationToolbar prevents it from showing again

    [ https://issues.apache.org/jira/browse/WICKET-2175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762973#action_12762973 ] 

Leszek Gawron commented on WICKET-2175:
---------------------------------------

This functionality still does not work, 1.5-SS:

	@Override
	protected boolean callOnBeforeRenderIfNotVisible()
	{
		return true;
	}

	/** {@inheritDoc} */
	@Override
	protected void onBeforeRender()
	{
		setVisible(table.getPageCount() > 1);
		super.onBeforeRender();
	}


Once NavigationToolbar is set to invisible onBeforeRender() is never called again (despite callOnBeforeRenderIfNotVisible set to true). Please advise.

> 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
>            Assignee: Juergen Donnerstag
>            Priority: Trivial
>             Fix For: 1.4-RC3
>
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
>
> 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.