Kamal Bhatt wrote:
> Hi,
> I would like to setup an action that forces validation, but does not
> necessarily save the form. Is there a way of doing this?
Yes, sure. In code handling action event you have an access to
"event"[1] variable that holds reference to WidgetEvent[2] instance. So
you can do something like:
event.getSourceWidget().getForm().validate();

HTH.

[1] http://cocoon.apache.org/2.2/blocks/forms/1.0/479_1_1.html
[2]
http://cocoon.apache.org/2.2/blocks/forms/1.0/apidocs/org/apache/cocoon/forms/event/WidgetEvent.html

-- 
Grzegorz Kossakowski

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to