cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Quoin Developers" <quoin...@gmail.com>
Subject Re: [CForms] Load/Save model events never send?
Date Wed, 05 Jul 2006 20:45:55 GMT
Actually, it appears that I can save from an action handler - but it's
a little tricky and probably not the recommended way (calling validate
on the Form from the action handler).

form.form.validate()
if (form.form.isValid()) {
form.save(facade);
facade.save();
form.getChild("contentMessages").addMessage(new I18nMessage('saved',
'application'));
}

Regards,
Eric Meyer

Mime
View raw message