UPDATE 05/12/2008 : Fixed validate onBlur bug
UPDATE 25/10/2008 : Fixed set value bug
UPDATE 18/10/2008 : Fixed resize bug with formdata 100%
UPDATE 1/7/2008 : Added to source/download : Apache License, Version 2.0
Another User Extension contribution - PasswordField (see screen shot attached). Credit goes to http://extjs.com/forum/showthread.php?t=20417 for providing the concept and idea - though not much was shared other than the images.
Add the PasswordField.jar to your lib and the following line to your gwt.xml
The code snip below shows how to use it within a normal FormPanel or FormLayout.
final PasswordField pw1PwdFld = new PasswordField();
pw1PwdFld.setEmptyText("Enter a strong password");
Nice work. So If I wanted to use this, what type of licensing is this?
Oops, I've updated the download and the source has Apache License, Version 2.0...
updated to fix a formdata 100% resize bug
fixed a setvalue bug that correctly clears invalid state
Nicely done! Thanks for sharing ^.^
I did notice that if you start a password with an upper-case letter, using Shift, then type in a lower-case character it will throw up that CAPSLOCK mask.
detecting capslock is a fudge as there is no actual way to test if the capslocks key is down - as such it just checks to see if the new section entered entered are all upper without shift being pressed and then shows the CAPSLOCK! mask...
All just a trick really and perhaps there is some logic issues... :-?
The mask remains if you type a UpperCase letter and a lowercase after first one. For example...
Originally Posted by gslender
Password fires the mask and it remains active
pAsSwOrD don't fires the mask
nice job(just looked at the pics and idea), iam gonna think to implement this. :)
Thanks a Lot...
I was developing some small application using GWT-Ext and was not aware of this PasswordField but now I got to know about it.Please can you tell me where do I need to copy password.jar file I mean which folder???:)