the reason is that the child should be added to the parent node before you start to set
property on it.
the main reason is that in JCR you can only create a Node object by an add method before
setting property on it.
let me know if it works
On Apr 24, 2012, at 3:50 PM, Matt Wringe wrote:
I have been struggling to get the mobile configuration stored into
mop
through chromattic (not an expert on jcr/mop/chromattic/... and having
many of the error messages not being outputted doesn't really help).
I can add a mixin with a property without having problems, but trying to
add a mixin with contains child elements is where I am running into
issues.
I can create a child node from the mixin using a create, but when I go
to set a value on the child node I always get a IllegalStateException on
TransientEntityContextState.setPropertyValue
I assume I am doing something obviously wrong somewhere and that is
should be a simple change to get it working.
Any jcr/mop/chromattic experts know what I am doing wrong here?
Thanks,
Matt Wringe
The nodetypes.xml:
https://github.com/mwringe/gatein-portal/commit/ad9dea55c0601281d9e988f76...
Mixin class:
https://github.com/mwringe/gatein-portal/blob/ad9dea55c0601281d9e988f76e0...
Child class:
https://github.com/mwringe/gatein-portal/blob/ad9dea55c0601281d9e988f76e0...
_______________________________________________
gatein-dev mailing list
gatein-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/gatein-dev