About Namespace and Node Type, I have recently understood that when you
define a custom node type under a namespace like foo:mynodetype, its
properties must be prefixed also by the same namespace (example :
foo:title).

At the end, I have to access to those properties like that :
mynode.getProperty("foo:title");

Why the properties also must be prefixed because the are part of the node
anyway ? (for the child nodes i understand easily).

Or do i miss something in my cnd ?

Thanks

Nicolas

On 2/13/07, Michael Neale <[EMAIL PROTECTED]> wrote:

only when the repo is created new do you need to run it.

On 2/13/07, Michal Hybler <[EMAIL PROTECTED]> wrote:
>
>
> I have one omre question. I have a code which register new node type.
> Where I
> should place it? A have RMI model(jackrabbit webapp on the server and my
> own
> client on other PC) ... Is it enough to run code once or it must be
runned
> everytime i start the repository?
>
> Michal Hybler wrote:
> >
> > Its help me thanks. But must be the page specific or can I use for
> example
> > "www.google.com"?
> >
> > Julian Reschke wrote:
> >>
> >> Michal Hybler schrieb:
> >>> I want to create a custom node type but i have a problem. I dont
> >>> understand
> >>> term namespace. What this term represents? Can i set a random url?
> >>> Thanx fo explanation
> >>> Michal
> >>
> >> Namespace URIs in JCR work the same as in XML
> >> (<http://www.rpbourret.com/xml/NamespacesFAQ.htm>), they are used to
> >> avoid name collisions.
> >>
> >> Thus, you should _not_ use a random URL, but instead one you own
(http,
> >> mailto, or urn:uuid (<http://greenbytes.de/tech/webdav/rfc4122.html>)
> >> come to mind).
> >>
> >> Hope this helps,
> >>
> >> Julian
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/NameSpace-tf3219606.html#a8942634
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
>
>

Reply via email to