Sitting here and looking at how forms work in Seaside, it hit me just how much simpler Seaside really is. I've done planty of SSP and Servlet style form handling; it's not complicated, and sure, there are frameworks that do nice things like pull data out of forms and stuff them in specific instance variables of an object. However, you still have to create the form and the servlet. Consider the Seaside equivalent of a form:
renderContentOn: html
html form:
[html heading: 'Get the Field Set' level: 2.
html text: 'Field'.
html textInput callback: [:input | field := input].
html break.
html submitButton callback: [self save]].
Yes, that's missing style information, and it's a trivial form - but just look at what's there - you can tell exactly what's happening in the form by looking at the code. That's a far cry from the way things work over in the servlet world.
Technorati Tags:
smalltalk, web