Hello, all,
The project that I am currently working on includes a requirement to validate an input field on the fly, as the user is typing. The idea is as follows:
- When the user begins typing in the field, the background color should change from the default white to yellow.
- When the user has typed a valid sequence of characters, the field should change back to white.
- If the user continues to enter further input, and that invalidates the
string, the field should change back to yellow.
The project is being built with
JSP, and I am using the <h:inputText> tag for my text box. As I'm very new to JSP, I am wondering if there is a simple solution involving an ActionListener or EventListener of some kind that I can use to implement this functionality. Has anyone here ever put something together like this?
I appreciate any help you can offer, including even a simple "there's no way you will get that to work." I just need to know if it's possible or not. Thanks in advance!