Bonjour,
J'ai l'erreur suivante sur mon serveur Wildfly :
Nom : lll.png
Affichages : 252
Taille : 57,0 Ko
index.xhtml (page visualisée côté client)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:rich="http://richfaces.org/rich"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:a4j="http://richfaces.org/a4j"
      xmlns:h="http://java.sun.com/jsf/html"> 
 
<h:head></h:head> 
<body>
<h:form>
   <rich:panel>
     <rich:dataTable id="tableModules" var="module" value="#{ApplicationBean.lesModules}">
        <rich:column>
          <f:facet name="header">
             <h:outputText value="Code UE" />
          </f:facet>
          <h:outputText value="#{module.nom_module}" />
        </rich:column>
        <rich:column>
          <f:facet name="header">
             <h:outputText value="Initulé UE" />
          </f:facet>
          <h:outputText value="#{module.intitule_module}" />
          </rich:column>
        <rich:column>
          <f:facet name="header">
             <h:outputText value="Nb heures cours" />
          </f:facet>                         
          <h:outputText value="#{module.nb_heures_cours}" />
        </rich:column>
        <rich:column>
          <f:facet name="header">
             <h:outputText value="Nb heures TD" />
          </f:facet>                         
          <h:outputText value="#{module.nb_heures_td}" />
        </rich:column>      
     </rich:dataTable>
     </rich:panel>
</h:form>
</body>
</html>
module.java (côté serveur, variables appelées)
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
package modele;
 
import java.io.Serializable;
import java.util.HashSet;
import java.util.Set;
 
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
 
@Entity
public class Module implements Serializable {
	/**
         * 
         */
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue (strategy=GenerationType.AUTO) 
		private int id;
		private String nom_module;
		private String intitule_module;
		private String nb_heures_cours;
		private int nb_heures_td;
 
		public Module() {
		}
 
 
		public Module(String nom_module, String intitule_module, String nb_heures_cours, int nb_heures_td) {
			super();
			this.nom_module = nom_module;
			this.intitule_module = intitule_module;
			this.nb_heures_cours = nb_heures_cours;
			this.nb_heures_td = nb_heures_td;
		}
 
		public int getId() {
			return id;
		}
		public String getNomModule() {
			return nom_module;
		}
		public void setNomModule(String nom_module) {
			this.nom_module = nom_module;
		}
		public String getIntituleModule() {
			return intitule_module;
		}
		public void setIntituleModule(String intitule_module) {
			this.intitule_module = intitule_module;
		}
		public String getNbHeuresCours() {
			return nb_heures_cours;
		}
		public void setAdresse(String nb_heures_cours) {
			this.nb_heures_cours = nb_heures_cours;
		}
		public int getNbHeuresTd() {
			return nb_heures_td;
		}
		public void setNbHeuresTd(int nb_heures_td) {
			this.nb_heures_td = nb_heures_td;
		}
	}
si vous voyez quelque chose qui cloche... merci d'avance