bonjour,j'ai un probleme lors de l'exportation des donnees(cvs,pdf ,execl) avec displaytag dans mon page JSF.
le probleme c'est la redirection de la requete lorsque je click sur pdf ou execel camarche pas :erreur a la ligne ou se trouve <f:view></f:view>.
: cause mere Cannot find FacesContext...
si j'ajoute a l'url faces/... avant mon page jsp alors camarche avec un fichier execel vide.
mon web.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
<?xml version="1.0" encoding="UTF-8"?>
 
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee   http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
  <context-param>
    <param-name>javax.faces.CONFIG_FILES</param-name>
    <param-value>/WEB-INF/faces-config.xml</param-value>
  </context-param>
  <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>0</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
  </servlet-mapping>
  <welcome-file-list>
     <welcome-file>faces/DisplayExercice.jsp</welcome-file>
  </welcome-file-list>
</web-app>
et si je supprime dans ma page jsf <f:view></f:view> alors tous se passe tres bien.
merci infiniment