Opened 4 years ago

#6239 new enhancement

IntroduceValidityChangeEvent

Reported by: Matti Tahvonen Owned by: ticketmaster
Priority: minor Milestone: Vaadin Backlog
Component: Core Framework Version: 6.4.8
Keywords: Cc:
Depends on:
Workaround:
Verified: no
Pro Account: Vote for Feature

Description

Form needs to update its errors based on validity of contained fields. To do this it currently listens value change events of its fields and does the housekeeping task there.

Problems with this approach:

  • excess form repaints. E.g. valid to valid value change in a contained field causes unnecessary tasks to be executed in the Form
  • customizing isValid() method may brake behavior in Form. See DateFields handling of a string that couldn't be parsed in to a Date. An extra hack is needed for cases where value remains null but invalid text content appears or disappears.

Change History (2)

comment:1 Changed 8 months ago by Artur Signell

  • Verified unset

comment:2 Changed 2 months ago by Artur Signell

  • Fv unset
Note: See TracTickets for help on using tickets.