cancel
Showing results for 
Search instead for 
Did you mean: 

Custom view shows object of the previously viewed space

jessica
Champ in-the-making
Champ in-the-making
Hello,

I've created a space Workgroups in which I've created a sub-space Projects.

|
\_Workgroups
        |
        \_Projects

I've developped 2 basics presentation templates, and applied the first one for a custom view of the Workgroups space and the other for the Projects space.

When I view the Workgroups space the template is displayed corretly. But if right after I click on the Projects space, the second template is run with the objects of the Workgroup space (I have to hide/un-hide the Custom view for the template to be run with the correct objects)
And the same in the other way (if I first view the Projects space and then click on the Workgroups space, the template is run with the objects of the sub-space)

Thanks for your help,


Jessica
3 REPLIES 3

kevinr
Star Contributor
Star Contributor

schneika
Champ in-the-making
Champ in-the-making
How can i make this changes manually? I have version V2.0.
How can i get the patched versions?

kevinr
Star Contributor
Star Contributor
Yes you can, you will need to download the alfresco 2.0 SDK to build alfresco. The change was simple and only a single file needs modifying, change this section on line 259 in UITemplate.java from this:

         if (vb != null)
         {
            this.model = vb.getValue(getFacesContext());
         }

to this:

         if (vb != null)
         {
            return vb.getValue(getFacesContext());
         }

And rebuild.

Thanks,

Kevin