cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject JXTemplate macro problem (bug)
Date Sat, 24 Apr 2004 10:53:37 GMT
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
bruno@outerthought.org                          bruno@apache.org


Mime
View raw message