cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christofer Dutz" <>
Subject AW: CForms: conditional display of widgets
Date Wed, 07 Jun 2006 11:42:02 GMT
Hi Fernando,


use the JX-Templates. In Order to make Cforms work you have to ad the
following as child of the templates root:


And then stop using the forms generator but to use a normal resource or ile
generator and use the Forms transformer:

            <map:transform type="forms"/>

Then all you can do the following:
test="${(widget.getChild('curUser_departmentId').getValue() ==
widget.lookupWidget('view/contact/gst').getValue()) &amp;&amp;
(widget.lookupWidget('imported').getValue() == false)}">

                        <ft:widget id="save"/>



Hope this helps.

Oh just forgot … don’t forget to declre the jx-namespace



Regards, Chris


[ c h r i s t o f e r   d u t z ]



univativ GmbH & Co. KG

Robert-Bosch-Str. 7, 64293 Darmstadt


fon: 0 61 51 / 66 717 - 21

fax: 0 61 51 / 66 717 - 29



Darmstadt, Stuttgart, Karlsruhe, Düsseldorf





Von: [] 
Gesendet: Mittwoch, 7. Juni 2006 13:31
Betreff: CForms: conditional display of widgets


How can I do to display a certain widget in a form only if a specific
condition is met?


Depending on the value of a drop-down menu in the form, another widget
should be displayed or not,

dynamically, not only when the form is first presented.



View raw message