xmlns:wicket="http://wicket.apache.org" rendered for each panel
---------------------------------------------------------------
Key: WICKET-3812
URL: https://issues.apache.org/jira/browse/WICKET-3812
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.5-RC5
Reporter: Martijn Dashorst
The markup for rendered pages including a Panel now suddenly renders
xmlns:wicket="http://wicket.apache.org", making the markup invalid. See below
for a piece of our markup, and further below for a test that exhibits this
behavior.
<div id="modalWindowContainer40"><!-- MARKUP FOR
nl.topicus.cobra.web.components.modal.ModalWindowContainer BEGIN -->
<div id="id141" xmlns:wicket="http://wicket.apache.org"
style="display:none"><!-- MARKUP FOR
nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow
BEGIN -->
<!-- MARKUP FOR
nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow END
--></div><div id="id242" xmlns:wicket="http://wicket.apache.org"
style="display:none"><!-- MARKUP FOR
nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow
BEGIN -->
<!-- MARKUP FOR
nl.topicus.cobra.web.components.modal.CobraModalWindow$InternalModalWindow END
--></div>
<!-- MARKUP FOR nl.topicus.cobra.web.components.modal.ModalWindowContainer END
--></div>
</div>
/**
* Tests whether rendering a component, it doesn't show the
xmlns:wicket namespace.
*/
@Test
public void renderingEmptyPanelDoesntShowWicketXmlns()
{
WicketTester tester = new WicketTester();
tester.startPanel(EmptyPanel.class);
assertFalse("Should not contain xmlns:wicket",
tester.getLastResponseAsString().contains("xmlns:wicket"));
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira