While using the template.jx macros for CForms I noticed that e.g. widget-label isn't working. Looking at the difference between the non-working macros and the working macros, it seemed like it had something to do with the non-working ones only containing text. Adding a dummy jx:set in those templates fixes the problem, for example:
doesn't work: <jx:macro name="widget-label" targetNamespace="http://apache.org/cocoon/forms/1.0#template"> <jx:parameter name="id"/> ${context_widget_.getWidget(id).unwrap().generateLabel(cocoon.consumer)} </jx:macro> works: <jx:macro name="widget-label" targetNamespace="http://apache.org/cocoon/forms/1.0#template"> <jx:parameter name="id"/> <jx:set var="dummy" value=""/> ${context_widget_.getWidget(id).unwrap().generateLabel(cocoon.consumer)} </jx:macro> -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java & XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED]
