Hello Wicket Team:

After adding the <wicket:header-items/> placeholder to the <head> tag of my 
base web page, my unit tests fails when the 
BaseWicketTester#startComponentInPage is called, with the following message:
Error while parsing the markup for the autogenerated page: More than one 
<wicket:header-items/> detected in the <head> element. Only one is allowed.

I am overriding the BaseWicketTester#createPageMarkup to return the markup of a 
dummy page that extends my base page w/ the <wicket:header-items/> placeholder.

When I put a break-point in the test, I see that the String returned from the 
BaseWicketTester#createPageMarkup test method makes the placeholder a non-emtpy 
tag, i.e. "<wicket:header-items></wicket:header-items>" instead of 
"<wicket:header-items/>", although that may not matter.

I am using Wicket version 6.15.0.

Any idea as to why this is happening would greatly be appreciated.

Thank you,

- Ephraim

Reply via email to