Not really sure about it. Doctype is part of the markup stream. Easiest solution would be to put the page class on the very end of generated html, change would be trivial and it shouldn't break anything.
-Matej On Fri, Feb 6, 2009 at 3:25 PM, Jan Loose <[email protected]> wrote: > Hi, > > I tried to use setOutputMarkupContainerClassName() and this decorator > creates the comment before <!DOCTYPE/> and before tag <html/>. > This is problem because IE7 recognize the document wrong (wrong render > mode). > > Quirks mode in IE 7 can also be triggered when coding HTML 4.01 documents. > Inserting a comment before the DTD will trigger this backwards compatible > mode in both IE 6 and IE 7. > > --- > > <!-- Page Class com.cleverlance.vodafone.m2w.portal.web.core.HomePage --> > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > <html xmlns="http://www.w3.org/1999/xhtml" > xmlns:wicket="http://wicket.sourceforge.net/" xml:lang="cs" wicket:id="html" > wicketpath="html"> > > --- > > Thx for fixing this bug ... > https://issues.apache.org/jira/browse/WICKET-2086 > Jan Loose > > > On Wed, 04 Feb 2009 20:19:13 +0100, Ryan Gravener <[email protected]> > wrote: > >> +1 >> >> Ryan Gravener >> http://ryangravener.com/flex | http://twitter.com/ryangravener >> >> >> On Wed, Feb 4, 2009 at 2:14 PM, Peter Ertl <[email protected]> wrote: >> >>> HTML markup validation will still be successful, right? >>> >>> +1 for it >>> >>> Am 04.02.2009 um 15:31 schrieb Timo Rantalaiho: >>> >>> +1 >>>> >>> >>> > > > > -- > Jan Loose > Senior J2EE Developer > __________________________________________ > Cleverlance - The Clever Enterprise Solutions > www.cleverlance.com > European Business Center > Dukelských hrdinů 34 > 170 00 Praha 7 > Czech Republic > Tel: +420 266 177 166 >
