Hi,

I am currently testing my app for valid xhtml markup with this fine project
(http://github.com/dashorst/wicket-stuff-markup-validator).

In my LoginPage class I add a css file like this:
add(CSSPackageResource.getHeaderContribution(HomePage.class,
"css/style.css"));

which generates this code:
<link rel="stylesheet" type="text/css"
href="resources/org.mycompany.pages.HomePage/css/style.css"
/>

This code is obviously not valid xhtml and therefore the
wicketstuff-validator complains about this line.
I think it is possible to include css files directly in the html file (with
valid markup). But I think there are circumstances where it would be nice to
include them in the java code.
Is there a way to generate valid markup with the above mentioned technique?

Best regards,
Richard

Reply via email to