-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Suppose I have a form with 2 textboxes with "no empty" constraints. The textboxes bind to a bean. When the user is on the second field I want the pressing of Enter to add a new record, reset the fields to blank, then switch the focus to the first textbox. The resetting of the the fields is done by clearing the values in the bean and calling binder.loadAll(), followed by firstTextbox.focus(). It seems this last action triggers the "no empty" constraint on the second textbox.
This seems like a common data-entry pattern. Is there some way to change the focus without triggering the "no empty" constraint?
/Daryl
Asked: 2008-08-25 20:40:07 +0800
Seen: 227 times
Last updated: Aug 25 '08