salut tout le monde
action ne veux pas s'executer !!! la methode switchVisbil n'affiche rien meme si j'ai ajouté des println !!! mais ça marche dans le 2éme code plus bas

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
    <ui:composition 
    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">
 
 
      <p:fieldset legend="Versements :" toggleable="true" toggleSpeed="500"           id="Versements">  
 
      <h:panelGrid  >
 
		<p:row > 
 
				      <h:inputText value="#{Viewdossier.echeance}" />
				      <h:inputText value="#{Viewdossier.montant}" />
				      <h:inputText value="#{Viewdossier.dateSaisi}" />
				      <h:inputText value="#{Viewdossier.dateLimite}" />
				      <h:inputText value="#{Viewdossier.numRecu}" />
				      <h:inputText value="#{Viewdossier.dateDepot}" />					    
 
		</p:row>
		<p:row >
					<p:commandButton value="Enregistrer"  action="#{Viewdossier.switchVisbil}" style="float: right;" 
			  	update="Versements" />
		</p:row>
 
 
 
 
		</h:panelGrid>	      
	   </p:fieldset>      
 
 
 
    </ui:composition>

mais quand je supprime les inputText dans p:row ça marche


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
    <ui:composition 
    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">
 
 
      <p:fieldset legend="Versements :" toggleable="true" toggleSpeed="500"  id="Versements">  
 
      <h:panelGrid  >
 
		<p:row > 
 
				//i remove the inputText 			    
 
		</p:row>
		<p:row >
					<p:commandButton value="Enregistrer"  action="#{Viewdossier.switchVisbil}" style="float: right;" 
			  	update="Versements" />
		</p:row>
 
 
 
 
		</h:panelGrid>	      
	   </p:fieldset>      
 
 
 
    </ui:composition>
voici mon 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
 
 
 
@ManagedBean (name="Viewdossier")
@ViewScoped 
public class Viewdossier implements Serializable {
 
 
	//
 
	public void switchVisbil(){
 
		System.out.println("OK >> ");
	}
 
	//
 
 
}