Hi all, I'm creating a number of standalone forms, that is forms without a Plone content as context, in a Plone product intended to integrate a large Python package (http://www.nltk.org/) and to provide also a UI to most of its functions, its resources and other linguistic resources.
I started working with zope.formlib and Products.Five.formlib, using PageForm for specifying input and BrowserView for showing results. Soon I run into a common problem: dynamically updating a form, e.g. handling a choice whose vocabulary depends on the value of another field in the schema. After googling, and finding threads such as http://www.mail-archive.com/[email protected]/msg06641.html, I decided to learn zope.z3c, plone.z3cform, plone.app.z3cform (they exist since long time, but I'm very lazy). I already went much beyond what I was able to do with zope.formlib/Five.formlib; for example, now I'm able to fit in a single compact browser view both the current request and its results. I have to learn much more. Only, there is a point that puzzles me at the moment: I noticed that the VocabularyFactory that I've defined for a dependent Choice field is being executed every time any field in the form loses the focus, and it is able to use the new value of the field it depends on, but the form itself, and the dependent field, get updated only when a button handler (e.g. button.buttonAndHandler) is called. Any idea? TIA. Giovanni Versions: plone-3.3.5, z3c.form-2.3.4, plone.z3cform-0.6.0, plone.app.z3cform-0.5.0 _______________________________________________ Product-Developers mailing list [email protected] http://lists.plone.org/mailman/listinfo/product-developers
