Apr 20, 2007
Mach-II FormHandling
ColdFusion
Doug Hughes Post in der Mach-II Mailing gibt ein Guideline für das Event-Model im Formularhandling.
Ein einfaches Beispiel das exemplarisch verwendet werden kann. Benötig werden 4 Events.
"It's important to realize the power of having an extremely simple "showWidgetForm" event-handler that can easily display whatever widget instance exists in the event-args. This way, when your widgetListener.saveWidget() call fails, it can announce "showWidgetForm" and your form will re-display with whatever information you typed in, even if the widget DIDN'T get saved or created like it was supposed to."
Comments are currently closed