You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Paco Avila <mo...@gmail.com> on 2010/02/02 12:58:34 UTC

Default value for a reference property?

I want to create a node type with this property:

- okm:categories (reference) = '' multiple autocreated mandatory

But this generates an error:

 '' is not a valid string representation of a value of type 9

So, how can I set a default value for a mutliple reference value (if any)?

-- 
OpenKM
http://www.openkm.com
http://www.guia-ubuntu.org

Re: Default value for a reference property?

Posted by Alexander Klimetschek <ak...@day.com>.
On Tue, Feb 2, 2010 at 10:58, Paco Avila <mo...@gmail.com> wrote:
> I want to create a node type with this property:
>
> - okm:categories (reference) = '' multiple autocreated mandatory
>
> But this generates an error:
>
>  '' is not a valid string representation of a value of type 9
>
> So, how can I set a default value for a mutliple reference value (if any)?

The string representation of a reference property must be the UUID of
the referenced node, but I am not sure if that really works for
default values in property definitions... An empty string is not
possible - this would mean the property has no value, which must be
done by not having the property exist in the first place, ie. not
auto-created.

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com