Hybrid View
-
28 Jun 2008 10:10 PM #1
ext.ux.pwd.PasswordField
ext.ux.pwd.PasswordField
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.Code:<inherits name='ext.ux.pwd.PasswordField'/>
...enjoy,
Grant
Code:final PasswordField pw1PwdFld = new PasswordField(); pw1PwdFld.setEmptyText("Enter a strong password"); pw1PwdFld.setFieldLabel("Secure Password"); pw1PwdFld.setMinScore(PasswordField.Strong); formpanel.add(pw1PwdFld);
-
30 Jun 2008 8:30 AM #2
Nice work. So If I wanted to use this, what type of licensing is this?
-
30 Jun 2008 1:40 PM #3
Oops, I've updated the download and the source has Apache License, Version 2.0...
-
17 Oct 2008 4:55 PM #4
updated to fix a formdata 100% resize bug
GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
27 Oct 2008 1:07 PM #5
fixed a setvalue bug that correctly clears invalid state
GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
28 Oct 2008 9:02 AM #6
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.
-
28 Oct 2008 1:13 PM #7
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...
GXT JavaDocs: http://extjs.com/deploy/gxtdocs/
GXT FAQ & Wiki: http://extjs.com/learn/Learn_About_the_Ext_GWT_Library
Buy the Book on GXT: http://www.apress.com/book/view/9781430219408
Follow me on Twitter: http://twitter.com/gslender
-
29 Oct 2008 3:10 AM #8
-
12 Nov 2008 11:04 AM #9
nice job(just looked at the pics and idea), iam gonna think to implement this.

regards!
-
13 Nov 2008 10:28 PM #10
Thanks a Lot...
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???



Reply With Quote
