cancel
Showing results for 
Search instead for 
Did you mean: 

using facesportlets with facelets: facelet view in alfresco

timv
Champ in-the-making
Champ in-the-making
Hi, I'm using a facesportlet and facelets to show repository content in my portlets.
I have created some content types and made facelet templates for it. I'm using a 'jcr'-backingbean for these facelets. The templates are just html extended with some el expressions like
#{myContentTypeBackingBean.properties["title"]}
. These xhtml files are used by the facesportlet.

But now, it would be nice to make my portlets somewhat more generic and tell it to go fetch the xhtml file to load from the alfresco repository also.
Is this possible in any way?

Regards,
timv
1 REPLY 1

kevinr
Star Contributor
Star Contributor
This is really good, it would be great if you could start an Alfresco Forge project for this as i'm sure there are others out there who would like to contribute and help with JSR-168 Alfresco portlets using Facelets!

You can fetch content directly from the Alfresco repo using the DownloadContentServlet - e.g. the URLs that the web-client builds such as:

http://server:8080/alfresco/download/direct/workspace/SpacesStore/bfc450c1-2b7a-11db-9a63-a745061ec4...
stream content directly back from the server - is that what you meant?

Thanks,

Kevin