Opened 14 years ago
Closed 13 years ago
#3835 closed defect (fixed)
Form widget
Reported by: | bill | Owned by: | joose |
---|---|---|---|
Priority: | high | Milestone: | 0.9 |
Component: | Dijit | Version: | 0.9 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Implement Form widget for serialization/deserialization of form contents, and for validation. (It should only allow the form to be submitted when all of the widgets that have validation report no problems.)
Change History (14)
comment:1 Changed 14 years ago by
comment:3 Changed 14 years ago by
comment:4 Changed 14 years ago by
comment:5 Changed 14 years ago by
comment:6 Changed 14 years ago by
comment:8 Changed 14 years ago by
Owner: | changed from bill to joose |
---|
comment:9 Changed 14 years ago by
in 0.4.x I have isValid method. So when implementing, you can do if (myForm.isValid()) { myForm.submit(); } .. Why like this and not to implement in submit method? Because in some cases of usuablity, it is smarter to allow submitting of invalid values.
comment:10 Changed 14 years ago by
You'll have to show me the case where you want to submit a form with invalid values.
Also, I want the submit button to change enabled/disabled state based on whether or not the form data is valid. So we need some kind of infrastructure for that, for form widgets to report their state upwards to the Form widget.
comment:11 Changed 13 years ago by
Milestone: | 1.0 → 2.0 |
---|
getting too late for new widgets in 1.0. should this start in dijit or dojox?
comment:12 Changed 13 years ago by
Milestone: | 2.0 → 1.0 |
---|
oh, silly me, this has landed already.
this ticket is getting kinda long. Can we break out the issues and close this (in 0.9?) We shipped something with 0.9, I guess?
comment:14 Changed 13 years ago by
Milestone: | 1.0 → 0.9 |
---|---|
Resolution: | → fixed |
Status: | new → closed |
(In [9752]) Beginnings of Form widget (ported from 0.4), to serialize form data and to do validation (ie, preventing the form from being submitted with invalid values).
This doesn't have any validation yet (eventually it will disable the submit button when the form has errors) but serialization is working for widgets (although not for plain form elements), so it can be used by TooltipDialog? etc.
Refs #3835.