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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]