[ 
http://issues.apache.org/jira/browse/COCOON-1794?page=comments#action_12369623 
] 

Suzan Foster commented on COCOON-1794:
--------------------------------------

OK, i think i can see where the miscommunication is here. I take it you mean 
that if i do not use an identity binding in my repeater all old nodes are 
deleted and new versions are inserted and filled using the child bindings. 
Correct? This however doesn't work with my use-case as i use the xml:id 
attribute as the identity for a bound node.  The repeater will lookup the 
corresponding context and execute the child bindings in-place. Seeing as i 
don't bind all the nodes in my xml i can't let the binding build the nodes from 
scratch every time it saves as this would lead to data loss.

> [PATCH] Propagation of namespaces to a repeaters child bindings and 
> implementation of a move-node binding
> ---------------------------------------------------------------------------------------------------------
>
>          Key: COCOON-1794
>          URL: http://issues.apache.org/jira/browse/COCOON-1794
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Forms
>     Versions: 2.1.8, 2.1.9-dev (current SVN)
>     Reporter: Suzan Foster
>  Attachments: repeater-binding-patch.txt
>
> This patch corrects the following issues:
> - Namespaced back-end XML model not correctly binding to the repeaters child 
> widgets.
> - Nodes bound to row widgets not being reordered according to row position on 
> save.
> Files affected:
> - JXPathBindingBase:
>   - member applyLeniency changed from private to protected.
>   - member applyNSDeclarations changed from private to protected.
> - RepeaterJXPathBinding:
>   - constructor changed for passing a binding for moveRow.
>   - applyLeniency and applyNSDeclarations applied to created relative 
> contexts.
>   - member moveRowBinding added.
>   - method getMoveRowBinding added.
>   - doSave changed to incorporate the use of moveRowBinding.
> - RepeaterJXPathBindingBuilder:
>   - buildBinding changed to incorporate the construction of moveRowBinding.
> Files added:
> - MoveNodeJXPathBinding.
> - MoveNodeJXPathBindingBuilder.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to