This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes JSF and the fly likes Problem with input Secret Field Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "Problem with input Secret Field" Watch "Problem with input Secret Field" New topic
Author

Problem with input Secret Field

safraz hanas
Greenhorn

Joined: Jun 12, 2004
Posts: 2
Hi,

I have a form which is assigning user name & password for end users by an authorized person,

I'm using <h:input Secret> for password Fied. The Problem is when The Authorized Person want to edit the record <h:input Secret> doesn't set the Previous Value. Can anyone Suggest a solution

Thanks in Advance
Kevin Galligan
Ranch Hand

Joined: Aug 10, 2005
Posts: 70
I don't think you'd want a password box to be sending itself to a client. Since you don't want to show the value anyway, let it be blank. Test the value on the server. If the admin types in a new password, set it on the user. If the value is blank, leave the current password as is.

If you want to allow blank passwords, you'll need something different. I'd suggest an explicit "Password Reset" page.

Actually, I'd suggest that regardless.
safraz hanas
Greenhorn

Joined: Jun 12, 2004
Posts: 2
Thanx Kevin Galligan
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Problem with input Secret Field
 
Similar Threads
Input in a Nested table
Javascript in JSF
cannot redirect to secure page
jaxb binding rror confused
Problem with h:panelGroup