1. #11
    Ext User
    Join Date
    Oct 2008
    Location
    Warsaw(PL)/Cottbus(GER)
    Posts
    215
    Vote Rating
    0
    EagleEye666666 is on a distinguished road

      0  

    Default


    Quote Originally Posted by java.rapchick View Post
    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???
    lib folder of your application + adding to the classpath.

  2. #12
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    hard to say, what folders do you have?

  3. #13
    Ext User
    Join Date
    Nov 2008
    Posts
    2
    Vote Rating
    0
    java.rapchick is on a distinguished road

      0  

    Default Thanks a lot...

    Thanks a lot...


    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....

  4. #14
    Ext User
    Join Date
    Sep 2008
    Posts
    17
    Vote Rating
    0
    dcampos is on a distinguished road

      0  

    Default


    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.

  5. #15
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    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...

  6. #16
    Ext User
    Join Date
    Sep 2008
    Posts
    17
    Vote Rating
    0
    dcampos is on a distinguished road

      0  

    Default


    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);

  7. #17
    Ext User
    Join Date
    Sep 2008
    Posts
    17
    Vote Rating
    0
    dcampos is on a distinguished road

      0  

    Default


    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.

  8. #18
    Ext GWT Premium Member gslender's Avatar
    Join Date
    Mar 2008
    Location
    Brisbane, Australia
    Posts
    1,572
    Vote Rating
    4
    gslender is on a distinguished road

      0  

    Default


    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.

  9. #19
    Ext User
    Join Date
    Sep 2008
    Posts
    17
    Vote Rating
    0
    dcampos is on a distinguished road

      0  

    Default


    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.

  10. #20
    Ext User
    Join Date
    Sep 2008
    Posts
    17
    Vote Rating
    0
    dcampos is on a distinguished road

      0  

    Default


    Its not working for me. I have been having a look on the source code and I see this piece:

    Code:
        @Override
        public boolean isValid() {
            if (disabled) {
                return true;
            }
            return validateValue(getRawValue());
        }
    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?

    Maybe u wanted to use the field this.validateOnBlur from the Field class?