[
https://issues.apache.org/jira/browse/WICKET-5388?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Martin Grigorov resolved WICKET-5388.
-------------------------------------
Resolution: Fixed
Fix Version/s: 6.12.0
7.0.0
You can use now
org.apache.wicket.devutils.debugbar.DebugBar#getContributors(Application) and
org.apache.wicket.devutils.debugbar.DebugBar#setContributors(List<IDebugBarContributor>,
Application)
> Allow DebugBar contributors to be removed
> -----------------------------------------
>
> Key: WICKET-5388
> URL: https://issues.apache.org/jira/browse/WICKET-5388
> Project: Wicket
> Issue Type: Improvement
> Affects Versions: 6.9.1
> Reporter: Alex Grant
> Assignee: Martin Grigorov
> Priority: Minor
> Fix For: 7.0.0, 6.12.0
>
>
> Please add a way to unregister DebugBar contributors.
> I wish to remove some of the default contributors and currently have to do
> this by using reflection to lookup the "CONTRIBS_META_KEY" field.
> The reason why I'm removing contributors (perhaps there's a better solution?):
> * PageSizeDebugPanel tries to serialize the whole page during page rendering,
> while models are still attached. This causes most of our database-backed
> models to complain that they're being serialized without being detached (as
> this usually means somebody probably forgot to call detach() somewhere).
> * InspectorDebugPanel - InspectorPage currently shows me a blank component
> tree because it doesn't have @RequireHttps as all our other pages do and thus
> redirects to an http:// URL and can't see the session. So we copied
> InspectorPage (since it's final and can't be subclassed) to add @RequireHttps
> and likewise copied InspectorDebugPanel.
--
This message was sent by Atlassian JIRA
(v6.1#6144)