You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Chris Bentley <be...@boogaloos.de> on 2005/01/31 21:31:11 UTC

[cforms] recursion with cforms

How do I do something like this with 
cforms using the fd:new and the fd:class
functions

<node>
  <node>
     <node/>
   </node>
   <node>
     <node/>
   </node>
</node>
the above stucture is very natutal but
trying a cforms definition like below
brings a recursion error.

<fd:new id="nodeClass"/>
<fd:class id="nodeClass">
  <fd:widgets>
      <fd:repeater initial-size="0" id="nodeRepeater">
        <fd:field id="node">
         ....
        </fd:field>

        <fd:new id="nodeClass"/> <!--Calls its own class-->


      <fd:repeater>
  </fd:widgets>
</fd:class>


Any Ideas on creating tree
structures with cforms.

All the best
Chris


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