Bonjour tout le monde,

j'utilise primefaces je suis entrain de développer un wizard qui permet d'insérer les informations utilisateur sur la même table de donnée le soucis que j''ai c'est que j'arrive pas à naviguer avec button next qui permet d'aller à la prochaine onglet de la même table de donnée Toute aide sera appréciée. Mon code est comme ci-dessous:

interchange.xhtml:

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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui" 
template="/templates/brandClassicLayout.xhtml">
 
 
<ui:define name="content">
 
<h:form>  
 
    <p:growl id="growl" sticky="true" showDetail="true"/>
 
      <!-- ** <p:growl redisplay="false" life="3000" id="mymessage" autoUpdate="true"/> --> 
 
   <!-- **  <p:wizard flowListener="#{userWizard.onFlowProcess}">-->
 
    <p:wizard widgetVar="wiz"
                  flowListener="#{userWizard.onFlowProcess}" showNavBar="true" >  
 
        <p:tab id="personal" title="Identification">  
 
            <p:panel header=" A : Partner information" >  
 
                <h:messages errorClass="error"/>  
 
                <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">  
                    <h:outputText value="Name: *" />  
                    <p:inputText required="true" label=""  
                            value="#{userWizard.user.name}" />  
 </h:panelGrid>    
 
 
                <p:panel header="B : Partner Adress" toggleable="true" toggleOrientation="horizontal">  
 
                <h:messages errorClass="error"/>  
 
                <h:panelGrid columns="2" columnClasses="label, value" styleClass="grid">  
                    <h:outputText value="Country: " />  
                    <p:inputText required="true" label="country"  
                            value="#{userWizard.user.country}" />  
 
 
 
 
                <h:outputText value="City: " />  
                    <p:inputText required="true" label="city"  
                            value="#{userWizard.user.city}" />  
 
 
                    <h:outputText value="ZipCode: " />  
                    <p:inputText required="true" label="ZipCode"  
                            value="#{userWizard.user.zipcode}" /> 
 
                            <h:outputText value="Address: " />  
                    <p:inputText required="true" label="Address"  
                            value="#{userWizard.user.adress}" />  
 
     <!--  <h:outputText value="Skip to last: " />  
                    <h:selectBooleanCheckbox value="" /> -->
 
                </h:panelGrid>
                      </p:panel>   
 
            </p:panel>  
        </p:tab>  
 
        <p:tab id="address" title="Contact">  
            <p:panel header="Adress Details">  
 
                <h:messages errorClass="error"/>  
 
                <h:panelGrid columns="2" columnClasses="label, value">  
                    <h:outputText value="adress: " />  
                    <p:inputText value="#{userWizard.user.adress}" />  
 
                   <h:outputText value="name: " />  
                    <p:inputText value="#{userWizard.user.name}" />  
 
                    <h:outputText value="City: " />  
                    <p:inputText value="#{userWizard.user.city}" />  
 
                    <h:outputText value="Skip to last: " />  
                    <h:selectBooleanCheckbox value="" />  
                </h:panelGrid>  
            </p:panel>  
        </p:tab>  
 
        <p:tab id="contact" title="Group">  
            <p:panel header="Contact Information">  
 
                <h:messages errorClass="error"/>  
 
                <h:panelGrid columns="2" columnClasses="label, value">  
                    <h:outputText value="name: *" />  
                    <p:inputText required="true" label="Email"  
                            value="#{userWizard.user.name}" />  
 
                    <h:outputText value="country: " />  
                    <p:inputText value="#{userWizard.user.country}"/>  
 
                    <h:outputText value="Additional Info: " />  
                    <p:inputText value=""/>  
                </h:panelGrid>  
            </p:panel>  
        </p:tab>  
 
        <p:tab id="confirm" title="ActiveLinks">  
            <p:panel header="Confirmation">  
 
                <h:panelGrid id="confirmation" columns="6">  
                    <h:outputText value="name: " />  
                    <h:outputText styleClass="outputLabel"  
                                value="#{userWizard.user.name}" />  
 
                    <h:outputText value="city: " />  
                    <h:outputText  styleClass="outputLabel"  
                                value="#{userWizard.user.city}"/>  
 
                    <h:outputText value="adress: " />  
                    <h:outputText styleClass="outputLabel"  
                                value="#{userWizard.user.adress}" /> 
 
 
                    <h:outputText value="City: " />  
                    <h:outputText styleClass="outputLabel"  
                                value="#{userWizard.user.city}" />  
 
 
 
                </h:panelGrid>  
 
               <p:commandButton immediate="true" value="Submit"  actionListener="#{userWizard.save}" />
            </p:panel>  
        </p:tab>  
 
    </p:wizard>  
 
    </h:form>  
</ui:define>
 
</ui:composition>