Wicket
  1. Wicket
  2. WICKET-5388

Allow DebugBar contributors to be removed

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 6.9.1
    • Fix Version/s: 6.12.0, 7.0.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Activity

        Alex Grant made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Martin Grigorov made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 7.0.0 [ 12322958 ]
        Fix Version/s 6.12.0 [ 12324889 ]
        Resolution Fixed [ 1 ]
        Martin Grigorov made changes -
        Field Original Value New Value
        Assignee Martin Grigorov [ mgrigorov ]
        Alex Grant created issue -

          People

          • Assignee:
            Martin Grigorov
            Reporter:
            Alex Grant
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development