cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Refondini <patrick.refond...@pobox.com>
Subject Inserting tasks subtree (using Cocoon 2.1.8 tasks example)
Date Wed, 28 Dec 2005 16:18:33 GMT
I am trying to figure out how to insert a tasks subtree using the CForms 
tasks example.

http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/do-taskTree.flow

I tried to refer to a custom template file containing a tasks subtree 
(tasks-db.xml) in the task tree binding (tasktree_binding.xml)
I used fb:insert-node construct although it appeared it is not supported 
within fb:simple-repeater.

The custom subtree template (tasks-db.xml)

<task end="12/20/05" start="12/31/05">
     <title>Main Task</title>
     <tasks>
         <task end="12/20/05" start="12/20/05">
             <title>Sub 1</title>
         </task>
         <task end="12/20/05" start="12/20/05">
             <title>Sub 2</title>
         </task>
     </tasks>
</task>

The task tree binding (tasktree_binding.xml)
(...)
     <fb:simple-repeater id="tasks" parent-path="tasks" row-path="task"
        delete-parent-if-empty="true">
<!-- ================================== Added for tests START ==== -->
         <fb:on-insert-row>
             <fb:insert-node src="forms/tasks-db.xml" />
         </fb:on-insert-row>
<!-- ================================== Added for tests END ==== -->
         <fb:new id="task-class"/>
     </fb:simple-repeater>
(...)


Any hints where to go from there ?

Thanks, Patrick












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


Mime
View raw message