Announcement

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

    Form Validation Error Message Showing Wrong

    Hi,
    We are using Smart Gwt-4.1p(10th March 2015)
    Browser : IE10, 11, Google Chrome: 41.0.2272.101 m
    Attached file: TestsmartGwtProject.java and FormValidation.java
    Attached snapshot: 1) invalid_value.png 2) fieldRequired.png 3) datepicker.png

    Issue 1: Incorrect validation messages for passwordTextItem in case of double byte characters as input.
    Steps:
    1) After launching the application Enter double byte characters for Password fields.
    2) After entering the value do the Tab off. So it will validate and showing “Invalid Value”.
    3) Now repeat step one (1) and try to validate using “OK” button. So after clicking the ok button it show “field is required” error.

    Expected: Validation message 'Invalid Value' should display.
    Actual: Field is required message is displayed.



    Issue 2: user are not able to select date control. If he remove the already existing value of that date text field
    Steps:
    1) After launching the application “DateItem” field are already field.
    2) Now remove the value from date field and try to select the date from date picker.
    User can’t select the date at first time.

    Expected Result: Date Control should be allowed to select
    Actual Result: Date Control is not allowed to select


    Note: After lunching the Application click “edit” button.
    Please let us know how to resolve this issue.


    Thanks for your support.
    Attached Files

    #2
    As we've discussed before, you need to be submitting *minimal* test cases. Obviously this is not a minimal test case when you have crammed code for two totally unrelated issues together. You should instead submit separate test cases for unrelated issue.

    Your first issue is nothing to do with multi-byte input, which is confusing the issue. You are calling clearValue() / setValue("") on blur, which causes the required validator to fail, which is correct behavior. Your other validators are not invoked since the required validator already failed.

    We don't know why you would try to call clearValue() on blur but you should stop doing that.

    For the second issue, please start a new thread with an actual minimal test case, and clarify what you mean by "remove the value from date field". With the keyboard? By hitting what keys?

    Comment


      #3
      Hi,
      Sorry for the above confusing statement once again we are added our query with minimal test case. Please find it below:-

      We are using Smart Gwt-4.1p(10th March 2015)
      Browser : IE10, 11, Google Chrome: 41.0.2272.101 m
      Attached file: TestsmartGwtProject.java and FormValidation.java
      Attached snapshot: fieldisrequired.png and invalid_value.png

      Issue : Incorrect validation messages for TextItem in case of invalid input.
      Steps:
      1) After launching the application Enter some invalid value like ex: enter white space (through space bar) multiple times.
      2) After entering the value do the Tab off. So it will validate and showing “Invalid Value”.
      3) Now repeat step one (1) and try to validate using “OK” button. So after clicking the ok button it show “field is required” error.

      Expected: Validation message 'Invalid Value' should display.
      Actual: Field is required message is displayed.
      Note: As per requirement we have to use clearValue() at onBlur() handler.

      Please let us know how we can resolve this issue.
      Thanks.
      Attached Files

      Comment


        #4
        Same problem as last time:

        You are calling clearValue() / setValue("") on blur, which causes the required validator to fail, which is correct behavior. Your other validators are not invoked since the required validator already failed.

        We don't know why you would try to call clearValue() on blur but you should stop doing that.

        Comment

        Working...
        X