cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marc Portier <...@outerthought.org>
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.
> 

indeed.

HTH,
-marc=
-- 
Marc Portier                            http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at                http://blogs.cocoondev.org/mpo/
mpo@outerthought.org                              mpo@apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message