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 :

[RichFaces] Problème lors du clic sur un bouton


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre averti
    Inscrit en
    Août 2010
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Août 2010
    Messages : 50
    Par défaut [RichFaces] Problème lors du clic sur un bouton
    Bonjour,

    Je suis en train de développer une application web avec JSF (Richfaces) + Spring + Hibernate.
    En premier lieu, lors de déploiment sous Tomcat, j'ai bien la liste des chauffeurs que je désire avoir mais après, en sélectionnant une ligne et en cliquant sur le bouton Detail, j'ai ça :
    Nom : run.png
Affichages : 121
Taille : 26,5 Ko
    Sachant que le bouton détail va m'amener à la page Chauffeurdetail.jsp.

    Voici mon faces-config.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
    <?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">
        <application>
        <el-resolver>org.springframework.web.jsf.el.SpringBeanFacesELResolver</el-resolver>
        </application>
     
    <navigation-rule>
    <from-view-id>*</from-view-id>
     
    <navigation-case>
    <from-outcome>detail</from-outcome>
    <to-view-id>/Chauffeurdetail.jsp</to-view-id>
    </navigation-case>
    <navigation-case>
    <from-outcome>List</from-outcome>
    <to-view-id>/ChauffeurList.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
     
    </faces-config>
    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
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    <?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_2_5.xsd" id="WebApp_ID" version="2.5">
      <display-name>wise</display-name>
      <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>
      <!-- chargement du spring !! -->
      <context-param>
            <param-name>contextConfigLocation</param-name>
            <param-value>classpath:application-context.xml</param-value>
        </context-param>
        <context-param>
        <param-name>javax.faces.CONFIG_FILES</param-name>
        <param-value>/WEB-INF/faces-config.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>
     <filter>
     <filter-name>RichFaces filter</filter-name>
     <filter-class>org.ajax4jsf.Filter</filter-class>
     </filter>
     <filter-mapping>
     <filter-name>RichFaces filter</filter-name>
     <servlet-name> Faces Servlet</servlet-name>
     
     </filter-mapping>
    </web-app>
    ChauffeurBean.java
    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
    package org.wisetech.geoloc.Web;
     
    import java.io.Serializable;
    import java.util.Iterator;
    import java.util.List;
     
    import javax.annotation.PostConstruct;
     
    import org.richfaces.component.html.HtmlScrollableDataTable;
    import org.richfaces.model.ScrollableTableDataModel.SimpleRowKey;
    import org.springframework.beans.factory.annotation.Autowired;
    import org.springframework.context.annotation.Scope;
    import org.springframework.stereotype.Component;
    import org.wisetech.geoloc.model.Chauffeur;
    import org.wisetech.geoloc.service.ChauffeurService;
     
    @Component("chauffeurBean")
    @Scope("session")
    public class ChauffeurBean implements Serializable{
        @Autowired
        private transient ChauffeurService chauffeurService;
        private transient HtmlScrollableDataTable chauffeurTable;
        private List<Chauffeur> chauffeurList;
        private Chauffeur currentChauffeur=new Chauffeur();
     
     
        @PostConstruct
        public void init(){
            chauffeurList = chauffeurService.findAll();
        }
        public String viewNew(){
            currentChauffeur = new Chauffeur();
            return "detail";
        }
     
     
        public String viewDetail(){
            List<Chauffeur> valueList = (List<Chauffeur>) chauffeurTable.getValue();
            Iterator<SimpleRowKey> keys =chauffeurTable.getSelection().getKeys();
            if(keys.hasNext()){
                currentChauffeur = valueList.get(keys.next().intValue());
                return "detail";
            }
            else 
            { 
            return null;
            }
        }
     
        public String update(){
            chauffeurService.save(currentChauffeur);
            init();
            return null;
        }
        public String delete(){
            chauffeurService.delete(currentChauffeur);
            init();
            return null;
        }
        public HtmlScrollableDataTable getChauffeurTable() {
            return chauffeurTable;
        }
        public void setChauffeurTable(HtmlScrollableDataTable chauffeurTable) {
            this.chauffeurTable = chauffeurTable;
        }
        public List<Chauffeur> getChauffeurList() {
            return chauffeurList;
        }
        public void setChauffeurList(List<Chauffeur> chauffeurList) {
            this.chauffeurList = chauffeurList;
        }
        public Chauffeur getCurrentChauffeur() {
            return currentChauffeur;
        }
        public void setCurrentChauffeur(Chauffeur currentChauffeur) {
            this.currentChauffeur = currentChauffeur;
        }
    }
    Quelqu'un saurait-il m'expliquer d'où peut venir le problème ?

    Merci d'avance pour votre aide.

  2. #2
    Rédacteur

    Profil pro
    Inscrit en
    Juin 2003
    Messages
    4 184
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 4 184
    Par défaut
    Salut,

    tu n'a pas d'exception dans la console ? et quel est le code erreur http ?

    si tu peux en plus ajouter le bout de code du bouton qui cause le problème, ça serait très utile.

  3. #3
    Membre averti
    Inscrit en
    Août 2010
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Août 2010
    Messages : 50
    Par défaut
    merci d'avoir me repondre
    ok voila le code de mon chauffeurList.jsp ou j'ai mis les boutton detail et new
    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
     
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    	pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
    <%@ taglib prefix="rich" uri="http://richfaces.org/rich"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>liste des chauffeur</title>
    </head>
    <body>
    	<f:view>
    		<h:form id="mainForm">
    			<h:panelGrid>
    				<rich:scrollableDataTable id="chauffeurTable"
    					binding="#{chauffeurBean.chauffeurTable }"
    					value="#{chauffeurBean.chauffeurList }" var="chauffeur"
    					width="300px" height="200px">
    					<a4j:support event="onRowDblClick"
    						action="#{chauffeurBean.viewDetail}"></a4j:support>
     
    					<rich:column id="idChf" width="60px">
    						<f:facet name="header">
    							<h:outputText value="idchauffeur" />
    						</f:facet>
    						<h:outputText value="#{chauffeur.idChf}" />
    					</rich:column>
     
    					<rich:column id="nomChf" width="60px">
    						<f:facet name="header">
    							<h:outputText value="nomchf" />
    						</f:facet>
    						<h:outputText value="#{chauffeur.nomChf}" />
    					</rich:column>
    					<rich:column id="prenomChf" width="60px">
    						<f:facet name="header">
    							<h:outputText value="prenomchf" />
    						</f:facet>
    						<h:outputText value="#{chauffeur.prenomChf}" />
    					</rich:column>
    				</rich:scrollableDataTable>
     
    				<h:panelGroup>
    					<h:commandButton value="Detail"
    						action="#{chauffeurBean.viewDetail}"></h:commandButton>
    					<h:commandButton value="New" action="#{chauffeurBean.viewNew}"></h:commandButton>
    				</h:panelGroup>
    			</h:panelGrid>
    		</h:form>
    	</f:view>
    </body>
    </html>
    et voila le code jsp à laquelle je dois aller si je clique sur le boutton pour le moment j'ai rien mis dedans
    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
     
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f"  uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h"  uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>detail chauffeur</title>
    </head>
    <body>
    <f:view>
     
    </f:view>
    </body>
    </html>
    et voila les deux méthode dans le bean associé comme action au boutons
    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
     
     
    public String viewNew(){
    		currentChauffeur=new Chauffeur();
    		return "detail";
    	}
    public String viewDetail(){
    	List<Chauffeur> valueList = (List<Chauffeur>) chauffeurTable.getValue();
    	Iterator<SimpleRowKey> keys=chauffeurTable.getSelection().getKeys();
    	if(keys.hasNext()){
    		currentChauffeur=valueList.get(keys.next().intValue());
    		return "detail";
    	}
    	else
    	{ return null;}
    }

  4. #4
    Membre averti
    Inscrit en
    Août 2010
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Août 2010
    Messages : 50
    Par défaut
    pour la trace j'ai ça
    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
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    18 août 2011 10:21:41 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\STM\ST20R2.2.1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;;C:\Users\chahrazed\Desktop\eclipse-jee-helios-SR2-win32\eclipse;;.
    18 août 2011 10:21:41 org.apache.tomcat.util.digester.SetPropertiesRule begin
    ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:wise' did not find a matching property.
    18 août 2011 10:21:41 org.apache.coyote.AbstractProtocolHandler init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    18 août 2011 10:21:41 org.apache.coyote.AbstractProtocolHandler init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    18 août 2011 10:21:41 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 802 ms
    18 août 2011 10:21:41 org.apache.catalina.core.StandardService startInternal
    INFO: Démarrage du service Catalina
    18 août 2011 10:21:41 org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.12
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: 
            http://java.sun.com/jsf/html
         is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://mojarra.dev.java.net/mojarra_ext is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    log4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils).
    log4j:WARN Please initialize the log4j system properly.
    18 août 2011 10:21:43 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    320 [Thread-2] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
    331 [Thread-2] INFO org.hibernate.cfg.Environment - Hibernate 3.6.0.Final
    334 [Thread-2] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    339 [Thread-2] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
    345 [Thread-2] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    608 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Chauffeur
    693 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Chauffeur on table chauffeur
    815 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Engin
    816 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Engin on table engin
    881 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Societe
    881 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Societe on table societe
    896 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Affectation
    897 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Affectation on table affectation
    905 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Mission
    906 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Mission on table mission
    910 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Poi
    910 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Poi on table poi
    916 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Users
    917 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Users on table users
    920 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Notification
    920 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Notification on table notification
    922 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Message
    922 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Message on table message
    926 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Proximite
    926 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Proximite on table proximite
    928 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Role
    928 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Role on table role
    930 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.RT_Message
    930 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.RT_Message on table rt_message
    934 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Zone
    935 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Zone on table zone
    940 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Boitier
    940 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Boitier on table boitier
    943 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.BoitierEngin
    943 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.BoitierEngin on table boitier_engin
    975 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Engin.affectations -> affectation
    978 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Engin.boitierEngins -> boitier_engin
    978 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Engin.notifications -> notification
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.affectation -> affectation
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.chauffeurs -> chauffeur
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.engins -> engin
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.mission -> mission
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.notifications -> notification
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.pois -> poi
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.proximites -> proximite
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.users -> users
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Affectation.missions -> mission
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Poi.missions -> mission
    980 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Boitier.boitierEngins -> boitier_engin
    989 [Thread-2] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
    1001 [Thread-2] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
    1073 [Thread-2] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
    1469 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Database ->
           name : MySQL
        version : 5.1.56-community
          major : 5
          minor : 1
    1470 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Driver ->
           name : MySQL-AB JDBC Driver
        version : mysql-connector-java-5.1.16 ( Revision: ${bzr.revision-id} )
          major : 5
          minor : 1
    1514 [Thread-2] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.HSQLDialect
    1545 [Thread-2] INFO org.hibernate.engine.jdbc.JdbcSupportLoader - Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
    1547 [Thread-2] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
    1548 [Thread-2] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    1549 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    1549 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    1549 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    1554 [Thread-2] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
    1557 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    1557 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
    1598 [Thread-2] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    2322 [Thread-2] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    18 août 2011 10:21:47 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initialisation de Mojarra 2.0.0 (SNAPSHOT 20091019) pour le contexte '/wise'
    18 août 2011 10:21:48 com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048 : Présence d''annotations PostConstruct/PreDestroy  Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées.
    18 août 2011 10:21:49 org.apache.coyote.AbstractProtocolHandler start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    18 août 2011 10:21:49 org.apache.coyote.AbstractProtocolHandler start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    18 août 2011 10:21:49 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 7779 ms
    et j'ai comme page d'acceuil
    Nom : acceuil.png
