bonsoir,
mon probleme est le suivant:dans une page j'ai ajouté 2 boutons radio comme suit:
si vous pouvez m'aider.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8 <f:view> <h:form> <h:selectOneRadio id="choix"> <f:selectItem binding="#{commandeView.checkboxAvec}" itemValue="avec" itemLabel="Avec demande de devis"/><br> <f:selectItem binding="#{commandeView.checkboxSans}" itemValue="sans" itemLabel="Sans demande de devis"/><br> </h:selectOneRadio> </h:form> </f:view>
la classe "CommandeView" est la suivante:
enfin,mon fichier faces-config.xml:
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 package com.intendance.presentation.vues; import javax.faces.component.UISelectBoolean; public class CommandeView { private UISelectBoolean checkboxAvec; private UISelectBoolean checkboxSans; public UISelectBoolean getCheckboxAvec() { return checkboxAvec; } public void setCheckboxAvec(UISelectBoolean checkboxAvec) { this.checkboxAvec = checkboxAvec; } public UISelectBoolean getCheckboxSans() { return checkboxSans; } public void setCheckboxSans(UISelectBoolean checkboxSans) { this.checkboxSans = checkboxSans; } public CommandeView() { super(); // TODO Auto-generated constructor stub } }
le probleme c'est que quand j'appelle ma page a partir de tomcat ,l'exception suivante est affichée:
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 <managed-bean> <managed-bean-name>commandeView</managed-bean-name> <managed-bean-class>com.intendance.presentation.vues.CommandeView</managed-bean-class> <managed-bean-scope>request</managed-bean-scope> <managed-property> <property-name>checkboxAvec</property-name> <property-class>javax.faces.component.UISelectBoolean</property-class> <value/> </managed-property> <managed-property> <property-name>checkboxSans</property-name> <property-class>javax.faces.component.UISelectBoolean</property-class> <value/> </managed-property> </managed-bean>
org.apache.jasper.JasperException: javax.servlet.jsp.JspException: javax.faces.FacesException: javax.faces.FacesException: Can't instantiate class: ''.
Partager