Details
Description
Currently when a markup exception occurs it is in the format of:
Component componentId must be applied to a tag of type 'select', not '<span wicket:id="input">' (line 0, column 0)
The error message isn't very helpful when multiple components may have the same ID. This occurs primarily with repeaters.
The change could take place in the Component class in the checkComponentTag/checkComponentTagAttribute method:
findMarkupStream().throwMarkupException(
"Component " + getId() + " must be applied to a tag of type '" + name + "', not " +
tag.toUserDebugString()+" "+getPath());