Affichages : 109
Taille : 9,6 Ko

    si je clique sur l'un des deux bouttons rien ne change dans la trace mais je dois attendre beaucoup pour me rend la page d'erreur
    Nom : run.png
Affichages : 86
Taille : 26,5 Ko
    je sais pas ou l'erreur

  5. #5
    Rédacteur

    Profil pro
    Inscrit en
    Juin 2003
    Messages
    4 184
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2003
    Messages : 4 184
    Par défaut
    quelle version de Richfaces??

    tu dois utilisé Facelets avec Richfaces et des fichiers xhtml. la déclaration des tag libs devrait se faire en xhtml.

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    xmlns:a4j="http://richfaces.org/a4j"

  6. #6
    Membre averti
    Inscrit en
    Août 2010
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Août 2010
    Messages : 50
    Par défaut
    j'utilise Richfaces 3.1.4 Ga
    est ce que je dois utiliser des xhtml au lieu des jsp tu peut m'eclaircir plus les choses merci

  7. #7
    Membre Expert
    Avatar de hasalex
    Homme Profil pro
    Développeur Java
    Inscrit en
    Janvier 2009
    Messages
    879
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 55
    Localisation : France, Rhône (Rhône Alpes)

    Informations professionnelles :
    Activité : Développeur Java

    Informations forums :
    Inscription : Janvier 2009
    Messages : 879
    Par défaut
    Je suppose que cette page signifie 404... Quelle idée saugrenue d'utiliser IE pour développer. Tu devrais prendre FF avec le plug-in web developer qui te permet d'activer et désactiver le cache à la demande.

    As-tu des erreurs dans tes logs ?
    Ton war s'appelle bien wise.war ?
    Le début de l'application fonctionne bien ?
    La JSP chauffeurDetail.jsp existe bien ?
    Passes-tu dans la méthode viewDetail de ton bean (ajoute des logs) ?
    Est-ce que cette méthode renvoie bien la string "detail" ?

  8. #8
    Membre averti
    Inscrit en
    Août 2010
    Messages
    50
    Détails du profil
    Informations forums :
    Inscription : Août 2010
    Messages : 50
    Par défaut
    merci d'avoir me repondre
    j'utilise comme ide eclipse et comme serveur tomcat
    l'application au debut fonctionne bien voila
    Nom : acceuil.png
