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 :

recuperer une valeur int dans un champs SelectOneMenu


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre confirmé
    Inscrit en
    Décembre 2009
    Messages
    68
    Détails du profil
    Informations forums :
    Inscription : Décembre 2009
    Messages : 68
    Par défaut recuperer une valeur int dans un champs SelectOneMenu
    Salut je débute dans le développement web java et je suis entrain de développer une petite application de gestion des employes avec JSF HIBERNATE SPRING et une SGBD PostgreSql.
    dans mon application j'ai un champs SelectOneMenu qui recupere tous les id dans la base
    moi je veux recuperer les valeur de ce champs pour pouvoir remplir tous les autre champs avec une methode getEmployesById je vous envoie le code et merci pour votre aide
    Code java : 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
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
     
    package com.sungard.beans;
     
    import java.util.ArrayList;
    import java.util.Collection;
    import java.util.Date;
     
    import javax.faces.model.SelectItem;
     
    import antlr.collections.List;
     
    import com.sungard.persistence.Employe;
    import com.sungard.service.IEmployeService;
     
    public class EmployeBean {
     
    	//private String empId;
    	Employe employe;
                 private int id;
    	private String nom;
    	private String prenom;
    	private Date date_embauche;
    	private float salaire;
    	private String fonction;
    	private IEmployeService empServ;
    	public ArrayList<Employe> employes;
    	public ArrayList<SelectItem> listIds;
    	public EmployeBean() {
    	employe=new Employe();
    	/*listIds=new ArrayList<SelectItem>();
    	employes = new ArrayList<Employe>();
    	employes= empServ.findEmployes();*/
    	}
     
     
     
    	public ArrayList<SelectItem> getListIds() {
    		System.out.println("employes list size: "+getEmployes().size());
    		if(listIds==null)
    			listIds=new ArrayList<SelectItem>();
    		for (Employe emp : getEmployes()) {
    			SelectItem selectItem=new SelectItem();
    			selectItem.setLabel(String.valueOf(emp.getId()));
    			selectItem.setValue(String.valueOf(emp.getId()));
    			listIds.add(selectItem);
    		}
    		System.out.println(listIds);
    		return listIds; 
     
    	}
     
     
     
    	public void setListIds(ArrayList<SelectItem> listIds) {
    		this.listIds = listIds;
     
     
    	}
    	public ArrayList<Employe> getEmployes() {
    		if(employes==null)
    			employes = empServ.findEmployes();
    		return employes;
    	}
     
     
     
    	public void setEmployes(ArrayList<Employe> employes) {
    		this.employes = employes;
    	}
     
     
    	public String addEmployeAction(){
    		try{
     
    			employe.setNom(nom);
    			System.out.println(nom);
     
    			employe.setPrenom(prenom);
    			System.out.println(prenom);
     
    			employe.setDate_embauche(date_embauche);
    			System.out.println(date_embauche);
     
    			employe.setSalaire(salaire);
    			System.out.println(salaire);
     
    			employe.setFonction(fonction);
    			System.out.println(fonction);
     
    			this.empServ.addEmploye(employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}		
    	}
    	public String deleteEmployeAction(){
    		try{
    			this.empServ.deleteEmploye(this.employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}
    	}
    	public String updateEmployeAction(){
    		try{
    			employe.setNom(nom);
    			System.out.println(nom);
     
    			employe.setPrenom(prenom);
    			System.out.println(prenom);
     
    			employe.setDate_embauche(date_embauche);
    			System.out.println(date_embauche);
     
    			employe.setSalaire(salaire);
    			System.out.println(salaire);
     
    			employe.setFonction(fonction);
    			System.out.println(fonction);
    			this.empServ.deleteEmploye(this.employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}
    	}
    	public void findAction(int id){
    		employe=this.empServ.getEmployeById(id);
    		this.nom=employe.getNom();
    		this.prenom=employe.getPrenom();
    		this.date_embauche=employe.getDate_embauche();
    		this.salaire=employe.getSalaire();
    		this.fonction=employe.getFonction();
     
    	}
     
    	public void setEmpServ(IEmployeService empServ) {
    		this.empServ = empServ;
    	}
     
    	public String getNom() {
    		return nom;
    	}
    	public void setNom(String nom) {
    		this.nom = nom;
    	}
    	public String getPrenom() {
    		return prenom;
    	}
    	public void setPrenom(String prenom) {
    		this.prenom = prenom;
    	}
    	public Date getDate_embauche() {
    		return date_embauche;
    	}
    	public void setDate_embauche(Date date_embauche) {
    		this.date_embauche = date_embauche;
    	}
    	public float getSalaire() {
    		return salaire;
    	}
    	public void setSalaire(float salaire) {
    		this.salaire = salaire;
    	}
    	public String getFonction() {
    		return fonction;
    	}
    	public void setFonction(String fonction) {
    		this.fonction = fonction;
    	}
    	public IEmployeService getEmpServ() {
    		return empServ;
    	}
     
    	public int getId() {
    		return id;
    	}
     
     
     
    	public void setId(int id) {
    		this.id = id;
    	}
     
     
     
    }
    /*public void setEmpId(String empId) {
    		this.empId = empId;
    		if(empId!=null && !empId.equals("")){
    			Integer id=new Integer(empId);
    			try{
    				if(empServ!=null){
    					empServ.getEmployeById(id);
    				}
    			}
    				catch(Exception e){
    					e.printStackTrace();
    				}
     
    			}
    		}*/
    Code html : 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
     
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
            uri="http://java.sun.com/jsf/html" prefix="h"%><%@ 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">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
     
    <f:view>
    	<h:form style="height: 40px">
    		<h1>Bienvenu dans la recherche des employés</h1>
    	</h:form>
     
    	<h:panelGrid border="1" columns="3" style="height: 22px; width: 516px">
     
    		<h:form>
    			<h:panelGrid border="1" columns="2"
    				style="width: 516px; height: 241px">
    				<h:outputText value="ID"></h:outputText>
     
    				<h:selectOneMenu style="width: 246px; height: 27px" id="ncin"
    					value="#{employeBean.id}">
    					<f:selectItems value="#{employeBean.listIds}" />
     
    				</h:selectOneMenu>
     
    				<h:outputText value="Nom"></h:outputText>
    				<h:inputText id="nom" value="#{employeBean.nom}" style="width: 246px; height: 24px"></h:inputText>
    				<h:outputText value="Prenom"></h:outputText>
    				<h:inputText id="prenom" value="#{employeBean.prenom}" style="width: 245px; height: 29px"></h:inputText>
    				<h:outputText value="Date d'embauche"></h:outputText>
    				<h:inputText id="date" value="#{employeBean.date_embauche}" style="width: 246px; height: 29px"><f:convertDateTime type="date" pattern="dd/MM/yyyy"/></h:inputText>
    				<h:outputText value="Salaire"></h:outputText>
    				<h:inputText id="salaire" value="#{employeBean.salaire}" style="width: 247px; height: 29px"></h:inputText>
    				<h:outputText value="Fonction"></h:outputText>
    				<h:inputText id="fonction" value="#{employeBean.fonction}" style="width: 247px; height: 29px"></h:inputText>
     
    			</h:panelGrid>
     
    			<h:commandButton value="FIND" action="#{employeBean.findAction}" style="width: 145px" />
    			<h:commandButton value="UPDATE" action="#{employeBean.updateEmployeAction}" style="width: 145px" />
    			<h:commandButton value="DELETE" action="#{employeBean.deleteEmployeAction}" style="width: 145px" />
     
     
     
    		</h:form>
    	</h:panelGrid>
     
     
     
     
     
    </f:view>
    </body>
    </html>
    en fait pour la valeur c'est bon j'ai pu la recuperer
    mais quand je clique sur find rien ne se passe
    Merci de m'aider

  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
    ajoute un pour vérifier si tu n'a pas d'erreurs de validation ou de conversion.

    En plus, il y'a un h:form dont je ne vois pas l'utilité:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <h:form style="height: 40px">
    		<h1>Bienvenu dans la recherche des employés</h1>
    	</h:form>
    tu peux utiliser un panelGroup pour ça, pas un h:form.

  3. #3
    Membre confirmé
    Inscrit en
    Décembre 2009
    Messages
    68
    Détails du profil
    Informations forums :
    Inscription : Décembre 2009
    Messages : 68
    Par défaut
    j'ai mis le mais ca n'affiche rien
    quand je clique sur find la page se reactualise c'est comme ci que le binding ne fonctionnait pas

  4. #4
    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
    avec un S.
    et supprime le premier form.

  5. #5
    Membre confirmé
    Inscrit en
    Décembre 2009
    Messages
    68
    Détails du profil
    Informations forums :
    Inscription : Décembre 2009
    Messages : 68
    Par défaut
    pour ce petit problème c'est réglé j'ai mis l'Id de mon bean à string et ca a marché maintenant j'ai une exception de type org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    j'utilise hibernate annotation et je n'ai qu'une seule entité voila le code de mon bean ainsi ma page jsf
    Code java : 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
    package com.sungard.beans;
     
    import java.util.ArrayList;
    import java.util.Date;
     
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
     
    import com.sungard.persistence.Employe;
    import com.sungard.service.IEmployeService;
     
    public class EmployeBean2 {
     
     
    	private String id;
    	private String nom;
    	private String prenom;
    	private Date date_embauche;
    	private float salaire;
    	private String fonction;
    	private IEmployeService empServ;
    	public ArrayList<Employe> employes;
    	public ArrayList<SelectItem> listIds;
    	public EmployeBean2() {
     
    	}
     
    	public ArrayList<SelectItem> getListIds() {
    		System.out.println("employes list size: "+getEmployes().size());
    		if(listIds==null)
    			listIds=new ArrayList<SelectItem>();
    		for (Employe emp : getEmployes()) {
    			SelectItem selectItem=new SelectItem();
    			selectItem.setLabel(String.valueOf(emp.getId()));
    			selectItem.setValue(String.valueOf(emp.getId()));
    			listIds.add(selectItem);
    		}
    		System.out.println(listIds);
    		return listIds; 
     
    	}
     
     
     
    	public void setListIds(ArrayList<SelectItem> listIds) {
    		this.listIds = listIds;
     
     
    	}
    	public ArrayList<Employe> getEmployes() {
    		if(employes==null)
    			employes = empServ.findEmployes();
    		return employes;
    	}
     
     
     
    	public void setEmployes(ArrayList<Employe> employes) {
    		this.employes = employes;
    	}
     
    	public String deleteEmployeAction(){
    		Employe employe=new Employe();
    		try{
    			this.empServ.deleteEmploye(employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}
    	}
    	public String updateEmployeAction(){
    		Employe employe=new Employe();
    		try{
    			employe.setNom(nom);
    			System.out.println(nom);
     
    			employe.setPrenom(prenom);
    			System.out.println(prenom);
     
    			employe.setDate_embauche(date_embauche);
    			System.out.println(date_embauche);
     
    			employe.setSalaire(salaire);
    			System.out.println(salaire);
     
    			employe.setFonction(fonction);
    			System.out.println(fonction);
    			this.empServ.updateEmploye(employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}
    	}
    	public void findAction(ValueChangeEvent event){
    		//System.out.println("59195"+Integer.parseInt(event.getNewValue().toString()));
    		Employe employe=new Employe();
    		employe=empServ.getEmployeById(Integer.parseInt(event.getNewValue().toString()));
    		setNom(employe.getNom());
    		setPrenom(employe.getPrenom());
    		setDate_embauche(employe.getDate_embauche());
    		setSalaire(employe.getSalaire());
    		setFonction(employe.getFonction());
    		}
     
    	public void setEmpServ(IEmployeService empServ) {
    		this.empServ = empServ;
    	}
     
    	public String getNom() {
    		return nom;
    	}
    	public void setNom(String nom) {
    		this.nom = nom;
    	}
    	public String getPrenom() {
    		return prenom;
    	}
    	public void setPrenom(String prenom) {
    		this.prenom = prenom;
    	}
    	public Date getDate_embauche() {
    		return date_embauche;
    	}
    	public void setDate_embauche(Date date_embauche) {
    		this.date_embauche = date_embauche;
    	}
    	public float getSalaire() {
    		return salaire;
    	}
    	public void setSalaire(float salaire) {
    		this.salaire = salaire;
    	}
    	public String getFonction() {
    		return fonction;
    	}
    	public void setFonction(String fonction) {
    		this.fonction = fonction;
    	}
    	public IEmployeService getEmpServ() {
    		return empServ;
    	}
    	public String getId() {
    		return id;
    	}
    	public void setId(String id) {
    		this.id = id;
    	}
     
     
     
     
    }
    Code html : 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
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
            uri="http://java.sun.com/jsf/html" prefix="h"%><%@ 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">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
     
    <f:view>
     
    	<h1>Bienvenu dans la recherche des employés</h1>
    	<h:form>
     
     
     
    			<h:panelGrid border="1" columns="2"
    				style="width: 516px; height: 241px">
    				<h:outputText value="ID"></h:outputText>
     
    				<h:selectOneMenu style="width: 246px; height: 27px" id="ncin" immediate="true"
    					onchange="submit()"
    					value="#{employeBean2.id}" valueChangeListener="#{employeBean2.findAction}">
    					<f:selectItems value="#{employeBean2.listIds}" />
    				</h:selectOneMenu>
     
    				<h:outputText value="Nom"></h:outputText>
    				<h:inputText id="nom" value="#{employeBean2.nom}"
    					style="width: 246px; height: 24px"></h:inputText>
    				<h:outputText value="Prenom"></h:outputText>
    				<h:inputText id="prenom" value="#{employeBean2.prenom}"
    					style="width: 245px; height: 29px"></h:inputText>
    				<h:outputText value="Date d'embauche"></h:outputText>
    				<h:inputText id="date" value="#{employeBean2.date_embauche}"
    					style="width: 246px; height: 29px">
    					<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
    				</h:inputText>
    				<h:outputText value="Salaire"></h:outputText>
    				<h:inputText id="salaire" value="#{employeBean2.salaire}"
    					style="width: 247px; height: 29px"></h:inputText>
    				<h:outputText value="Fonction"></h:outputText>
    				<h:inputText id="fonction" value="#{employeBean2.fonction}"
    					style="width: 247px; height: 29px"></h:inputText>
    </h:panelGrid>
    <h:panelGrid  border="1" columns="3"
    				style="width: 516px">
    				<h:commandButton value="FIND" action="#{employeBean2.findAction}"
    					style="width: 165px" id="find" immediate="true" />
    				<h:commandButton value="UPDATE"
    					action="#{employeBean2.updateEmployeAction}" style="width: 165px" />
    				<h:commandButton value="DELETE"
    					action="#{employeBean2.deleteEmployeAction}" style="width: 165px" />
     
    			</h:panelGrid>
     
     
    			<h:message for="find"></h:message>
     
    	</h:form>
     
     
     
     
    </f:view>
    </body>
    </html>
    mon applicationContext.xml
    Code xml : 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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
    	<!-- ====================== Configuration de la persistence =============================-->
    	<bean id="dataSource"
    		class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    		<property name="driverClassName">
    			<value>org.postgresql.Driver</value>
    		</property>
    		<property name="url">
    			<value>
    				jdbc:postgresql://172.16.60.163:5432/TravelManagementDB
    			</value>
    		</property>
    		<property name="username">
    			<value>Traveler</value>
    		</property>
    		<property name="password">
    			<value>Traveler</value>
    		</property>
    	</bean>
    	<!-- ========================Hibernate Session Factory==================== -->
     
     
    	<bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
     
    		<property name="annotatedClasses">
    			<list>
    				<value>com.sungard.persistence.Employe</value>
    			</list>
    		</property>
     
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">
    					org.hibernate.dialect.PostgreSQLDialect
    				</prop>
    				<prop key="hbm2ddl.auto">create</prop>
    				<prop key="hibernate.show_sql">true</prop>
     
    			</props>
    		</property>
     
    		<property name="dataSource">
    			<ref bean="dataSource" />
    		</property>
     
    	</bean>
    	<!-- Spring Data Access Exception Translator Defintion -->
    	<bean id="jdbcExceptionTranslator"
    		class="org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator">
    		<property name="dataSource">
    			<ref bean="dataSource" />
    		</property>
    	</bean>
    	<!-- Hibernate Template Defintion -->
    	<bean id="hibernateTemplate"
    		class="org.springframework.orm.hibernate3.HibernateTemplate">
    		<property name="sessionFactory">
    			<ref bean="sessionFactory" />
    		</property>
    		<property name="jdbcExceptionTranslator">
    			<ref bean="jdbcExceptionTranslator" />
    		</property>
    	</bean>
    	<!-- Hibernate Transaction Manager Definition -->
    	<bean id="transactionManager"
    		class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    		<property name="sessionFactory">
    			<ref local="sessionFactory" />
    		</property>
    	</bean>
    	<!-- ========================= Start of DAO DEFINITIONS ========================= -->
    	<!-- Employe DAO Definition: Hibernate implementation -->
    	<bean id="empDao" class="com.sungard.dao.EmployeDAO">
    		<property name="hibernateTemplate">
    			<ref bean="hibernateTemplate" />
    		</property>
    	</bean>
    	<!-- ========================= Start of SERVICE DEFINITIONS ========================= -->
    	<!-- Service Definition -->
    	<bean id="EmployeServiceTarget"
    		class="com.sungard.service.EmployeService">
    		<property name="empDao">
    			<ref local="empDao" />
    		</property>
    	</bean>
    	<!-- Transactional proxy for the TODO Service -->
    	<bean id="empServ"
    		class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    		<property name="transactionManager">
    			<ref local="transactionManager" />
    		</property>
    		<property name="target">
    			<ref local="EmployeServiceTarget" />
    		</property>
    		<property name="transactionAttributes">
    			<props>
    				<prop key="get*">PROPAGATION_REQUIRED</prop>
    				<prop key="save*">PROPAGATION_REQUIRED</prop>
    				<prop key="update*">PROPAGATION_REQUIRED</prop>
    				<prop key="delete*">PROPAGATION_REQUIRED</prop>
    				<prop key="loadAll*">PROPAGATION_REQUIRED</prop>
    			</props>
    		</property>
    	</bean>
    </beans>
    et mon faces-config.xml
    Code xml : 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
     
    <?xml version="1.0" encoding="UTF-8"?>
     
    <!DOCTYPE faces-config PUBLIC
        "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
        "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
     
    <faces-config>
    	<managed-bean>
    		<managed-bean-name>menu</managed-bean-name>
    		<managed-bean-class>com.sungard.beans.Menu</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    	</managed-bean>
    	<managed-bean>
    		<managed-bean-name>employeBean</managed-bean-name>
    		<managed-bean-class>
    			com.sungard.beans.EmployeBean
    		</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    		<managed-property>
    			<property-name>empServ</property-name>
    			<property-class>
    				com.sungard.service.IEmployeService
    			</property-class>
    			<value>#{empServ}</value>
    		</managed-property>
    	</managed-bean>
    	<managed-bean>
    		<managed-bean-name>employeBean2</managed-bean-name>
    		<managed-bean-class>
    			com.sungard.beans.EmployeBean2
    		</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    		<managed-property>
    			<property-name>empServ</property-name>
    			<property-class>
    				com.sungard.service.IEmployeService
    			</property-class>
    			<value>#{empServ}</value>
    		</managed-property>
    	</managed-bean>
    	<navigation-rule>
    		<display-name>Interface Principale</display-name>
    		<from-view-id>/faces/Interface Principale.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>JETON_CREATE</from-outcome>
    			<to-view-id>/faces/AjoutEmploye.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>Interface Principale</display-name>
    		<from-view-id>/faces/Interface Principale.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>JETON_FIND</from-outcome>
    			<to-view-id>/faces/RechercheEmploye.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>AjoutEmploye</display-name>
    		<from-view-id>/faces/AjoutEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>failure</from-outcome>
    			<to-view-id>/faces/Failure.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>AjoutEmploye</display-name>
    		<from-view-id>/faces/AjoutEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>success</from-outcome>
    			<to-view-id>/faces/Success.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>RechercheEmploye</display-name>
    		<from-view-id>/faces/RechercheEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>failure</from-outcome>
    			<to-view-id>/faces/Failure.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>RechercheEmploye</display-name>
    		<from-view-id>/faces/RechercheEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>success</from-outcome>
    			<to-view-id>/faces/Success.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<application>
    		<variable-resolver>
    			org.springframework.web.jsf.DelegatingVariableResolver
    		</variable-resolver>
    		<locale-config />
    	</application>
     
    </faces-config>
    voici le msg d'erreur
    org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    merci de votre aide

  6. #6
    Membre confirmé
    Inscrit en
    Décembre 2009
    Messages
    68
    Détails du profil
    Informations forums :
    Inscription : Décembre 2009
    Messages : 68
    Par défaut
    Citation Envoyé par soffru Voir le message
    pour ce petit problème c'est réglé j'ai mis l'Id de mon bean à string et ca a marché maintenant j'ai une exception de type org.hibernate.LazyInitializationException: could not initialize proxy - no Session
    j'utilise hibernate annotation et je n'ai qu'une seule entité voila le code de mon bean ainsi ma page jsf
    Code java : 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
    package com.sungard.beans;
     
    import java.util.ArrayList;
    import java.util.Date;
     
    import javax.faces.event.ValueChangeEvent;
    import javax.faces.model.SelectItem;
     
    import com.sungard.persistence.Employe;
    import com.sungard.service.IEmployeService;
     
    public class EmployeBean2 {
     
     
    	private String id;
    	private String nom;
    	private String prenom;
    	private Date date_embauche;
    	private float salaire;
    	private String fonction;
    	private IEmployeService empServ;
    	public ArrayList<Employe> employes;
    	public ArrayList<SelectItem> listIds;
    	public EmployeBean2() {
     
    	}
     
    	public ArrayList<SelectItem> getListIds() {
    		System.out.println("employes list size: "+getEmployes().size());
    		if(listIds==null)
    			listIds=new ArrayList<SelectItem>();
    		for (Employe emp : getEmployes()) {
    			SelectItem selectItem=new SelectItem();
    			selectItem.setLabel(String.valueOf(emp.getId()));
    			selectItem.setValue(String.valueOf(emp.getId()));
    			listIds.add(selectItem);
    		}
    		System.out.println(listIds);
    		return listIds; 
     
    	}
     
     
     
    	public void setListIds(ArrayList<SelectItem> listIds) {
    		this.listIds = listIds;
     
     
    	}
    	public ArrayList<Employe> getEmployes() {
    		if(employes==null)
    			employes = empServ.findEmployes();
    		return employes;
    	}
     
     
     
    	public void setEmployes(ArrayList<Employe> employes) {
    		this.employes = employes;
    	}
     
    	public String deleteEmployeAction(){
    		Employe employe=new Employe();
    		try{
    			this.empServ.deleteEmploye(employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}
    	}
    	public String updateEmployeAction(){
    		Employe employe=new Employe();
    		try{
    			employe.setNom(nom);
    			System.out.println(nom);
     
    			employe.setPrenom(prenom);
    			System.out.println(prenom);
     
    			employe.setDate_embauche(date_embauche);
    			System.out.println(date_embauche);
     
    			employe.setSalaire(salaire);
    			System.out.println(salaire);
     
    			employe.setFonction(fonction);
    			System.out.println(fonction);
    			this.empServ.updateEmploye(employe);
    			return "success";
    		}catch(Exception e){
    			e.printStackTrace();
    			return "failure";
    		}
    	}
    	public void findAction(ValueChangeEvent event){
    		//System.out.println("59195"+Integer.parseInt(event.getNewValue().toString()));
    		Employe employe=new Employe();
    		employe=empServ.getEmployeById(Integer.parseInt(event.getNewValue().toString()));
    		setNom(employe.getNom());
    		setPrenom(employe.getPrenom());
    		setDate_embauche(employe.getDate_embauche());
    		setSalaire(employe.getSalaire());
    		setFonction(employe.getFonction());
    		}
     
    	public void setEmpServ(IEmployeService empServ) {
    		this.empServ = empServ;
    	}
     
    	public String getNom() {
    		return nom;
    	}
    	public void setNom(String nom) {
    		this.nom = nom;
    	}
    	public String getPrenom() {
    		return prenom;
    	}
    	public void setPrenom(String prenom) {
    		this.prenom = prenom;
    	}
    	public Date getDate_embauche() {
    		return date_embauche;
    	}
    	public void setDate_embauche(Date date_embauche) {
    		this.date_embauche = date_embauche;
    	}
    	public float getSalaire() {
    		return salaire;
    	}
    	public void setSalaire(float salaire) {
    		this.salaire = salaire;
    	}
    	public String getFonction() {
    		return fonction;
    	}
    	public void setFonction(String fonction) {
    		this.fonction = fonction;
    	}
    	public IEmployeService getEmpServ() {
    		return empServ;
    	}
    	public String getId() {
    		return id;
    	}
    	public void setId(String id) {
    		this.id = id;
    	}
     
     
     
     
    }
    Code html : 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
    <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
            uri="http://java.sun.com/jsf/html" prefix="h"%><%@ 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">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>Insert title here</title>
    </head>
    <body>
     
    <f:view>
     
    	<h1>Bienvenu dans la recherche des employés</h1>
    	<h:form>
     
     
     
    			<h:panelGrid border="1" columns="2"
    				style="width: 516px; height: 241px">
    				<h:outputText value="ID"></h:outputText>
     
    				<h:selectOneMenu style="width: 246px; height: 27px" id="ncin" immediate="true"
    					onchange="submit()"
    					value="#{employeBean2.id}" valueChangeListener="#{employeBean2.findAction}">
    					<f:selectItems value="#{employeBean2.listIds}" />
    				</h:selectOneMenu>
     
    				<h:outputText value="Nom"></h:outputText>
    				<h:inputText id="nom" value="#{employeBean2.nom}"
    					style="width: 246px; height: 24px"></h:inputText>
    				<h:outputText value="Prenom"></h:outputText>
    				<h:inputText id="prenom" value="#{employeBean2.prenom}"
    					style="width: 245px; height: 29px"></h:inputText>
    				<h:outputText value="Date d'embauche"></h:outputText>
    				<h:inputText id="date" value="#{employeBean2.date_embauche}"
    					style="width: 246px; height: 29px">
    					<f:convertDateTime type="date" pattern="dd/MM/yyyy" />
    				</h:inputText>
    				<h:outputText value="Salaire"></h:outputText>
    				<h:inputText id="salaire" value="#{employeBean2.salaire}"
    					style="width: 247px; height: 29px"></h:inputText>
    				<h:outputText value="Fonction"></h:outputText>
    				<h:inputText id="fonction" value="#{employeBean2.fonction}"
    					style="width: 247px; height: 29px"></h:inputText>
    </h:panelGrid>
    <h:panelGrid  border="1" columns="3"
    				style="width: 516px">
    				<h:commandButton value="FIND" action="#{employeBean2.findAction}"
    					style="width: 165px" id="find" immediate="true" />
    				<h:commandButton value="UPDATE"
    					action="#{employeBean2.updateEmployeAction}" style="width: 165px" />
    				<h:commandButton value="DELETE"
    					action="#{employeBean2.deleteEmployeAction}" style="width: 165px" />
     
    			</h:panelGrid>
     
     
    			<h:message for="find"></h:message>
     
    	</h:form>
     
     
     
     
    </f:view>
    </body>
    </html>
    mon applicationContext.xml
    Code xml : 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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd">
    <beans>
    	<!-- ====================== Configuration de la persistence =============================-->
    	<bean id="dataSource"
    		class="org.springframework.jdbc.datasource.DriverManagerDataSource">
    		<property name="driverClassName">
    			<value>org.postgresql.Driver</value>
    		</property>
    		<property name="url">
    			<value>
    				jdbc:postgresql://172.16.60.163:5432/TravelManagementDB
    			</value>
    		</property>
    		<property name="username">
    			<value>Traveler</value>
    		</property>
    		<property name="password">
    			<value>Traveler</value>
    		</property>
    	</bean>
    	<!-- ========================Hibernate Session Factory==================== -->
     
     
    	<bean id="sessionFactory"
    		class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean">
     
    		<property name="annotatedClasses">
    			<list>
    				<value>com.sungard.persistence.Employe</value>
    			</list>
    		</property>
     
    		<property name="hibernateProperties">
    			<props>
    				<prop key="hibernate.dialect">
    					org.hibernate.dialect.PostgreSQLDialect
    				</prop>
    				<prop key="hbm2ddl.auto">create</prop>
    				<prop key="hibernate.show_sql">true</prop>
     
    			</props>
    		</property>
     
    		<property name="dataSource">
    			<ref bean="dataSource" />
    		</property>
     
    	</bean>
    	<!-- Spring Data Access Exception Translator Defintion -->
    	<bean id="jdbcExceptionTranslator"
    		class="org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator">
    		<property name="dataSource">
    			<ref bean="dataSource" />
    		</property>
    	</bean>
    	<!-- Hibernate Template Defintion -->
    	<bean id="hibernateTemplate"
    		class="org.springframework.orm.hibernate3.HibernateTemplate">
    		<property name="sessionFactory">
    			<ref bean="sessionFactory" />
    		</property>
    		<property name="jdbcExceptionTranslator">
    			<ref bean="jdbcExceptionTranslator" />
    		</property>
    	</bean>
    	<!-- Hibernate Transaction Manager Definition -->
    	<bean id="transactionManager"
    		class="org.springframework.orm.hibernate3.HibernateTransactionManager">
    		<property name="sessionFactory">
    			<ref local="sessionFactory" />
    		</property>
    	</bean>
    	<!-- ========================= Start of DAO DEFINITIONS ========================= -->
    	<!-- Employe DAO Definition: Hibernate implementation -->
    	<bean id="empDao" class="com.sungard.dao.EmployeDAO">
    		<property name="hibernateTemplate">
    			<ref bean="hibernateTemplate" />
    		</property>
    	</bean>
    	<!-- ========================= Start of SERVICE DEFINITIONS ========================= -->
    	<!-- Service Definition -->
    	<bean id="EmployeServiceTarget"
    		class="com.sungard.service.EmployeService">
    		<property name="empDao">
    			<ref local="empDao" />
    		</property>
    	</bean>
    	<!-- Transactional proxy for the TODO Service -->
    	<bean id="empServ"
    		class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean">
    		<property name="transactionManager">
    			<ref local="transactionManager" />
    		</property>
    		<property name="target">
    			<ref local="EmployeServiceTarget" />
    		</property>
    		<property name="transactionAttributes">
    			<props>
    				<prop key="get*">PROPAGATION_REQUIRED</prop>
    				<prop key="save*">PROPAGATION_REQUIRED</prop>
    				<prop key="update*">PROPAGATION_REQUIRED</prop>
    				<prop key="delete*">PROPAGATION_REQUIRED</prop>
    				<prop key="loadAll*">PROPAGATION_REQUIRED</prop>
    			</props>
    		</property>
    	</bean>
    </beans>
    et mon faces-config.xml
    Code xml : 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
     
    <?xml version="1.0" encoding="UTF-8"?>
     
    <!DOCTYPE faces-config PUBLIC
        "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
        "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
     
    <faces-config>
    	<managed-bean>
    		<managed-bean-name>menu</managed-bean-name>
    		<managed-bean-class>com.sungard.beans.Menu</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    	</managed-bean>
    	<managed-bean>
    		<managed-bean-name>employeBean</managed-bean-name>
    		<managed-bean-class>
    			com.sungard.beans.EmployeBean
    		</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    		<managed-property>
    			<property-name>empServ</property-name>
    			<property-class>
    				com.sungard.service.IEmployeService
    			</property-class>
    			<value>#{empServ}</value>
    		</managed-property>
    	</managed-bean>
    	<managed-bean>
    		<managed-bean-name>employeBean2</managed-bean-name>
    		<managed-bean-class>
    			com.sungard.beans.EmployeBean2
    		</managed-bean-class>
    		<managed-bean-scope>session</managed-bean-scope>
    		<managed-property>
    			<property-name>empServ</property-name>
    			<property-class>
    				com.sungard.service.IEmployeService
    			</property-class>
    			<value>#{empServ}</value>
    		</managed-property>
    	</managed-bean>
    	<navigation-rule>
    		<display-name>Interface Principale</display-name>
    		<from-view-id>/faces/Interface Principale.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>JETON_CREATE</from-outcome>
    			<to-view-id>/faces/AjoutEmploye.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>Interface Principale</display-name>
    		<from-view-id>/faces/Interface Principale.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>JETON_FIND</from-outcome>
    			<to-view-id>/faces/RechercheEmploye.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>AjoutEmploye</display-name>
    		<from-view-id>/faces/AjoutEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>failure</from-outcome>
    			<to-view-id>/faces/Failure.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>AjoutEmploye</display-name>
    		<from-view-id>/faces/AjoutEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>success</from-outcome>
    			<to-view-id>/faces/Success.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>RechercheEmploye</display-name>
    		<from-view-id>/faces/RechercheEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>failure</from-outcome>
    			<to-view-id>/faces/Failure.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<navigation-rule>
    		<display-name>RechercheEmploye</display-name>
    		<from-view-id>/faces/RechercheEmploye.jsp</from-view-id>
    		<navigation-case>
    			<from-outcome>success</from-outcome>
    			<to-view-id>/faces/Success.jsp</to-view-id>
    		</navigation-case>
    	</navigation-rule>
    	<application>
    		<variable-resolver>
    			org.springframework.web.jsf.DelegatingVariableResolver
    		</variable-resolver>
    		<locale-config />
    	</application>
     
    </faces-config>
    voici le msg d'erreur

    merci de votre aide
    c bon c'est reglé pour ce problème reste une seule petite chose c'est que les champs ne se remplissent pas avec les set que je fais
    j'ai vérifié avec un debug et les valeurs des attributs sont recoltés mais je pe pas les afficher
    merci d'avance de votre aide

Discussions similaires

  1. Réponses: 2
    Dernier message: 22/05/2007, 16h15
  2. probleme:recuperer une valeur stockée dans une session
    Par oasma dans le forum Servlets/JSP
    Réponses: 6
    Dernier message: 26/03/2007, 00h38
  3. Saisir une valeur null dans 1 champ de ma table
    Par User dans le forum Bases de données
    Réponses: 3
    Dernier message: 16/03/2007, 23h40
  4. Réponses: 3
    Dernier message: 10/08/2005, 11h11
  5. Inserer une valeur NULL dans un champ datetime
    Par Karibou dans le forum MS SQL Server
    Réponses: 4
    Dernier message: 10/08/2005, 10h58

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