cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <>
Subject Re: [cforms] adding custom attributes to a widget
Date Mon, 23 Aug 2004 14:15:23 GMT

Jorg Heymans wrote:

> Hi,
> Is it possible to add my own attributes to a widget definition?

nope, not to the definition

> I want to do like
> <fd:booleanfield id="bf" myattribute="payment">
> but the myattribute is just filtered out in the output. I also tried 
> adding it to the form template.

that's were it belongs! (and it should work)
but you should of added them to the nested <fi:styling> element.

the defaul stylesheet will copy those over verbatim (unless it's a 
special styling attribute that the xsl reacts upon)

> I could possibly do this via an xslt, but that is just plain nasty as it 
> requires the xslt to know which widgets need to get additional attributes.


Marc Portier                  
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                          

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

View raw message