Mar 16th, 2010, 04:08 PM
enabling buttons (such as Next) once data in a view is validated
I wrote a small swing adapter so that I can use spring webflow with swing. However, I am trying to create a demo wizard and was wondering what is the traditional web mechanism can be used to disable a button in a view (where a disabled state is shaded to indicate that it cannot be pressed)? I can see a way to do that by passing in the swing buttons as attributes (and then somehow tie that into validation) into the flow but wanted to understand the traditional approach. The hotel demo has the button active and performs validation when pressed but I want to disable the button until validation of the form's data has occurred e.g. all required fields have data entry.