1 Aug 2010 01:30
Dialogs and Forms
SilverbackReef <mark <at> linux-wlan.com>
2010-07-31 23:30:58 GMT
2010-07-31 23:30:58 GMT
<noob> Hi Folks, I've got an app that will need lots of Dialog+Forms in a one-page app. I'm doing it all programmatically mostly because I'm more comfortable that way and I like having everything in one place. At this point, I've figured out all the code to make Dialog+Form work correctly/look nice/i18n/validate/etc. and can move on to implementing a bunch of them. Before I do, I'm uncertain that I'm doing things the "right" way: 1) It looks like there's some code here that I can factor out to a "DialogForm" class that will serve as a parent to a class defining the specifics of each Dialog I need in that app. Does these seem like an appropriate approach? 2) A quick look at the Dialog source shows _FormMixin as part of _DialogBase. Does this imply that Dialogs should be able to behave like a form without a contained Form? My experiment with removing my contained Form would say no: I lost the Enter key handling and my onSubmit didn't fire. Thanks for any suggestions. I think I've got a grip on things but I can't shake the suspicion that I'm 'doing it wrong'... -M -- --(Continue reading)
RSS Feed