21 Jun 2010 12:06 PM #1
With the introduction of a "Model" class (to replace record) I was wondering a few things.
- Is it possible to bind a form to a model - i.e. have it update the model as the form changes?
- Why is validation NOT performed on the model (all apart from type and allowBlank)? It seems weird to extract validation (based on implementations on most other client and server frameworks) from the model and tightly couple the UI components to the model?
I hope these don't come across as criticisms :-P.
21 Jun 2010 1:35 PM #2
- Join Date
- Mar 2007
- Haarlem, Netherlands
- Vote Rating
They definitely don't come across as criticisms as they are valid arguments. Even better yet, both of the things you mentioned will be implemented exactly the way you suggested. It's just that we havent gotten around to doing it, and we want to make sure we do it right.
21 Jun 2010 10:24 PM #3
15 Jul 2010 7:41 AM #4
When I go to the api and search for allowblank it pulls up properties for all the form fields, but when I click on them the property doesn't actually show on the component's documentation page. Is there an example that demonstrates form validation in sencha?
By tdupont in forum Ext 3.x: User Extensions and PluginsReplies: 1Last Post: 1 Mar 2011, 9:22 AM
By Aldehan in forum Ext GWT: DiscussionReplies: 2Last Post: 17 Jun 2010, 6:53 AM
By Nico33 in forum Ext GWT: DiscussionReplies: 5Last Post: 3 Feb 2010, 12:32 PM
By jfisher in forum Ext GWT: Help & Discussion (1.x)Replies: 0Last Post: 29 Sep 2008, 9:25 AM