An application I'm working on has a table of assets and one column is the IP address. Has anyone figured out a neat solution for data entry and validation? Presumably I'd have to render the column as a view.
I've played around with 255.255.255.255 using four numeric entry fields with lower and upper limits of 0 and 255. But this accepts decimals (7.3, etc.). Out-of range values can be handled by the invalidStyle settings to give a red border, or whatever. It does support the Tab key to move between fields, which is a help.
On a more serious note, text field, deferUpdates and rejectUpdatesWhileFocused off. Value change event that fires on browser source only, that applies regex filter to entered value and strips unallowed items (\D if using java regex) or enters the max/min value if going beyond edges and writes it back to a custom property on the view. The numeric entry is bound unidirectionally to this custom property.
I think you could also use this script to send focus to the next box on 3rd digit entry.