cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: [CForms] Form id not propagated?
Date Thu, 30 Mar 2006 10:41:12 GMT
Carsten Ziegeler wrote:
> Sylvain Wallez schrieb:
>> Carsten Ziegeler wrote:
>>> I'm setting the id on a form in the model and it seems that neither
>>> the cforms transformer nor the jx macros propagate this id to the
>>> resulting html, so a simple
>>> <ft:form-template action="." method="POST">
>>> is not enough.
>>> Currently I have to repeat the id, like:
>>> <ft:form-template id="something" action="." method="POST">
>>> which should be imho unnecessary as the id is already specified in the
>>> model.
>>> Is this a bug or a mistake on my site?
>> Looking at the code, the id attribute is not output when the form has no
>> id, but should be produced otherwise...
> So it should work? Can you point me to the source where this is done?

It's in o.a.c.forms.formmodel.AbstractWidget.getXMLElementAttributes()


Sylvain Wallez
Apache Software Foundation Member

View raw message