On 01/08/2003 09:19:34 PM Ian wrote: >This looks similar to FormKit
Yes, it does. I just looked at FormKit, and the servlet-level interface is very similar to my own (now abandoned) form system. What I've found is that the current (FFK 0.4) servlet interface is much simpler than FormKit (or mine). Specifically, it (FFK 0.4) does not require anything special to be inserted into the awake/respond/sleep methods, which is nice. >But more and more I want to think of the form as an >interface, and an interface only makes sense when it's declarative. This is true. >Part of the advantage of a class definition is that it's a declarative >style people are used too -- as it is now you might almost imagine it's >imperative, but it's not, and I imagine that disconnect frustrates >people. It never bothered me... how would mutable forms be achieve with the class-within-a-class form/field definition/interface? >Formulator is all crazy because it's in Zope. Why doesn't this surprise me? Zope makes everything seem complex... Oh, before I forget, I have a little feedback about validators... The way FFK is now, validators are passed in as a part of a field constructor. There isn't an officially sanctioned way to turn off validation for a field, at least not without digging into the underscored instance variables. I came a cross a situation where it would be useful to turn off or change validators on the fly. The situation is where a form has a field that must pass some test. If you use the form to accept data, everything works as expected. But suppose you now want to use the form to display data... i.e., the fields are all made static. The form will display nicely, but when the user hits a button to move on, the validation tests are run and the form is redisplayed with false errors. To get around this, I had to make the form mutable and then replace the fields in question with versions that had the offending validators removed. It would have been nicer to either: (1) have static fields skip validation tests since there's no user input to check or (2) provide a sanctioned way to change the validators for a field. ...Edmund. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com _______________________________________________ Webware-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-devel