Problème affichage Icefaces
Salut, je suis nouveau dans le monde Icefaces et je suis entrain de développer une application web avec jsf1.2 icefaces 1.8 hibernate et spring avec comme serveur apache tomcat 6.0.
Je dois afficher une datatable le hic c'est que ma page s'affiche mais sans la dataTable je vous envoie mon code et mes fichiers de config pour m'aider
ma page jsp
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
| <f:view xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ice="http://www.icesoft.com/icefaces/component">
<html>
<head>
<link href="./xmlhttp/css/xp/xp.css" rel="stylesheet" type="text/css" />
<title>Title</title>
</head>
<body>
<ice:form> <h1>Bienvenue Dans La Gestion Des Employes</h1>
<ice:dataTable value="#{employeeBean.employes}" var="employe">
<h:column>
<f:facet name="header">
<ice:outputText value="ID #" />
</f:facet>
<ice:outputText value="#{employe.id}" />
</h:column>
<h:column>
<f:facet name="header">
<ice:outputText value="Nom " />
</f:facet>
<ice:outputText value="#{employe.nom}" />
</h:column>
<h:column>
<f:facet name="header">
<ice:outputText value="Prenom " />
</f:facet>
<ice:outputText value="#{employe.prenom}" />
</h:column>
<h:column>
<f:facet name="header">
<ice:outputText value="Date " />
</f:facet>
<ice:outputText value="#{employe.date_embauche}" />
</h:column>
<h:column>
<f:facet name="header">
<ice:outputText value="Salaire" />
</f:facet>
<ice:outputText value="#{employe.salaire}" />
</h:column>
<h:column>
<f:facet name="header">
<ice:outputText value="Fonction" />
</f:facet>
<ice:outputText value="#{employe.fonction}" />
</h:column>
</ice:dataTable></ice:form>
</body>
</html>
</f:view> |
mon Bean
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
| package com.sungard.beans;
import java.util.ArrayList;
import java.util.Date;
import com.sungard.persistence.Employe;
import com.sungard.service.IEmployeService;
public class EmployeeBean {
private IEmployeService empServ;
public ArrayList<Employe> employes;
public IEmployeService getEmpServ() {
return empServ;
}
public void setEmpServ(IEmployeService empServ) {
this.empServ = empServ;
}
public ArrayList<Employe> getEmployes() {
if(employes==null)
employes = empServ.findEmployes();
System.out.println(employes.size());
return employes;
}
public void setEmployes(ArrayList<Employe> employes) {
this.employes = employes;
}
} |