pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bartlett <cbartlet...@gmail.com>
Subject Re: TextInput and Validator issues
Date Sun, 06 Mar 2011 20:38:09 GMT
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.


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.


On 7 March 2011 03:13, lello <rborrelli@gmail.com> 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.

View raw message