Bonjour je suis nouvelle à JSF,prière de m'aider.

Je cherche à créer un formulaire ou y a un champ date debut et fin ,je récupère ça et je cherche en base de données les enregistrements entre ces deux limites.et renvoyer par la suite un graphe avec les valeurs

voila ma page jsp
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
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<%@ taglib uri="http://sourceforge.net/projects/jsf-comp" prefix="c" %>		
 
 
 
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
   <script language='Javascript'>
function radioclick() 
{
var obj = document.getElementById("div1");
    if (document.getElementById("radio1:0").checked) {
        obj.style.display = "block";
    } else {
        obj.style.display = "none";
    }
}
</script>
 
     <f:view> 
      <h:selectOneRadio id="radio1" onclick="radioclick();" required="true" value="#{FormulaireTraitement.resultat.mode}">
         <f:selectItem itemValue="Afficher progression en temps réel" value="1" id="item1"/>
         <f:selectItem itemValue="Spécifier limites temporaires" value="2" />
      </h:selectOneRadio>
 
          <div id="div1" style="display: none;">
          <t:inputDate value="#{FormulaireTraitement.resultat.date_deb}"popupCalendar="true"/> 
 
          <t:inputDate value="#{FormulaireTraitement.resultat.date_fin}"popupCalendar="true"/> 
          </div>
           <h:commandButton id="buttonsearch" action="#{FormulaireTraitement.search}" value="générer graphe" />
 
 
     <div id="divresult"  >
     <c:chart id="chart1" datasource="#{FormulaireTraitement.dataset}" 
     type="line" is3d="true" antialias="true" title="Example Chart" 
     xlabel="X Label" ylabel="Y Label" height="300" width="400">
     </c:chart>
     </div>
 </f:view>
</body>
</html>


et voila mon Managed 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
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
 
 
 
 
 
public class FormulaireTraitement {
 
 
	public NodePowerOnOff nd=new NodePowerOnOff();
	public Resultat resultat=new Resultat();
	final DefaultCategoryDataset dataset = new DefaultCategoryDataset(); 
	final String serie2 = "SERIE1";
    final String serie1 = "SERIE2";
 
 
 
	public Resultat getResultat() {
		return resultat;
	}
 
	public void setResultat(Resultat resultat) {
		this.resultat = resultat;
 
	}
 
 
 
	public DefaultCategoryDataset Search(){
		 org.hibernate.cfg.Configuration config  = new org.hibernate.cfg.Configuration().configure("/hibernate.cfg.xml");
		 SessionFactory sessionFactory =config.buildSessionFactory();
		 Session session1=sessionFactory.openSession();
 
 
 
		 if (resultat.mode==2)
   	  {Transaction tx1=session1.beginTransaction();
	      try
	        {  
	    	   Query query=session1.createQuery("from NodePowerOnOff nd where nd.time between ? and ? ");
	    	   query.setParameter(0, resultat.date_deb);
	    	   query.setParameter(1, resultat.date_fin);
 
	    	   List  list=query.list() ;
	    	   Iterator it = list.iterator();
 
 
 
	            while(it.hasNext())
	            {
	            	NodePowerOnOff ndo = (NodePowerOnOff)it.next();
 
	            	dataset.addValue(ndo.getCountNodeOn(),serie2 ,ndo.getTime());
 
	            }
	        }catch(Exception e)
		     {
		    	 if (tx1!=null)
		            {
		    		   tx1.rollback();
		            }try {
						throw e;
					} catch (Exception e1) {
 
						e1.printStackTrace();
					}
		     }
		     finally 
		     {
		    	 session1.close();
 
		     }
		     sessionFactory.close();
	      }
		return dataset;
	}
 
 
}
Mon problème c'est que je ne récupère rien sur ma page jsp.Merci pour votre aide