salut TLM


je sais pas ou exactement mon pb, je suis débutant en ICefaces,
ma page jspx

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
<?xml version="1.0" encoding="utf-8" ?>
<jsp:root version="1.2" 
    xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ice="http://www.icesoft.com/icefaces/component">
 
    <jsp:directive.page contentType="text/html;charset=utf-8" />
 
<f:view>
    <ice:outputDeclaration doctypeRoot="HTML"
			doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN"
			doctypeSystem="http://www.w3.org/TR/html4/loose.dtd" />
    <html>
	    <head>
		   <title>ICEfaces, Ajax for Java EE</title>
           <link rel="stylesheet" type="text/css" href="./xmlhttp/css/rime/rime.css" />
		</head>
		<body>
 
		    <ice:form>
			 <f:view>
	<ice:commandButton value="liste" action="#{tech.doListTechnicien}" style="font-size: 15px"></ice:commandButton>
			</f:view>
 
 
		    </ice:form>
		</body>
    </html>
</f:view>
</jsp:root>


la page resultat


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
<?xml version="1.0" encoding="utf-8" ?>
<jsp:root version="1.2" 
  xmlns:jsp="http://java.sun.com/JSP/Page"
   xmlns:f="http://java.sun.com/jsf/core"
  xmlns:h="http://java.sun.com/jsf/html"
  xmlns:ice="http://www.icesoft.com/icefaces/component">
<jsp:directive.page contentType="text/html;charset=utf-8" />
<f:view>
  <ice:outputDeclaration doctypeRoot="HTML" doctypePublic="-//W3C//DTD HTML 4.01 Transitional//EN" doctypeSystem="http://www.w3.org/TR/html4/loose.dtd"/>
  <html>
    <head>
     <title><ice:outputText value="ICEfaces, Ajax for Java EE" /></title>
     <ice:outputStyle href="./xmlhttp/css/rime/rime.css" />
    </head>
    <body>
 
     <ice:outputText value="Thank you for using ICEfaces." />
     <ice:form>
 
		</ice:form>
 
    </body>
  </html>
</f:view>
</jsp:root>

mon controleur


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
package web;
 
import java.io.IOException;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.*;
 
 
import javax.servlet.ServletConfig;
import javax.servlet.ServletException;
import javax.servlet.http.* ;
 
import net.sf.cglib.proxy.*;
 
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
 
 
import service.IService;
import dao.DaoException;
import entites.*;
 
 
public class Tech {
	private List<Technicien> techniciens;
	// service
	private IService service = null;
 
	public Tech(){
 
	}
 
	public String doListTechnicien(){
 
 
		System.out.println("ca passe");
		return "list";
		}
 
 
 
	public List<Technicien> getTechniciens() {
	return techniciens;
}
 
 
public void setTechniciens(List<Technicien> techniciens) {
	this.techniciens = techniciens;
}
	}


et face-config :

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
<?xml version='1.0' encoding='UTF-8'?>
 
<faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
    version="1.2">
 
 
	<managed-bean>
	<managed-bean-name>tech</managed-bean-name>
		<managed-bean-class>web.Tech</managed-bean-class>
		<managed-bean-scope>session</managed-bean-scope>
	</managed-bean>
 
	<navigation-rule>
		<display-name>list</display-name>
		<from-view-id>/acui.jspx</from-view-id>
		<navigation-case>
			<from-outcome>list</from-outcome>
			<to-view-id>/cherche.jspx</to-view-id>
			<redirect />
		</navigation-case>
	</navigation-rule>
</faces-config>