Bonjour tout le monde,
Bon je commence dés le début, je travail actuellement sur un projet JEE dans le quel j'utilise Hibernate en DAO, Spring en Persistance et JSF2.0 avec PrimeFaces en Présentation, en utilisant Eclipse Juno avec Apache 6 sous Windows 8 64bits .
Tout c'est bien passé, jusqu’à l'instant ou j'ai commencer a travailler sur JSF2.0 j'ai eu deux grands problèmes :
1- Le visionneur d’éclipse ne fonctionne pas sous les versions 64bits.
2- Lors du déploiement de mon application sur le serveur, j'ai une page web qui ne contient aucun élément de ceux que j'avais définit dans ma page JSF.
Voici le code source de ma page JSF:
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
69
70 <?xml version="1.0" encoding="ISO-8859-1" ?> <!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:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui"> <h:head> <!--Intégration du fichier CSS dans la page--> <!--<h:outputStylesheet library="css" name="table-style.css" /> <h:outputStylesheet library="css" name="common-style.css" />--> <link type="text/css" rel="stylesheet" href="themes/bluesky/skin.css"/> </h:head> <h:body> <h:form id="form"> <p:dataTable id="listpatient" var="patient" value="#{patientBean.patientList}" rowKey="#{patient.id}" selection="#{patientBean.pat}" selectionMode="single"> <f:facet name="header"> Click "View" button after selecting a row to see details </f:facet> <p:column headerText="ID_Patient"> #{patient.id} </p:column> <p:column headerText="Nom Patient"> #{patient.nom} </p:column> <p:column headerText="Prenom Patient" > #{patient.prenom} </p:column> <p:column headerText="Sexe"> #{patient.sexe} </p:column> <p:column headerText="poid"> #{patient.poid} </p:column> <p:column headerText="profession"> #{patient.profession} </p:column> <p:column headerText="origine"> #{patient.origine} </p:column> <p:column headerText="adresse"> #{patient.adresse} </p:column> <p:column headerText="ville"> #{patient.ville} </p:column> <f:facet name="footer"> <p:commandButton id="Delete" value="Delete" icon="ui-icon-circle-close" actionListener="#{}"/> </f:facet> </p:dataTable> </h:form> </h:body> </html>
Voici ma classe Bean
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128 package org.tiac.presentation.web; import java.io.Serializable; import java.util.Calendar; import java.util.List; import javax.annotation.PostConstruct; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Scope; import org.springframework.stereotype.Component; import org.tiac.dao.model.Patient; import org.tiac.metier.service.PatientService; @Component("patientBean") @Scope("session") public class PatientBean implements Serializable { @Autowired private transient PatientService patientService; private List<Patient> patientList; private String nom; private String prenom; private Calendar date_n; private String sexe; private Float poid; private String profession; private String origine; private String adresse; private String ville; private Patient pat; @PostConstruct public void init(){ patientList= patientService.findall(); } /* Getters & Setters */ public List<Patient> getPatientList() { return patientList; } public void setPatientList(List<Patient> patientList) { this.patientList = patientList; } public String getNom() { return nom; } public void setNom(String nom) { this.nom = nom; } public String getPrenom() { return prenom; } public void setPrenom(String prenom) { this.prenom = prenom; } public Calendar getDate_n() { return date_n; } public void setDate_n(Calendar date_n) { this.date_n = date_n; } public String getSexe() { return sexe; } public void setSexe(String sexe) { this.sexe = sexe; } public Float getPoid() { return poid; } public void setPoid(Float poid) { this.poid = poid; } public String getProfession() { return profession; } public void setProfession(String profession) { this.profession = profession; } public String getOrigine() { return origine; } public void setOrigine(String origine) { this.origine = origine; } public String getAdresse() { return adresse; } public void setAdresse(String adresse) { this.adresse = adresse; } public String getVille() { return ville; } public void setVille(String ville) { this.ville = ville; } public Patient getPat() { return pat; } public void setPat(Patient pat) { this.pat = pat; } }
(Vous trouveriez si joint la capture d’écran de ce que j'obtiens lors du déploiement.)
J'aimerai bien avoir votre avis sur ce qui peut causé un tel problème.
Merci Bien![]()
Partager