tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "D&J Gredler" <djgred...@gmail.com>
Subject Re: tap5 + doctypes
Date Wed, 14 Mar 2007 16:22:03 GMT
I've run into this problem as well, and ended up modifying
org.apache.tapestry.dom.Document#toMarkup(PrintWriter) to call

writer.write("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\" \"

before calling _rootElement.toMarkup().

Maybe Document needs a getDocType() / setDocType() that gets used internally
in toMarkup(PrintWriter)? Plus maybe some constants for some of the more
common doctypes?

On 3/14/07, Robert Zeigler <robertz@scazdl.org> wrote:
> Howard,
> What are your thoughts on how to get doctypes from templates into the
> rendered output stream? Put another way, what's preventing this from
> happening at the moment? This is something I'm needing at the moment,
> so I'd be happy to jump in and and take care of this todo...
> Robert
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message