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 :

[Spring / Richfaces] object <rich: ne s'affichent pas


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé Avatar de amadoulamine1
    Inscrit en
    Avril 2005
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 260
    Par défaut [Spring / Richfaces] object <rich: ne s'affichent pas
    Bonjour à tous j'ai une application spring3.2 +richfaces 4.3.1
    Une fois lancé , les objets <rich ne s'affichent pas

    la page :index.xhtml
    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
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     
    <html xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:rich="http://richfaces.org/rich"
    	xmlns:a4j="http://richfaces.org/a4j"
    	xmlns:c="http://java.sun.com/jstl/core"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:f="http://java.sun.com/jsf/core">
    	<head>
    		<title>Page principal</title>
    		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
    	</head>
    	<body>
    		<div id="lecorps">	
    			qui va chez moi?
    			<rich:dataTable>
    				<rich:dataTable >
    					<rich:columnGroup>
    						<rich:column>gaga</rich:column>
    						<rich:column>rere</rich:column>
    					</rich:columnGroup>
    					<rich:columnGroup>
    						<rich:column>gaga4</rich:column>
    						<rich:column>rere4</rich:column>
    					</rich:columnGroup>
     
    				</rich:dataTable>
    			</rich:dataTable>
    		</div>
    	</body>
    </html>
    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
    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
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns:xsi="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_3_0.xsd" id="WebApp_ID" version="3.0">
      <display-name>apli</display-name>
       <context-param>
        	<param-name>log4jConfigLocation</param-name>
        	<param-value>classpath:log4j.properties</param-value>
        </context-param>
        <listener>
        	<listener-class>org.springframework.web.util.Log4jConfigListener</listener-class>
        </listener>
         <context-param>
        	<param-name>contextConfigLocation</param-name>
        	<param-value>classpath:applicationContext.xml</param-value>
        </context-param>
        <listener>
        	<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
        </listener>
     
            <listener>
        	<listener-class>org.springframework.web.context.request.RequestContextListener</listener-class>
        </listener>
     
           <context-param>
    	    <param-name>org.richfaces.skin</param-name>
    	    <param-value>blueSky</param-value>
    	</context-param>
     
    	<context-param>
    		 <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
    		 <param-value>com.sun.facelets.FaceletViewHandler</param-value>
    	</context-param>
     
    	<context-param>
    	     <param-name>javax.faces.DISABLE_FACELET_JSF_VIEWHANDLER</param-name>
    	     <param-value>true</param-value>
    	</context-param>
     
    	<context-param>
    		<param-name>javax.faces.DEFAULT_SUFFIX</param-name>
    		<param-value>.xhtml</param-value>
      	</context-param>
    	  <session-config>
            <session-timeout>30</session-timeout>
        </session-config>
     
     
      <welcome-file-list>
        <welcome-file>index.html</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>*.jsf</url-pattern>
            </servlet-mapping>
    </web-app>
    et mon faces config
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    <?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_2_1.xsd"
        version="2.1">
    	<application>
        	<el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
      	</application>
    </faces-config>
    Quelqu'un pour m'aider svp

  2. #2
    Membre Expert
    Avatar de fxrobin
    Homme Profil pro
    Architecte SI, Java Fan, API Manager
    Inscrit en
    Novembre 2007
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Architecte SI, Java Fan, API Manager
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Novembre 2007
    Messages : 875
    Par défaut
    Tu as bien mis les jar RichFaces dans "WEB-INF/lib" ?

  3. #3
    Membre éclairé Avatar de amadoulamine1
    Inscrit en
    Avril 2005
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 260
    Par défaut
    Merci de l'attention
    oui les bibliotheques richfaces sont bien integres
    Ci joint l'image des lib
    Images attachées Images attachées  

  4. #4
    Membre Expert
    Avatar de fxrobin
    Homme Profil pro
    Architecte SI, Java Fan, API Manager
    Inscrit en
    Novembre 2007
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Architecte SI, Java Fan, API Manager
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Novembre 2007
    Messages : 875
    Par défaut
    Montre le code d'une page qui essayer d'utiliser des composants RichFaces.

  5. #5
    Membre éclairé Avatar de amadoulamine1
    Inscrit en
    Avril 2005
    Messages
    260
    Détails du profil
    Informations forums :
    Inscription : Avril 2005
    Messages : 260
    Par défaut
    Pour l'instant j'ai pas encore de beans
    Je testai juste pour voir si les composants etaient affiches avec le "index.xhtml" affiche dans le premier post.

  6. #6
    Membre Expert
    Avatar de fxrobin
    Homme Profil pro
    Architecte SI, Java Fan, API Manager
    Inscrit en
    Novembre 2007
    Messages
    875
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Ille et Vilaine (Bretagne)

    Informations professionnelles :
    Activité : Architecte SI, Java Fan, API Manager
    Secteur : Aéronautique - Marine - Espace - Armement

    Informations forums :
    Inscription : Novembre 2007
    Messages : 875
    Par défaut
    J'avais zappé ton fichier .xhtml


    remplace ton tag "body" par "h:body"

    et pareil "head" par "h:head"

    et ça devrait aller mieux.

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 2
    Dernier message: 28/09/2011, 13h29
  2. <rich:comboBox> n'affiche pas le label ?
    Par dr-Padbol dans le forum JSF
    Réponses: 6
    Dernier message: 16/04/2011, 03h21
  3. Réponses: 11
    Dernier message: 19/01/2011, 11h39
  4. Spring Acgei page de login ne s'affiche pas correctement
    Par Jacobian dans le forum Spring Web
    Réponses: 3
    Dernier message: 28/01/2009, 23h29
  5. Réponses: 2
    Dernier message: 22/10/2007, 12h10

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