bonjour j'ai 3 inputs text et je veux afficher la somme des 2 inputs dans le 3eme mais le problème que la recuperation de données ne marche pas
j'arrive pas a savoir pourquoi
merci de m'aider

c'est le controller

private static final long serialVersionUID = 1L;

private Facture facture = new Facture();
private List<Facture> factures;
private float a;
private float b;
private float s;


@EJB
FactureServiceLocal factureServiceLocal;

public void Somme(){
setS(a*b);
System.out.println("wsilt");
System.out.println(a);
System.out.println(b);
}

public Facture getFacture() {
return facture;
}
public void setFacture(Facture facture) {
this.facture = facture;
}
public List<Facture> getFactures() {
return factures;
}
public void setFactures(List<Facture> factures) {
this.factures = factures;
}
public float getA() {
return a;
}
public void setA(float a) {
this.a = a;
}
public float getB() {
return b;
}
public void setB(float b) {
this.b = b;
}

public float getS() {
return s;
}

public void setS(float s) {
this.s = s;
}

}


et voila la page xhtml

<!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:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<body>
<p:commandButton value="Envoyer" type="button" action="#{factureCtr.Somme()}" styleClass="ui-priority-primary" update=":details" />
<p:commandButton value="Print" type="button" title="Print" styleClass="printbutton" >
<p:printer target="printPanel" />
</p:commandButton>

<h:panelGroup id="printPanel">
<p:panel id="details" >

<h:form>
<p:fieldset legend="FACTURE" toggleable="true" toggleSpeed="300">
<h:outputLabel value="FACTURE" style="margin-left:300px;font-size:50px;font-weight:bold"/><br /><br /><br />

<h:panelGrid columns="4" cellpadding="1" cellspacing="5">
<p:outputLabel value="VENDEUR" style="font-size:20px;font-weight:bold;margin-left:200px"/><br />
<p:outputLabel value="ACHETEUR" style="margin-left:300px;font-size:20px;font-weight:bold"/><br /><br /><br />

<p:outputLabel value="Nom De L'Entreprise :" style="color:blue;margin-left:50px"/>
<h:inputText value="" />

<p:outputLabel value="Nom De L'Entreprise :" style="color:blue;margin-left:150px" />
<h:inputText value="" />

<p:outputLabel value="Adresse :" style="color:blue;margin-left:50px"/>
<h:inputText value="" />

<p:outputLabel value="Adresse :" style="color:blue;margin-left:150px"/>
<h:inputText value="" />

<p:outputLabel value="CP Ville :" style="color:blue;margin-left:50px"/>
<h:inputText value="" />

<p:outputLabel value="CP Ville :" style="color:blue;margin-left:150px"/>
<h:inputText value="" />

<p:outputLabel value="Code Fiscale :" style="color:blue;margin-left:50px"/>
<h:inputText value="" />

<p:outputLabel value="Code Fiscale :" style="color:blue;margin-left:150px"/>
<h:inputText value="" />

<p:outputLabel value="Telephone/Fax :" style="color:blue;margin-left:50px"/>
<h:inputText value="" />

<p:outputLabel value="Telephone/Fax :" style="color:blue;margin-left:150px"/>
<h:inputText value="" />

<p:outputLabel value="Email :" style="color:blue;margin-left:50px"/>
<h:inputText value="" />

<p:outputLabel value="Email :" style="color:blue;margin-left:150px"/>
<h:inputText value="" />
<br /><br /><br />

</h:panelGrid>
<h:panelGrid columns="2" cellpadding="1" cellspacing="5">
<p:outputLabel for="keypad" keypadOnly="true" value="Facture N° :" style="margin-left:400px"/>
<p:keyboard id="keypad" value="#{keyboardView.value6}" keypadOnly="true" />
<p:outputLabel for="popup" value="Date De Facturation :" style="margin-left:400px"/>
<p:calendar id="popup" value="#{calendarView.date2}" />

</h:panelGrid><br/><br/><br/>
<center>
<h:panelGrid columns="4" cellpadding="3" cellspacing="10">

<p:outputLabel value="Nom De Produit" style="font-size:20px;font-weight:bold"/>
<p:outputLabel value="Quantite" style="font-size:20px;font-weight:bold"/>
<p:outputLabel value="Prix Unitaire HT" style="font-size:20px;font-weight:bold"/>
<p:outputLabel value="Prix Total HT" style="font-size:20px;font-weight:bold"/>

<h:inputText value="" />
<h:inputText value="#{factureCtr.a}" />
<h:inputText value="#{factureCtr.b}" />
<h:outputLabel value="#{factureCtr.Somme()}" />
<h:inputText value="" />
<h:inputText value="" />
<h:inputText value="" />
<h:inputText value="" />
<h:inputText value="" />
<h:inputText value="" />
<h:inputText value="" />
<h:inputText value="" /><br/><br/>

</h:panelGrid>
</center>
<h:panelGrid columns="2" cellpadding="3" cellspacing="10">

<p:outputLabel value="Total HT" style="margin-left:700px"/>
<h:inputText value="" />

<p:outputLabel value="TVA a 18%" style="margin-left:700px"/>
<h:inputText value="" />

<p:outputLabel value="Total TTC" style="margin-left:700px;font-weight:bold"/>
<h:inputText value="" />

</h:panelGrid><br/><br/><br/>

<p:outputLabel value="En votre aimable règlement," style="margin-left:50px"/><br/>
<p:outputLabel value="Cordialement," style="margin-left:50px"/>


</p:fieldset>
</h:form>
</p:panel>
</h:panelGroup>

</body>
</html>