• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Error creating bean with name 'collaborateurBean' defined in file

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi everybody,
I am working with Spring and I have a problem with a bean, here is my code:




in this page collaborateur.xhtml i Can't display data from my DATABASE collaborateur.xhtml:
i get the error:Error creating bean with name 'collaborateurBean' defined in file
the code is:
<h:dataTable value="#{CollaborateurBean.getLis()}" var="item">
<h:column>
<h:outputText value="#{item.nom}" />
</h:column>

<h:column>
<h:outputText value="#{item.prenom()}" />
</h:column>
</h:dataTable>
///////////////////////////
When I test the collaborateurBo i display data from my DATABASE. This is the code that gives data from database:




This means that the problem is in the Collaborateur bean not in collaborateurBo or CollaborateurDao.

Configuration:



pleasee help me!!
reply
    Bookmark Topic Watch Topic
  • New Topic