Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
TextField validate
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Expand all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
lvcster  
View profile  
 More options Feb 27 2008, 5:52 pm
From: lvcster <lvcs...@gmail.com>
Date: Wed, 27 Feb 2008 14:52:30 -0800 (PST)
Local: Wed, Feb 27 2008 5:52 pm
Subject: TextField validate
How do I call a method that might do a validation, or anything for
argument sake, when the field looses a focus.

Thanks in advance.

lvcster.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
alberto33  
View profile  
 More options Mar 3 2008, 10:37 pm
From: alberto33 <albert...@gmail.com>
Date: Mon, 3 Mar 2008 19:37:35 -0800 (PST)
Local: Mon, Mar 3 2008 10:37 pm
Subject: Re: TextField validate
Take a look at:

http://gwt-ext.com/docs/gwtext2/com/gwtext/client/widgets/form/event/...

On Feb 27, 5:52 pm, lvcster <lvcs...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elvis Hlongwane  
View profile  
 More options Mar 4 2008, 2:55 pm
From: "Elvis Hlongwane" <lvcs...@gmail.com>
Date: Tue, 4 Mar 2008 21:55:15 +0200
Local: Tues, Mar 4 2008 2:55 pm
Subject: Re: TextField validate
I sent the wrong question...
I wanted to ask about comparing the values of 2 fields when either of
the 2 fields looses focus and the field are both not empty.

More like validating password comfirmation.

Any done this before(Using Validator interface).

thanks.

--
Elvis Hlongwane
Cel: 082 255 1532

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hugo Forte  
View profile  
 More options Mar 5 2008, 7:02 am
From: Hugo Forte <h...@hugoforte.com>
Date: Wed, 5 Mar 2008 04:02:11 -0800 (PST)
Local: Wed, Mar 5 2008 7:02 am
Subject: Re: TextField validate
Aloha,

I added the following validator to my password, it could be modified
as you see fit.

        //Password
        final TextField password = new TextField("Password",
"password", 230);
        password.setAllowBlank(false);
        password.setPassword(true);
        accountInfo.add(password);

        //Retyped password
        final TextField passwordRetype = new TextField("Retype
Password",
                "passwordRetype", 230);
        passwordRetype.setAllowBlank(false);
        passwordRetype.setPassword(true);

        Validator validatePassword = new Validator() {
                public boolean validate(String value)
                    throws ValidationException {
                    String passwordText = password.getText();
                    if (!value.equals(passwordText)) {
                        throw new ValidationException("Passwords do
not match");
                    } else if (value.length() < 6) {
                        throw new ValidationException(
                            "Password has to be at least 6 characters
long");
                    } else {
                        return true;
                    }
                }
            };

        passwordRetype.setValidator(validatePassword);
On Mar 4, 1:55 pm, "Elvis Hlongwane" <lvcs...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Elvis Hlongwane  
View profile  
 More options Mar 5 2008, 2:49 pm
From: "Elvis Hlongwane" <lvcs...@gmail.com>
Date: Wed, 5 Mar 2008 21:49:26 +0200
Local: Wed, Mar 5 2008 2:49 pm
Subject: Re: TextField validate
That's what im talking about. Thanks a mil Aloha.

--
Elvis Hlongwane
Cel: 082 255 1532

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »