Thank you Lance and Thiago,

I was trying to avoid doing this,

<t:if t:test="decideHowToShow">

  <input t:type="TextField" ... />

 <p:else>
   <input t:type="PasswordField" ... />
 </p:else>
</t:if>

or the equivalent blocks and delegate structure.

But now I 've learnt that the t:type parameter uses always LITERAL prefix
and that can't be changed.

thank you.


Nicolás.-


On Fri, Aug 16, 2013 at 1:46 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 16 Aug 2013 12:05:18 -0300, Nicolas Barrera <nbarr...@gmail.com>
> wrote:
>
>  Hi,
>>
>
> Hi!
>
>
>  I 've tried to dynamically change the t:type attribute of an input
>> textfield by doing this:
>>
>> <input t:type="prop:elementType"
>>
>
> As Lance said, t:type is the Tapestry component type. This is completely
> unrelated to bindings. The HTML <input> attribute can be set normally, just
> don't use the t: prefix:
>
> <input t:type="TextField" type="${elementType}" ...>
>
> --
> Thiago H. de Paula Figueiredo
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@tapestry.**apache.org<users-unsubscr...@tapestry.apache.org>
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to