Here is my scenario: I have an input box on my form. If I highlight text and press space to clear it, the form still contains a space, but no text. In my form bean I have a validate method and was wondering how I can check for this space. I tried the following without success: