cancel
Showing results for 
Search instead for 
Did you mean: 

Using component library outside Alfresco

nusa
Champ in-the-making
Champ in-the-making
Hi,

I'm interested to use the component library outside Alfresco.
Any idea, hint ? What .jar needed ? How to define web.xml and faces-config.xml ? What type of licence needed ?

Thanks.
3 REPLIES 3

nusa
Champ in-the-making
Champ in-the-making
Any taker ?

gavinc
Champ in-the-making
Champ in-the-making
Hi,

When you say component library I presume you are referring to our JSF components?

We haven't split out the common components yet although it's something we plan do at some point. You will find all the JSF client code in the web-client.jar. All the common components i.e. those that should be usable outside of Alfresco are in the org.alfresco.web.ui.common package.

However, we have made no attempt to use these components standalone so there may well be some hidden dependencies to the Alfresco stack.

Regarding config files you will need to modify web.xml to exclude the unrequired faces-config-repo.xml. You will also need to edit the other faces-config* files to remove references to all the Alfresco specific stuff.

As for the licence I think it will still be MPL so as long as there is some attribution back to Alfresco regarding the components you use it should be OK.

kevinr
Star Contributor
Star Contributor
Hello,

Gavin is correct. The ui.common package is designed to be independant of the Alfresco repository stack. However, the components currently do have some dependanices on the org.alfresco.web.app.Application object. This object is used to provide I18N services and other web util functions. I would suggest stubbing out and then implementing you own application support class to replace this one (there's only a few methods the components in common actually use from it). That and the XML Faces config Gavin mentions should be enough to extract the common components.

We'd love to hear how you get on with this if you give it a try! Smiley Happy

Thanks,

Kevin