On Mon, 25 Feb 2002, Niket Anand wrote:

> Hi All,
> I am using image button of type image with name="cocoon-action".
> As per cocoon2 to perform action event, type should be type="submit".But I
> am having
> <input type="image" src="images/submit.gif" name="cocoon-action"
> value="Submit"/> and onclick of this button it does not perform action.
> How can I execute some action or invoke class on submit of this type of
> button.
>  I am facing problem if I change type="submit", it displays simple button
> but not the image type button.
> Pls help me out of this problem.
> Thanks,
> Niket

Hi, Niket,

you are facing a bug that has been around forever :) But this has been
resolved in the latest CVS version. In the latest CVS version the
cocoon-action syntax has been deprecated (but is still supported) because
of some of i18n problems - anyway.

Get yourself a CVS copy and you may use your action as follows:

 <input type="image" src="images/submit.gif" name="cocoon-action-Submit" 
value="Whatever you want - hit here">

Please note that the action as defined in the action-set is now included
within the name of the input!!

Hope this helps
--
Torsten



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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

Reply via email to