I try to add a "myApp" child node to
> >> > "myAppContainer".
> >> >
> >> > For example:
> >> >
> >> > // get the "myAppContainer" node
> >> > Node container = rootNode.get("/nodes/myAppCo
d
>> > node definition
>> > NodeDefinition[] defs =
>> > container.getPrimaryNodeType().getDeclaredChildNodeDefinitions();
>> >
>> > // add a new "myApp" node
>> > newNode = container.addNode("myNewAppNode", "cm:myApp&qu
ot; child
> > node definition
> > NodeDefinition[] defs =
> > container.getPrimaryNodeType().getDeclaredChildNodeDefinitions();
> >
> > // add a new "myApp" node
> > newNode = container.addNode("myNewAppNode", "cm:myApp");
> >
&g
.jcr.nodetype.ConstraintViolationException: no definition found in
> parent node's node type for new node:
> no matching child node definition found for {}myNewAppNode:
>
> Is there something I'm doing wrong???
>
>
--
View this message in context:
http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a12463572
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Thank you!
--
View this message in context:
http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a5697836
Sent from the Jackrabbit - Users forum at Nabble.com.
Hi,
On 8/7/06, JavaJ <[EMAIL PROTECTED]> wrote:
Debugging the code, I notice that the problem might be in EffectiveNodeType,
line 703:
ItemDef[] defs = getNamedItemDefs(name);
The name that is passed to this method call is the child nodes' name.
Shouldn't it be the name of the child no
Hi,
On 8/7/06, JavaJ <[EMAIL PROTECTED]> wrote:
[cm:myAppContainer] > nt:base,mix:referenceable,mix:versionable
+ cm:myApp (cm:myApp) = cm:myApp multiple version
[...]
// add a new "myApp" node
newNode = container.addNode("myNewAppNode", "cm:myApp");
Your child node definition is for a node na
n why the error message shows the node's name, not it's
type:
javax.jcr.nodetype.ConstraintViolationException: no definition found in
parent node's node type for new node:
no matching child node definition found for {}myNewAppNode:
--
View this message in context:
http://www.nab
straintViolationException: no definition found in
parent node's node type for new node:
no matching child node definition found for {}myNewAppNode:
Is there something I'm doing wrong???
--
View this message in context:
http://www.nabble.com/Problem-adding-a-child-node-tf2065497.html#a5690775
Sent from the Jackrabbit - Users forum at Nabble.com.