Announcement Announcement Module
Collapse
No announcement yet.
Pre-populate form:password Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pre-populate form:password

    Hi,

    I have a form which sets the answer to various security questions, I need to be able to pre-populate the answer fields with a mask value, i.e. ******

    Unfortunately, when I use formassword, the value is not displayed - however, if I use form:input I can see the mask, but obviously, what I type into the form is not hidden...

    Is there anyway to pre-populate formassword fields? Or another way to achieve this?

    Cheers
    Last edited by chivas; Jun 8th, 2007, 07:07 AM.

  • #2
    The form: password field will not render a value by default. You need to set the "showPassword" attribute on the tag:
    Code:
     <form:password ... showPassword="true" />
    Ref. docs: Link
    Is the password value to be shown? Defaults to false.

    Comment


    • #3
      Thanks!

      Thank you for the quick reply

      Comment


      • #4
        I agree that it's not really clear in the tag documentation. It's clearer if you look at the source code for the tag itself.

        Comment


        • #5
          Hi
          when I'm using ShowPassword="true", I'v got this error:

          "Attribute showpassword invalid for tag password according to TLD"

          and I checked the TLD there is no attribute like showPassword.

          any idea where can I get the correct TLD?
          Thank you

          Comment


          • #6
            This seems to have been added only in Spring 2.0.3.

            Jörg

            Comment


            • #7
              Originally posted by Jörg Heinicke View Post
              This seems to have been added only in Spring 2.0.3.

              Jörg

              Hi,

              I am using this showPassowrd and i am able to get the masked password value in the password field. The problem to me here is when i open the view source of the page i am able to see the original password that what i entered.

              Can u please provide the solution to get the masked value in view source of the page as well.

              Comment

              Working...
              X