bonsoir
mon projet consiste a gerer une base de donnée mySql en utilisant le framework Jsf pour la couche presentation et java sous eclipse pour la couche métier, je viens de mettre en place les couches presentations avec jsf , et je me trouve paralysé pour la gestion d'evenement autrement dit l'ajout, la suppression,et l'affichage de données a partir de la base de données .
voila j'ai par exemple la page suppression.jsp :
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
 <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<f:view>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Suppression B.C.N</title>
</head>
<body>

<h1 style="font-size: 30px; font-family: arial; color:blue">SUPPRESSION B.C.N</h1>

<h:form>

<h:panelGrid columns="8" border="5" style="background-color:orange">

<h:outputLink value="CreationBCN.jsp"><h:outputText value="Creation B.C.N" style="font-size: 18px"></h:outputText></h:outputLink>

<h:outputLink value="ConsultationBCN.jsp"><h:outputText value="Consultation B.C.N" style="font-size: 18px"></h:outputText>
</h:outputLink>

<h:outputLink value="SuppressionBcn.jsp"><h:outputText value="Suppression B.C.N" style="font-size: 18px"></h:outputText></h:outputLink>
<h:outputLink value="Creationdefaillance.jsp"><h:outputText value="Creation Défaillance" style="font-size: 18px"></h:outputText></h:outputLink>
<h:outputLink value="ConsultationDefaillance.jsp"><h:outputText value="Consultation Défaillance" style="font-size: 18px"></h:outputText></h:outputLink>
<h:outputLink value="Suppressiondefaillance.jsp"><h:outputText value="Suppression Défaillance" style="font-size: 18px"></h:outputText></h:outputLink>
<h:outputLink value="ListeBCN.jsp"><h:outputText value="Liste des BCN par Titre/Periode" style="font-size: 18px"></h:outputText></h:outputLink>

</h:panelGrid>



<h:panelGrid columns="2" border="5" style="background-color:Orange">
            
            <h:outputText value="Titre"></h:outputText>
            <h:selectOneMenu id="title"></h:selectOneMenu>
            <h:outputText value="Serie"></h:outputText>
            <h:inputText id="serie"></h:inputText>
            <h:outputText value="Premier N° B.C.N"></h:outputText>
            <h:inputText id="premier"></h:inputText>
            <h:outputText value="Dernier N° B.C.N"></h:outputText>
            <h:inputText id="dernier"></h:inputText>
            <h:outputText value="Quantité"></h:outputText>
            <h:inputText id="quantity"></h:inputText>
            <h:outputText value="Numero B.C.N"></h:outputText>
            <h:inputText id="numbcn"></h:inputText>
            <h:outputText value="Date B.C.N"></h:outputText>
            <h:inputText id="datebcn"></h:inputText>
            
</h:panelGrid>
<br/><br/>

<h:panelGrid columns="1">
     
<center><h:commandButton value="Supprimer" style="font-size: 18px;   background-color: Orange"></h:commandButton></center>

</h:panelGrid>

</h:form>
</body>
</f:view>
</html>
mon objectif est quand j appuie sur le bouton supprimer, les données doit etre supprimés de la base et le probleme est que je ne sais pas rediger le bean correspondant voire que mes connaissances java sont trés limitées.

un coup de main est sollicité chers amis les develpppeurs .
je vous remercie pour votre collaboration