I've checked in a fix for this. The next event after a </jx:parameter> was being ignored. The bug was unnoticeable in many cases however because in such cases that event was just whitespace. Thanks for reporting the problem.

Chris

Bruno Dumon wrote:

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>






Reply via email to