hard to say, what folders do you have?
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
Thanks a lot for your reply I have added the password.jar files to my Web Apps Library now its working fine.Also when I was working on the same I got another way to make the password field but don't know whether its correct or not but its working here is what I have done :
final TextField passwordField = new TextField("Password","password",130);
passwordField.setPassword(true);
this works well with my application without adding password.jar file to my web apps directory a simple and yet easy solution for password....![]()
gslender, do you think its possible to add this PasswordField only as informative? Not a mandatory condition.
I dunno if I explain right... lets say that I set a STRONG password as PasswordField level. If the user types a lower password the field becomes invalid. I would like to be able to allow for example LOW level passwords and let the bar have a max to STRONG and just use the bar as informative.
sure, doesn't it do that if you set autovalidate to false and don't call isvalid? I think it only does validation checks if you ask it to... if I'm wrong, let me know and I'll fix it to make sure it does work...![]()
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
Maybe its my implementation but I try something like this and continues doing the validation:
Code:password = new PasswordField(); password.setItemId("password"); password.setFieldLabel(constants.STS_PASS_LABEL()); password.setMinScore(PasswordField.Strong); password.setValidateOnBlur(false); password.setAutoValidate(false); password.setAllowBlank(false); password.addKeyListener(clearOnKey);
Seems that the field validates always the Strength of the password. I don't see a method to skip the "forceInvalid" and make the password field as only informative.
Latest 5/12 release contains a fix for setValidateOnBlur(Boolean). When set false, it will ignore validate and make password informative.
Sorry for taking so long to fix this.![]()
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
It's not needed to say sorry :P I'm really grateful for all the work that you all are doing with GXT ^^
I'll test right now and I'll give feedback.
Thanks for the work.
Its not working for me. I have been having a look on the source code and I see this piece:
I suppose that here is the fix in order to make the field be informative but as my IDE says the disabled field means that the field its disabled. How does this fix the enableValidateOnBlur(false) thing?Code:@Override public boolean isValid() { if (disabled) { return true; } return validateValue(getRawValue()); }
Maybe u wanted to use the field this.validateOnBlur from the Field class?