On 14.9.2004, at 17:07, M. Uli Kusterer wrote: Length-limiting text entry fields is a common enough problem that I don't get why there isn't a solution built in already. ... I beg to differ. To limit lenght is definitely not a task for a field, and not quite for a formatter, either. If at all, it looks like a controller-level thing: what about exploiting validation?
Length-limiting text entry fields is a common enough problem that I don't get why there isn't a solution built in already.
Could you elaborate?
At the moment I don't have the time to test it, but I think that some combination of a controller-level validator and perhaps a formatter which keeps checking and presents the text in red with a tooltip showing the cause of the problem if it does not validate (like, since it is too long by N chars) would be the way to go.