IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

JSF Java Discussion :

Librairies JSF version 1.1


Sujet :

JSF Java

  1. #1
    Futur Membre du Club
    Inscrit en
    Novembre 2011
    Messages
    7
    Détails du profil
    Informations forums :
    Inscription : Novembre 2011
    Messages : 7
    Points : 7
    Points
    7
    Par défaut Librairies JSF version 1.1
    Bonsoir à tous,
    Je suis débutante en JEE et je veux créer un projet jsf v1.1.
    J'ai ajouté les librairies nécessaires.
    A l'exécution, une erreur apparait : Can not find the tag library descriptor for "http://java.sun.com/jsf/html"

    Je ne comprend pas l'origine du probléme
    Merciii de me répondre

  2. #2
    Membre confirmé
    Profil pro
    Inscrit en
    Juin 2007
    Messages
    383
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2007
    Messages : 383
    Points : 468
    Points
    468
    Par défaut
    Bonjour,

    il faudrait nous donner un peu plus d'informations, comme par exemple tes fichiers de configuration.

  3. #3
    Futur Membre du Club
    Inscrit en
    Novembre 2011
    Messages
    7
    Détails du profil
    Informations forums :
    Inscription : Novembre 2011
    Messages : 7
    Points : 7
    Points
    7
    Par défaut
    faces config :
    <?xml version="1.0" encoding="UTF-8"?>

    <faces-config
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlnssi="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>class1</managed-bean-name>
    <managed-bean-class>pack1.class1</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
    </managed-bean>
    <navigation-rule>
    <display-name>index</display-name>
    <from-view-id>/index.jsp</from-view-id>
    <navigation-case>
    <from-outcome>succeed</from-outcome>
    <to-view-id>/index2.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>

    </faces-config>
    web.xml :
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlnssi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">
    <display-name>ghhhhh</display-name>
    <welcome-file-list>
    <welcome-file>index.jsp</welcome-file>
    </welcome-file-list>
    <servlet>
    <servlet-name>Faces Servlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>Faces Servlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    <context-param>
    <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name>
    <param-value>resources.application</param-value>
    </context-param>
    <context-param>
    <description>State saving method: 'client' or 'server' (=default). See JSF Specification 2.5.2</description>
    <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    <param-value>client</param-value>
    </context-param>
    <context-param>
    <description>
    This parameter tells MyFaces if javascript code should be allowed in
    the rendered HTML output.
    If javascript is allowed, command_link anchors will have javascript code
    that submits the corresponding form.
    If javascript is not allowed, the state saving info and nested parameters
    will be added as url parameters.
    Default is 'true'</description>
    <param-name>org.apache.myfaces.ALLOW_JAVASCRIPT</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <description>
    If true, rendered HTML code will be formatted, so that it is 'human-readable'
    i.e. additional line separators and whitespace will be written, that do not
    influence the HTML code.
    Default is 'true'</description>
    <param-name>org.apache.myfaces.PRETTY_HTML</param-name>
    <param-value>true</param-value>
    </context-param>
    <context-param>
    <param-name>org.apache.myfaces.DETECT_JAVASCRIPT</param-name>
    <param-value>false</param-value>
    </context-param>
    <context-param>
    <description>
    If true, a javascript function will be rendered that is able to restore the
    former vertical scroll on every request. Convenient feature if you have pages
    with long lists and you do not want the browser page to always jump to the top
    if you trigger a link or button action that stays on the same page.
    Default is 'false'
    </description>
    <param-name>org.apache.myfaces.AUTO_SCROLL</param-name>
    <param-value>true</param-value>
    </context-param>
    <servlet>
    <servlet-name>faces</servlet-name>
    <servlet-class>org.apache.myfaces.webapp.MyFacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>faces</servlet-name>
    <url-pattern>*.faces</url-pattern>
    </servlet-mapping>
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    </web-app>

Discussions similaires

  1. Comment récupérer la librairie JSF-Facelet?
    Par DanaX dans le forum JSF
    Réponses: 2
    Dernier message: 06/06/2011, 20h24
  2. [11g / PrimeFaces] Installer la librairie JSF PrimeFaces
    Par olivier57b dans le forum JDeveloper
    Réponses: 2
    Dernier message: 25/10/2010, 09h46
  3. probleme librairie JSF help
    Par omario27 dans le forum JSF
    Réponses: 0
    Dernier message: 07/04/2009, 13h44
  4. [SRC][fonction de librairie]Deux versions de replace
    Par SpaceFrog dans le forum Contribuez
    Réponses: 1
    Dernier message: 15/05/2008, 17h35
  5. Nouvelles Librairies JSF
    Par Mediii dans le forum JSF
    Réponses: 1
    Dernier message: 26/02/2008, 10h00

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo