* Jason Johnston <[EMAIL PROTECTED]> wrote on [2007-08-29 11:52]: > On Wed, 29 Aug 2007 10:54:34 -0700, Edward Elhauge <[EMAIL PROTECTED]> wrote: > > That should have been: > > 1) When the user hits the Delete button, don't run any of the > > validation > > just delete. > > 2) When the user hits the Save button, run all the validation before > > save. > > It sounds like you want to use the validate="false" attribute when > declaring your delete button widget: > > <fd:submit id="deleteButton" validate="false">...</fd:submit>
Yes that's what I was looking for. I'll give that a try. In a previous post George suggested: >Easy: >"When an action widget was activated, validation will not be performed." > >(from http://cocoon.apache.org/2.1/userdocs/widgets/widget_action.html) Which could also work. Then I'd have to submit the form via javascript in the on-action section. The validate="false" though should be simpler. Thanks everyone. -- Edward Elhauge <[EMAIL PROTECTED]> "The life which is unexamined is not worth living." -- Plato --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