Affichages : 91
Taille : 9,6 Ko
    et voila la trace de l'exécution
    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
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
     
    18 août 2011 10:21:41 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:/Program Files/Java/jre6/lib/i386;C:\STM\ST20R2.2.1\bin;D:\oracle\product\10.2.0\db_1\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Windows Live\Shared;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;;C:\Users\chahrazed\Desktop\eclipse-jee-helios-SR2-win32\eclipse;;.
    18 août 2011 10:21:41 org.apache.tomcat.util.digester.SetPropertiesRule begin
    ATTENTION: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:wise' did not find a matching property.
    18 août 2011 10:21:41 org.apache.coyote.AbstractProtocolHandler init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    18 août 2011 10:21:41 org.apache.coyote.AbstractProtocolHandler init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    18 août 2011 10:21:41 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 802 ms
    18 août 2011 10:21:41 org.apache.catalina.core.StandardService startInternal
    INFO: Démarrage du service Catalina
    18 août 2011 10:21:41 org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.12
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: 
            http://java.sun.com/jsf/html
         is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://mojarra.dev.java.net/mojarra_ext is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/permittedTaglibs is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    18 août 2011 10:21:43 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    log4j:WARN No appenders could be found for logger (org.springframework.util.ClassUtils).
    log4j:WARN Please initialize the log4j system properly.
    18 août 2011 10:21:43 org.apache.catalina.core.ApplicationContext log
    INFO: Initializing Spring root WebApplicationContext
    320 [Thread-2] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
    331 [Thread-2] INFO org.hibernate.cfg.Environment - Hibernate 3.6.0.Final
    334 [Thread-2] INFO org.hibernate.cfg.Environment - hibernate.properties not found
    339 [Thread-2] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
    345 [Thread-2] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
    608 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Chauffeur
    693 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Chauffeur on table chauffeur
    815 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Engin
    816 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Engin on table engin
    881 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Societe
    881 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Societe on table societe
    896 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Affectation
    897 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Affectation on table affectation
    905 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Mission
    906 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Mission on table mission
    910 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Poi
    910 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Poi on table poi
    916 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Users
    917 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Users on table users
    920 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Notification
    920 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Notification on table notification
    922 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Message
    922 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Message on table message
    926 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Proximite
    926 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Proximite on table proximite
    928 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Role
    928 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Role on table role
    930 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.RT_Message
    930 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.RT_Message on table rt_message
    934 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Zone
    935 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Zone on table zone
    940 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.Boitier
    940 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.Boitier on table boitier
    943 [Thread-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.wisetech.geoloc.model.BoitierEngin
    943 [Thread-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.wisetech.geoloc.model.BoitierEngin on table boitier_engin
    975 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Engin.affectations -> affectation
    978 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Engin.boitierEngins -> boitier_engin
    978 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Engin.notifications -> notification
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.affectation -> affectation
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.chauffeurs -> chauffeur
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.engins -> engin
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.mission -> mission
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.notifications -> notification
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.pois -> poi
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.proximites -> proximite
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Societe.users -> users
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Affectation.missions -> mission
    979 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Poi.missions -> mission
    980 [Thread-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.wisetech.geoloc.model.Boitier.boitierEngins -> boitier_engin
    989 [Thread-2] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
    1001 [Thread-2] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
    1073 [Thread-2] INFO org.hibernate.connection.ConnectionProviderFactory - Initializing connection provider: org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider
    1469 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Database ->
           name : MySQL
        version : 5.1.56-community
          major : 5
          minor : 1
    1470 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Driver ->
           name : MySQL-AB JDBC Driver
        version : mysql-connector-java-5.1.16 ( Revision: ${bzr.revision-id} )
          major : 5
          minor : 1
    1514 [Thread-2] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.HSQLDialect
    1545 [Thread-2] INFO org.hibernate.engine.jdbc.JdbcSupportLoader - Disabling contextual LOB creation as createClob() method threw error : java.lang.reflect.InvocationTargetException
    1547 [Thread-2] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.springframework.orm.hibernate3.SpringTransactionFactory
    1548 [Thread-2] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
    1548 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
    1549 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
    1549 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
    1549 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
    1551 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
    1554 [Thread-2] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
    1555 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
    1557 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
    1557 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
    1568 [Thread-2] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
    1598 [Thread-2] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
    2322 [Thread-2] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    18 août 2011 10:21:47 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initialisation de Mojarra 2.0.0 (SNAPSHOT 20091019) pour le contexte '/wise'
    18 août 2011 10:21:48 com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048 : Présence d''annotations PostConstruct/PreDestroy  Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées.
    18 août 2011 10:21:49 org.apache.coyote.AbstractProtocolHandler start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    18 août 2011 10:21:49 org.apache.coyote.AbstractProtocolHandler start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    18 août 2011 10:21:49 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 7779 ms
    mais lorsque je selectionne une ligne et cliquer sur Deatil je dois attendre beaucoup et il m'affiche l'erreur alors que dans la trace rien ne change

    voila le code de deuw methodes viewDeatil et viewNew de mon 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
     
    public String viewNew(){
    		currentChauffeur=new Chauffeur();
    		return "detail";
    	}
    public String viewDetail(){
    	List<Chauffeur> valueList = (List<Chauffeur>) chauffeurTable.getValue();
    	Iterator<SimpleRowKey> keys=chauffeurTable.getSelection().getKeys();
    	if(keys.hasNext()){
    		currentChauffeur=valueList.get(keys.next().intValue());
    		return "detail";
    	}
    	else
    	{ return null;}
    }
    et voila mon chauffeurList.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
    52
    53
    54
    55
     
    <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    	pageEncoding="ISO-8859-1"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <%@ taglib prefix="a4j" uri="http://richfaces.org/a4j"%>
    <%@ taglib prefix="rich" uri="http://richfaces.org/rich"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>liste des chauffeur</title>
    </head>
    <body>
    	<f:view>
    		<h:form id="mainForm">
    			<h:panelGrid>
    				<rich:scrollableDataTable id="chauffeurTable"
    					binding="#{chauffeurBean.chauffeurTable }"
    					value="#{chauffeurBean.chauffeurList }" var="chauffeur"
    					width="300px" height="200px">
    					<a4j:support event="onRowDblClick"
    						action="#{chauffeurBean.viewDetail}"></a4j:support>
     
    					<rich:column id="idChf" width="60px">
    						<f:facet name="header">
    							<h:outputText value="idchauffeur" />
    						</f:facet>
    						<h:outputText value="#{chauffeur.idChf}" />
    					</rich:column>
     
    					<rich:column id="nomChf" width="60px">
    						<f:facet name="header">
    							<h:outputText value="nomchf" />
    						</f:facet>
    						<h:outputText value="#{chauffeur.nomChf}" />
    					</rich:column>
    					<rich:column id="prenomChf" width="60px">
    						<f:facet name="header">
    							<h:outputText value="prenomchf" />
    						</f:facet>
    						<h:outputText value="#{chauffeur.prenomChf}" />
    					</rich:column>
    				</rich:scrollableDataTable>
     
    				<h:panelGroup>
    					<h:commandButton value="Detail"
    						action="#{chauffeurBean.viewDetail}"></h:commandButton>
    					<h:commandButton value="New" action="#{chauffeurBean.viewNew}"></h:commandButton>
    				</h:panelGroup>
    			</h:panelGrid>
    		</h:form>
    	</f:view>
    </body>
    </html>
    j'ai fait et refait comme vous avez fait dans le tuto mais tjrs meme pb !!!
    peut étre l'erraur dans les deux méthode viewDetail et viewNew parce que l'application démarre bien au début mais je sais pas
    merci d'avoir me repondre

Discussions similaires

  1. [SP-2010] Infopath 2010 : ouvrir une url lors du clic sur un bouton
    Par kcizth dans le forum SharePoint
    Réponses: 1
    Dernier message: 27/06/2013, 13h20
  2. [SP-2010] Infopath 2010 : ouvrir une url lors du clic sur un bouton
    Par kcizth dans le forum SharePoint
    Réponses: 5
    Dernier message: 26/06/2013, 14h54
  3. Réponses: 2
    Dernier message: 14/01/2012, 12h33
  4. Interruption d'une tache (SwingWorker) lors du clic sur un bouton
    Par Crowell dans le forum EDT/SwingWorker
    Réponses: 3
    Dernier message: 07/05/2007, 14h55
  5. JSP : Récupérer valeur lors du clic sur un bouton
    Par ze veritable farf dans le forum Servlets/JSP
    Réponses: 12
    Dernier message: 11/04/2006, 11h16

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