Hey, some of you know why GWT applications do not recognize the
operator || (OR) , still the END &&  works ?
For example:

I want that if the form is not entirely completed, is not written
anything in the database, but the IF does not work why the operator ||
does not work
fName,fLastName and email are TextField
-----------------------------------------------
regConfirmButton = new Button("REGISTRATION");
                regConfirmButton.addListener(new ButtonListenerAdapter(){
                        public void onClick(Button button, EventObject e){
                                if ( ( fName.equals("") ) ||  ( 
fLastName.equals("") ) ||
(email.equals("")) ) {
                                        MessageBox.alert("Form not completed");}
                                else
                                        
loginService.createProgrammer(fName.getValueAsString(),
fLastName.getValueAsString(), email.getValueAsString(), callback);
                                }}});

-------------------
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to