Is there any reason to be concerned about firing a ChangeEvent from a composite based on a FlowPanel?
I'm trying to track user edits within a form, in order to set a dirty data flag. Sometimes the form has subforms, each of which has it's own data dirty tracking. Basically, I'm handling ChangeEvents and ValueChangeEvents within the subform, and when those occur, I'm firing a ChangeEvent from the subform. It all seems to work, but I have a vague discomfort with it, knowing that things like textboxes and selects natively fire change events, but div tags don't. Is all the event management related to manually fired change events done entirely in GWT?
As an aside, it's a little weird that ListBox fires ChangeEvent, and not ValueChangeEvent, while ValueListBox fires ValueChangeEvent but not ChangeEvent, given that they're both based on select tags.
-- I'm trying to track user edits within a form, in order to set a dirty data flag. Sometimes the form has subforms, each of which has it's own data dirty tracking. Basically, I'm handling ChangeEvents and ValueChangeEvents within the subform, and when those occur, I'm firing a ChangeEvent from the subform. It all seems to work, but I have a vague discomfort with it, knowing that things like textboxes and selects natively fire change events, but div tags don't. Is all the event management related to manually fired change events done entirely in GWT?
As an aside, it's a little weird that ListBox fires ChangeEvent, and not ValueChangeEvent, while ValueListBox fires ValueChangeEvent but not ChangeEvent, given that they're both based on select tags.
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment