Hi everyone. :)

On 10/10/2012 02:30 PM, Alexander Klimetschek wrote:
On 10.10.2012, at 06:16, Dimitar Dimitrov <[email protected]> wrote:

I am trying to import new node type definition by CND on a fly.
We develop a Adobe Flex based interface which can build CND by
hierarchical UI and I want to import this new node type into the JCR
repository.
For now when I want to import new node type definition I make a new OSGI
Sling bundle and import the schema into it.
Is there another way to importing the newly generated CND into the
repository and start using it immediately.
I think you are overusing node types here. For something like UI elements that will evolve a lot, I 
would not use a fixed schema in the repository. Rather use a few generic types like 
"widget"/"component" etc. but keep them unstructured.

Because I see that your next question will be "how to change existing node types on 
the fly" ;-)
Alex you are amazingly insightful:). The NodeType definition in runtime was the easy part. :) As Felix recommends NodeTypeLoader.registerNodeType() did this perfectly. I just put it in new SlingPostOperation based bundle. Alex it seems that you have a lot of experience with this issue, so please could you give me some helpful tips for changing the NodeType definition on a fly :)

Thanks in advance.
Dimitar

Cheers,
Alex

Reply via email to