Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Input Validation and Focus

    Hi Iso,

    I tried two different ways of FormItem value validation, your Validators as well as own validation in a handler function. As soon as I change the icon the intra focus of the text field jumps to the last position. In most cases if you enter a value from scratch this does not matter, in case of editing it does.

    Any comments?

    Thx,

    Ekki

    * GWT Rocks! * SmartGWT Rocks Even Harder! * GWT 2.0.3,
    SmartGWT PRO 2.3, JRE 1.6.0_20, Eclipse 3.6 *
    * Xcode 3.2.2 * iOS 3.0 (Base OS) *

    #2
    Changing the form icon causes the entire field to be redrawn which loses the caret position. You must take care to obtain and restore it. Built-in validation takes care of this when showing the error icon.

    Comment


      #3
      Even built-in validation makes trouble (in this sense)...

      Manual save-and-restore of intra-text focus would be an option but it seems the API for doing so is missing, at least on the S'GWT level...

      Ekki

      Comment

      Working...
      X