none,

just had one spontanuos thought:
maybe we can reduce typing somewhat if we add those attributes by using a different namespace (rather then, the default one which seems to be so commong for attributes)


(possibly reusing 'fd', or introducing 'fa' for form-atributes)

your sample would become:
<fd:field id="foo" fa:bar="baz">
...
</fd:field>

as said: just a thought
-marc=

Sylvain Wallez wrote:
Hi all,

CForms widget currently support attributes (get/setAttribute methods), but these can only be set programmatically.

I'd like to add the possibility to set attributes in form definitions, e.g.
<fd:field id="foo">
 <fd:attribute name="bar" value="baz"/>
 .../...
</fd:field>

The purpose is to use attributes as tags (or metadata) that can be handled by some generic form handling code.

Any objection for this?

Sylvain


-- Marc Portier http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center Read my weblog at http://blogs.cocoondev.org/mpo/ [EMAIL PROTECTED] [EMAIL PROTECTED]

Reply via email to