cancel
Showing results for 
Search instead for 
Did you mean: 

Problems using RichList component outside of Web Client

alexeyg
Champ in-the-making
Champ in-the-making
Hello,

I am attempting to use several components from Alfresco Web Client in a custom Web Client I am developing…  I copied the tld file and migrated appropriate component definitions into my faces-config file.  I was able to successfully use the Panel component… however, a RichList component cannot instantiate.  It needs a 'webClientConfigService' Spring bean:

org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'webClientConfigService' is defined

I thought these components should be pretty much independent of Web Client implementation…  Am I doing something wrong?  I have little faces experience, but it seems strange that faces components would rely on Spring beans… it feels like they should only work with beans in request/session/application scopes.  Do I have the right idea as to how this is supposed to work?

Thank You.
4 REPLIES 4

gavinc
Champ in-the-making
Champ in-the-making
Yes, the original idea of the org.alfresco.web.ui.common package was to contain Alfresco free JSF components that could be re-used outside of Alfresco. However, in reality that hasn't happened  Smiley Sad

I believe there are a few places where our "common" components rely on other classes/resources. The spring bean you mention is used to read configuration information for the rich list component, so it should be fairly easy to de-couple if you really want to use it.

alexeyg
Champ in-the-making
Champ in-the-making
Thank you for the quick response!

It's good to know that I had the right idea Smiley Happy  I decided to go with the standard dataTable component for now, richList would be an overkill (there is no requirement to change viewModes).  I need to get more comfortable with JSF before moving on to fancier things…  Thanks again for the response.

kevinr
Star Contributor
Star Contributor
Indeed for simple tables we also use the standard JSF UIData component. The UIRichList component is for more "fancy" lists that require multiple view modes, paging and sorting for "free".

Thanks,

Kevin

sangireddi
Champ in-the-making
Champ in-the-making
hi…
i am trying to create a login like alfresco in my web application(actually my thought is to use jsf with oracle rich faces) .
it is giving this below exception

ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'webClientConfigService' is defined
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:356)



how can we resolve this issue ? Actually am i in right way? can we use oracle rich faces as UI and alfresco as background?

please let me clarify..?