Hi all;In JCR2 spec, says:"3.7.3.2 Default ValuesThe default values attribute
of a property definition defines the values assigned to property if it is
auto-created. If the property is single-valued this attribute will hold a
single value. If it is multi-valued this attribute will hold an array of
values. /*A default values setting of null indicates that the property does
not have a single static default value. It may have no default value at all
or it may have a parameterized default value defined externally to this
specification.* /If the scoped property is not auto-created then this
attribute has no effect."Like the parte I put in itallic...I need that a
property (single-valued, Long, auto-created) would get value 0 when the node
is nt:folder descendent, and get value 1 when the node is nt:file
descendent. But preferably in creation time done by jackrabbit api (without
must process it by application before save the node...).Is it possible to
define in xml node type definition or such rule must be done by application
in runtime?Regards,Helio



--
View this message in context: 
http://jackrabbit.510166.n4.nabble.com/Parameterized-default-value-in-property-definition-tp4661803.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Reply via email to