Module org.apache.wicket.core
Class HtmlProblemFinder
java.lang.Object
org.apache.wicket.markup.parser.AbstractMarkupFilter
org.apache.wicket.markup.parser.filter.HtmlProblemFinder
- All Implemented Interfaces:
IMarkupFilter
This is a markup inline filter which by default is not added to the list of markup filter. It can
be added by means of subclassing Application.newMarkupParser() like
Application#init() { getMarkupSettings().setMarkupParserFactory() { new MarkupParserFactory() { MarkupParser newMarkupParser(final MarkupResourceStream resource) { MarkupParser parser=super.newMarkupParser(resource); parser.appendMarkupFilter(new HtmlProblemFinder(HtmlProblemFinder.ERR_THROW_EXCEPTION)); return parser; } } } }The purpose of the filter is to find possible HTML issues and to log a warning.
- Author:
- Juergen Donnerstag
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Ignore the issue detectedstatic final int
Log an error on the issue detectedstatic final int
Log a warning on the issue detectedstatic final int
Throw an exception on the issue detectedFields inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
REQUEST_COUNTER_KEY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected final MarkupElement
Invoked when a ComponentTag was found.Methods inherited from class org.apache.wicket.markup.parser.AbstractMarkupFilter
getMarkupResourceStream, getNextFilter, getRequestUniqueId, getWicketNamespace, getWicketNamespace, nextElement, onSpecialTag, postProcess, setNextFilter
-
Field Details
-
ERR_INGORE
Ignore the issue detected- See Also:
-
ERR_LOG_WARN
Log a warning on the issue detected- See Also:
-
ERR_LOG_ERROR
Log an error on the issue detected- See Also:
-
ERR_THROW_EXCEPTION
Throw an exception on the issue detected- See Also:
-
-
Constructor Details
-
HtmlProblemFinder
Construct.- Parameters:
problemEscalation
- How to escalate the issue found.
-
-
Method Details
-
onComponentTag
Description copied from class:AbstractMarkupFilter
Invoked when a ComponentTag was found.By default this method is also called for WicketTags.
- Specified by:
onComponentTag
in classAbstractMarkupFilter
- Returns:
- Usually the same as the tag attribute
- Throws:
ParseException
-