You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Luther Baker <lu...@gmail.com> on 2008/09/11 22:44:24 UTC

namespace

I have what I hope is a simple question.

Sometimes, the attributes in a Tapestry specific component tag require the
tapestry namespace. Sometimes they do not.

            <t:parameter name="file">
                <p><t:label for="file"/>: <t:upload *t:id*="file"
validate="required"/></p>
            </t:parameter>

Here, "t" is required for t:id ... does ID always required the "t"
namespace? Other attributes do not need "t".

Thanks,

-Luther

Re: namespace

Posted by Luther Baker <lu...@gmail.com>.
Ahhh ... now that does make perfect sense.

Thanks Uli.


On Thu, Sep 11, 2008 at 4:55 PM, Ulrich Stärk <ul...@spielviel.de> wrote:

> You always have to tell the xml parser the namespace of an attribute if two
> attributes with the same name collide. In this case Tapestrys id attribute
> would collide with the (X)HTML id attribute, therefore you have to
> distinguish it with t:id.
>
> Cheers,
>
> Uli
>
> Luther Baker schrieb:
>
>  I have what I hope is a simple question.
>>
>> Sometimes, the attributes in a Tapestry specific component tag require the
>> tapestry namespace. Sometimes they do not.
>>
>>            <t:parameter name="file">
>>                <p><t:label for="file"/>: <t:upload *t:id*="file"
>> validate="required"/></p>
>>            </t:parameter>
>>
>> Here, "t" is required for t:id ... does ID always required the "t"
>> namespace? Other attributes do not need "t".
>>
>> Thanks,
>>
>> -Luther
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

Re: namespace

Posted by Ulrich Stärk <ul...@spielviel.de>.
You always have to tell the xml parser the namespace of an attribute if two attributes with the same 
name collide. In this case Tapestrys id attribute would collide with the (X)HTML id attribute, 
therefore you have to distinguish it with t:id.

Cheers,

Uli

Luther Baker schrieb:
> I have what I hope is a simple question.
> 
> Sometimes, the attributes in a Tapestry specific component tag require the
> tapestry namespace. Sometimes they do not.
> 
>             <t:parameter name="file">
>                 <p><t:label for="file"/>: <t:upload *t:id*="file"
> validate="required"/></p>
>             </t:parameter>
> 
> Here, "t" is required for t:id ... does ID always required the "t"
> namespace? Other attributes do not need "t".
> 
> Thanks,
> 
> -Luther
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org