cancel
Showing results for 
Search instead for 
Did you mean: 

[SOLVED]Name of space printed a second time

monitloth
Champ on-the-rise
Champ on-the-rise
Hi,

I created a space with the following codes:
//Creating the template space
      NodeRef sourceNode = new NodeRef(Repository.getStoreRef(),
            this.templateSpaceId);
      NodeRef parentSpace = new NodeRef(Repository.getStoreRef(),
            this.navigator.getCurrentNodeId());
      // copy from the template
      NodeRef copiedNode = this.getFileFolderService().copy(sourceNode,
            parentSpace, this.projName).getNodeRef();
      // also need to set the new title, description and icon properties
      this.getNodeService().setProperty(copiedNode, ContentModel.PROP_TITLE,
            this.title);
      this.getNodeService().setProperty(copiedNode,
            ContentModel.PROP_DESCRIPTION, this.description);
      this.getNodeService()
            .setProperty(copiedNode, ApplicationModel.PROP_ICON,
                  this.icon = DEFAULT_SPACE_ICON_NAME);
Everyithing looks fine, but when navigating, I see a second text with the name of the project, also hyperlinked to the space.
[img]http://img370.imageshack.us/img370/9062/testprojectuc3.png[/img]
Thanks.
2 REPLIES 2

monitloth
Champ on-the-rise
Champ on-the-rise
Someone any idea's?

monitloth
Champ on-the-rise
Champ on-the-rise
I do not know why but it's ok now…
Maybe this is done because now I use Java 5 and in Java 6 I had problems with versioning.