cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: Error in forms-field-styling.xsl in svn
Date Fri, 29 Jul 2005 08:25:22 GMT
Joerg Heinicke wrote:

> On 26.07.2005 13:54, Christoph Hermann wrote:
>> <input type="button" id="{@id}-input" name="{@id}-input" value="..."
>> onclick="forms_submitForm(this)"/>
>> where it should be
>> <input type="button" id="{@id}-input" name="{@id}" 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 

> 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 {@id}-input so that we can produce <label 
for="{@id}-input"> tags that effectively link the label to the right input.

I will commit the fix ASAP (SVN is currently down).

Thanks for reporting!


Sylvain Wallez                        Anyware Technologies
Apache Software Foundation Member     Research & Technology Director

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message