Class DebugSettings

java.lang.Object
org.apache.wicket.settings.DebugSettings

public class DebugSettings extends Object
Settings class for various debug settings

componentUseCheck (defaults to true in development mode) - causes the framework to do a check after rendering each page to ensure that each component was used in rendering the markup. If components are found that are not referenced in the markup, an appropriate error will be displayed

Author:
Jonathan Locke, Chris Turner, Eelco Hillenius, Juergen Donnerstag, Johan Compagner, Igor Vaynberg (ivaynberg), Martijn Dashorst, James Carman
  • Constructor Details

  • Method Details

    • getComponentUseCheck

      public boolean getComponentUseCheck()
      Returns:
      true if componentUseCheck is enabled
    • isAjaxDebugModeEnabled

      public boolean isAjaxDebugModeEnabled()
      Returns status of ajax debug mode.
      Returns:
      true if ajax debug mode is enabled, false otherwise
    • isLinePreciseReportingOnAddComponentEnabled

      Returns status of line precise error reporting for added components that are not present in the markup: it points to the line where the component was added to the hierarchy in your Java classes. This can cause a significant decrease in performance, do not use in customer facing applications.
      Returns:
      true if the line precise error reporting is enabled
    • isLinePreciseReportingOnNewComponentEnabled

      Returns status of line precise error reporting for new components that are not present in the markup: it points to the line where the component was created in your Java classes. This can cause a significant decrease in performance, do not use in customer facing applications.
      Returns:
      true if the line precise error reporting is enabled
    • isOutputMarkupContainerClassName

      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns whether the output of markup container's should contain the container's Java class name.
      Returns:
      true if the markup container's Java class name should be written to response
    • getOutputMarkupContainerClassNameStrategy

      Returns the strategy for outputting the Java class name of a markup container
      Returns:
      the strategy for outputting the Java class name of a markup container
    • setAjaxDebugModeEnabled

      public DebugSettings setAjaxDebugModeEnabled(boolean enable)
      Enables or disables ajax debug mode.
      Parameters:
      enable -
      Returns:
      this object for chaining
    • setComponentUseCheck

      public DebugSettings setComponentUseCheck(boolean componentUseCheck)
      Sets componentUseCheck debug settings
      Parameters:
      componentUseCheck -
      Returns:
      this object for chaining
    • setLinePreciseReportingOnAddComponentEnabled

      Enables line precise error reporting for added components that are not present in the markup: it points to the line where the component was added to the hierarchy in your Java classes. This can cause a significant decrease in performance, do not use in customer facing applications.
      Parameters:
      enable -
      Returns:
      this object for chaining
    • setLinePreciseReportingOnNewComponentEnabled

      Enables line precise error reporting for new components that are not present in the markup: it points to the line where the component was created in your Java classes. This can cause a significant decrease in performance, do not use in customer facing applications.
      Parameters:
      enable -
      Returns:
      this object for chaining
    • setOutputMarkupContainerClassName

      Deprecated, for removal: This API element is subject to removal in a future version.
      Enables wrapping output of markup container in html comments that contain markup container's class name. (Useful for determining which part of page belongs to which markup file).
      Parameters:
      enable -
      Returns:
      this object for chaining
    • setOutputMarkupContainerClassNameStrategy

      Sets the strategy for outputting the Java class name of a markup container in the HTML output.
      Parameters:
      strategy -
      Returns:
      this object for chaining
    • setOutputMarkupContainerClassNameStrategy

      Sets the strategy for outputting the Java class name of a markup container in the HTML output.
      Parameters:
      strategyName - the enum name of the DebugSettings.ClassOutputStrategy to use
      Returns:
      this object for chaining
    • setComponentPathAttributeName

      public DebugSettings setComponentPathAttributeName(String componentPathAttributeName)
      If the parameter value is non-empty then Wicket will use it as the name of an attribute of the component tag to print the Component's path. This can be useful for debugging and automating tests. For example: if componentPathAttributeName is 'data-wicket-path' then Wicket will add an attribute to the ComponentTag for each component with name 'data-wicket-path' and as a value the component's page relative path.
      Parameters:
      componentPathAttributeName - The name of the attribute for the ComponentTag. If null or empty then the attribute won't be rendered
      Returns:
      this object for chaining
    • getComponentPathAttributeName

      Returns:
      The name of the attribute for the ComponentTag. If null or empty then the attribute won't be rendered
      See Also:
    • setDevelopmentUtilitiesEnabled

      Enables all of the panels and pages, etc, from wicket-devutils package.
      Parameters:
      enable -
      Returns:
      this object for chaining
    • isDevelopmentUtilitiesEnabled

      Are all of the panels and pages, etc, from wicket-devutils package enabled?
      Returns:
      true if all of the panels and pages, etc, from wicket-devutils package are enabled