You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Gunnar Eketrapp <gu...@gmail.com> on 2009/12/09 21:18:07 UTC

rendered as textfield ???

Hi!

I have a strange problem with <t:passwordfield> !  For some reason this TML
...

            <t:passwordfield name="password2" t:id="password2"
class="formfield1input" value="password2" size="20" maxlength="20"
onBlur="showPassword2()" />

... renders this HTML ...

            <input id="password2" class="formfield1input" type="text" name="
password2" value="Lösenord*" size="20" maxlength="20" onblur="
showPassword2()"/>


Can anyone come up with a reason why type is rendered as text and not
password ?

Thanks in advance!
Gunnar Eketrapp
(from a dark and wet Stockholm, Let's hope the climate conerence get us back
to the snowy white winters I had as a child ...)

Re: rendered as textfield ???

Posted by Gunnar Eketrapp <gu...@gmail.com>.
Thanks a lot!

I had by mistake a TexField annotation in the java class for the password
field!

T5 has such a great error handling and perhaps an error should be thrown
here pointing out the error.

Anyway thanks a lot I have spent some time searching for this one ....

/G


2009/12/9 Ulrich Stärk <ul...@spielviel.de>

> You don't have a TextField password2 annotated with @Component in your page
> class, do you? And you aren't manipulating the DOM in some way (either
> server or client side)?
>
> Uli
>
> On 09.12.2009 21:18 schrieb Gunnar Eketrapp:
>
>  Hi!
>>
>> I have a strange problem with<t:passwordfield>  !  For some reason this
>> TML
>> ...
>>
>>             <t:passwordfield name="password2" t:id="password2"
>> class="formfield1input" value="password2" size="20" maxlength="20"
>> onBlur="showPassword2()" />
>>
>> ... renders this HTML ...
>>
>>             <input id="password2" class="formfield1input" type="text"
>> name="
>> password2" value="Lösenord*" size="20" maxlength="20" onblur="
>> showPassword2()"/>
>>
>>
>> Can anyone come up with a reason why type is rendered as text and not
>> password ?
>>
>> Thanks in advance!
>> Gunnar Eketrapp
>> (from a dark and wet Stockholm, Let's hope the climate conerence get us
>> back
>> to the snowy white winters I had as a child ...)
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
[Hem: 08-715 59 57, Mobil: 0708-52 62 90]
Allévägen 2A, 132 42 Saltsjö-Boo

Re: rendered as textfield ???

Posted by Ulrich Stärk <ul...@spielviel.de>.
You don't have a TextField password2 annotated with @Component in your page class, do you? And you 
aren't manipulating the DOM in some way (either server or client side)?

Uli

On 09.12.2009 21:18 schrieb Gunnar Eketrapp:
> Hi!
>
> I have a strange problem with<t:passwordfield>  !  For some reason this TML
> ...
>
>              <t:passwordfield name="password2" t:id="password2"
> class="formfield1input" value="password2" size="20" maxlength="20"
> onBlur="showPassword2()" />
>
> ... renders this HTML ...
>
>              <input id="password2" class="formfield1input" type="text" name="
> password2" value="Lösenord*" size="20" maxlength="20" onblur="
> showPassword2()"/>
>
>
> Can anyone come up with a reason why type is rendered as text and not
> password ?
>
> Thanks in advance!
> Gunnar Eketrapp
> (from a dark and wet Stockholm, Let's hope the climate conerence get us back
> to the snowy white winters I had as a child ...)
>

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