I suppose you meant @ContentType("text/xhtml").This doesn't work, though. At least not for me. I get a download prompt for the page, then.
Same thing happens in Internet Explorer with @ContentType("application/xhtml+xml"), so that doesn't work either.
Ugh. -Filip On 2008-08-14 16:17, Howard Lewis Ship wrote:
I need to update that wiki page. You can also just at @ContentType("text/html") to your page. On Thu, Aug 14, 2008 at 5:12 AM, Filip S. Adamsen <[EMAIL PROTECTED]> wrote:Hi, Have a look at http://wiki.apache.org/tapestry/Tapestry5HowToXhtml. -Filip On 2008-08-14 14:11, Andy Pahne wrote:I have a component, that's renders an img tag. @BeginRender public void renderIcon(MarkupWriter writer) { Asset icon = getSrc(); writer.element("img", "src", icon.toClientURL(), "alt", getAlt()); resources.renderInformalParameters(writer); writer.end(); } The result is: <img alt="Hello" border="0" src="/x/y/z/image.gif"> (border is an informal parameter!) Shouldn't it render more like: <img alt="Hello" border="0" src="/x/y/z/image.gif" /> Andy --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
