I don't have the source in front of me but I think that the main issue here is that the strict validation of TextInputs doesn't work properly due to it processing text replacement as 2 separate operations. TextInputContentListener will preview and possibly veto the text removal before then previewing and possibly vetoing the text insertion.
http://pivot.apache.org/2.0/docs/api/org/apache/pivot/wtk/TextInputContentListener.html If so, it shouldn't be too hard to calculate what the resulting string would look like after a combined (remove + insert) operation, and then pass that to the validator. Without access to the source though, I can't be sure. Chris On 7 March 2011 03:13, lello <[email protected]> wrote: > Just a note, > the solution suggeste by Chris does work, in the sense that it allows to > have an empty field. > The problem is that in my case the empty field should not be valid, and the > use can press ENTER, call > for store() and trigger an exception. So the solution is not really that > immediate. > > -- > View this message in context: > http://apache-pivot-users.399431.n3.nabble.com/TextInput-and-Validator-issues-tp2641141p2643037.html > Sent from the Apache Pivot - Users mailing list archive at Nabble.com. >
