java.lang.Object
org.apache.wicket.settings.DebugSettings
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
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Strategy for outputting the Java class name of a markup container -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the strategy for outputting the Java class name of a markup containerboolean
Returns status of ajax debug mode.boolean
Are all of the panels and pages, etc, from wicket-devutils package enabled?boolean
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.boolean
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.boolean
Deprecated, for removal: This API element is subject to removal in a future version.setAjaxDebugModeEnabled
(boolean enable) Enables or disables ajax debug mode.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 theComponent
's path.setComponentUseCheck
(boolean componentUseCheck) Sets componentUseCheck debug settingssetDevelopmentUtilitiesEnabled
(boolean enable) Enables all of the panels and pages, etc, from wicket-devutils package.setLinePreciseReportingOnAddComponentEnabled
(boolean enable) 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.setLinePreciseReportingOnNewComponentEnabled
(boolean enable) 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.setOutputMarkupContainerClassName
(boolean enable) Deprecated, for removal: This API element is subject to removal in a future version.setOutputMarkupContainerClassNameStrategy
(String strategyName) Sets the strategy for outputting the Java class name of a markup container in the HTML output.Sets the strategy for outputting the Java class name of a markup container in the HTML output.
-
Constructor Details
-
DebugSettings
public DebugSettings()
-
-
Method Details
-
getComponentUseCheck
- Returns:
- true if componentUseCheck is enabled
-
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.usegetOutputMarkupContainerClassNameStrategy()
insteadReturns 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
Enables or disables ajax debug mode.- Parameters:
enable
-- Returns:
this
object for chaining
-
setComponentUseCheck
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
public DebugSettings setOutputMarkupContainerClassNameStrategy(DebugSettings.ClassOutputStrategy strategy) 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 theDebugSettings.ClassOutputStrategy
to use- Returns:
this
object for chaining
-
setComponentPathAttributeName
If the parameter value is non-empty then Wicket will use it as the name of an attribute of the component tag to print theComponent
's path. This can be useful for debugging and automating tests. For example: ifcomponentPathAttributeName
is 'data-wicket-path' then Wicket will add an attribute to theComponentTag
for each component with name 'data-wicket-path' and as a value the component'spage relative path
.- Parameters:
componentPathAttributeName
- The name of the attribute for theComponentTag
. Ifnull
or empty then the attribute won't be rendered- Returns:
this
object for chaining
-
getComponentPathAttributeName
- Returns:
- The name of the attribute for the
ComponentTag
. Ifnull
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
-
getOutputMarkupContainerClassNameStrategy()
instead