myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: [TRINIDAD] inputText with secret=true displays always 6 characters
Date Thu, 12 Jun 2008 18:38:50 GMT
On Thu, Jun 12, 2008 at 8:45 AM, Elmar Kretzer <elm4ward@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

Mime
View raw message