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]
>
>
--
Howard M. Lewis Ship
Creator Apache Tapestry and Apache HiveMind
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]