Announcement

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

    Validation and focus

    Hello,
    I'm using a form with 2 TextItem, with validate on change set on true and showInlineErrors set on false on the form.

    At the beginning both fields are not valid, a little resume pops as expected.

    Then, when I type a letter on one field the focus switches to the other. It's very annoying. Please advice.

    Smartgwt version: 2.4
    Last edited by Susanoo; 11 Apr 2011, 23:17.

    #2
    Are you sure you don't have validateOnChange=true?

    Comment


      #3
      Yes i made a mistake it's validateonchange = true instead of validate on exit.
      What's the problem with that?

      Comment


        #4
        Any help? Please?

        Comment


          #5
          Does it always switch to the same field?

          Comment


            #6
            No, if i type on one field it switches to the other (regardless of which field i am typing).

            Comment


              #7
              OK. Let's back up a step here. Why do you want validate on change?

              Additionally, please post a standalone example that illustrates your problem for review.

              Comment


                #8
                We need validate on change to make our application more user friendly. Is there something wrong with this functionality?

                The problem is really simple:
                I have one form with validateOnChange set to true and showInlineError set to false.

                I have one form with 2 TextItem in it. Those 2 textItem have the same validators (IntegerRangeValidator and IsIntegerValidator) and are required.

                At the beginning, we validate the form so the two field are in an error state.

                If i type 21 in the first field, 2 will be written correctly and then 1 will appear on the second field.
                See attachment.
                Attached Files

                Comment

                Working...
                X