You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Elmar Kretzer <el...@googlemail.com> on 2008/06/12 17:45:26 UTC

[TRINIDAD] inputText with secret=true displays always 6 characters

Hello everyone,
i got a short question related to following situation:

 this is a part of a form where people can alter their password.

<tr:inputText secret="true" value="#{myBean.user.password}" >
 <f:validateLength minimum="8" />
</tr:inputText>


The problem: trinidad always renders only 6 characters when secret is set to
true.
This causes the validator to throw an exception.

i am not wether this is a bug or a feature, but are there any common ways
how to deal with this?

Trinidad 1.2.8
MyFaces 1.2.3


thanks in advance

elmar

Re: [TRINIDAD] inputText with secret=true displays always 6 characters

Posted by Matthias Wessendorf <ma...@apache.org>.
On Thu, Jun 12, 2008 at 8:45 AM, Elmar Kretzer <el...@googlemail.com> wrote:
> Hello everyone,
> i got a short question related to following situation:
>  this is a part of a form where people can alter their password.
>
> <tr:inputText secret="true" value="#{myBean.user.password}" >
>  <f:validateLength minimum="8" />
> </tr:inputText>
>
> The problem: trinidad always renders only 6 characters when secret is set to
> true.
> This causes the validator to throw an exception.
> i am not wether this is a bug or a feature, but are there any common ways
> how to deal with this?

not a bug.
It renders ****** for security reasons.
I'd move the validation into the bean...

-M

>
> Trinidad 1.2.8
> MyFaces 1.2.3
>
> thanks in advance
> elmar
>
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org