cancel
Showing results for 
Search instead for 
Did you mean: 

Customizing Share pages using Java Server Side

dave984
Champ in-the-making
Champ in-the-making
I've customized Alfresco Share with custom data model, actions and REST webscripts using above all customization files and Java.
Now i want to customize also the Share's pages, building some new. All the tutorials i've found are about customization through javascript files…
In these new pages i will make i will call some soap services and i really prefer to do these kind of operations in a Java controller…
So is there a way to interact with Share's page using Java server-side? Could someone please indicate me some basical tutorial?
3 REPLIES 3

jpotts
World-Class Innovator
World-Class Innovator
You are already familiar with Web Scripts. The good news is that web scripts also run on the Share tier. And, just like in the repository tier your controller can be either JavaScript or Java. So you could easily invoke web services from your Java-based controller in a web script running on the Share tier and then populate the model for your Freemarker based view to display it in Share.

Jeff

dave984
Champ in-the-making
Champ in-the-making
Hi Jeff very clear thanks!
I could make a script that have in output some contents and render them in a Share's page.
I'd like to have a box that points to speciic folders of the repository. If i click on a folder i will see the files inside and if i click on a file it will open in the classical page with metadata.
Is it possible to do this?!

jpotts
World-Class Innovator
World-Class Innovator
Yes, definitely possible.

Jeff