Joerg Heinicke wrote:
On 26.07.2005 13:54, Christoph Hermann wrote:<input type="button" id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]" value="..." onclick="forms_submitForm(this)"/> where it should be <input type="button" id="[EMAIL PROTECTED]" name="[EMAIL PROTECTED]" value="..." ^^^^^^ onclick="forms_submitForm(this)"/> Becaus using the line above with "-input" cocoon will tell: Invalid submit id (no such widget): upload-input (for a widget called "upload").Sylvain? It was introduced with http://svn.apache.org/viewcvs.cgi/cocoon/blocks/core/forms/trunk/samples/resources/forms-field-styling.xsl?rev=161264&r1=157119&r2=161264&diff_format=h. The both <input type="file"/> are indeed different. Should the @id and @name differ?
Yes, because of the Ajax stuff. The tag that has an @id equal to the widget's id should enclose everything that's used to render a widget. In this case, it's an enclosing span.
The input's id is [EMAIL PROTECTED] so that we can produce <label for="[EMAIL PROTECTED]"> tags that effectively link the label to the right input.
I will commit the fix ASAP (SVN is currently down). Thanks for reporting! Sylvain -- Sylvain Wallez Anyware Technologies http://people.apache.org/~sylvain http://www.anyware-tech.com Apache Software Foundation Member Research & Technology Director --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
