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 :

probléme page jsf


Sujet :

JSF Java

Vue hybride

Message précédent Message précédent   Message suivant Message suivant
  1. #1
    Membre éclairé
    Homme Profil pro
    Inscrit en
    Mai 2011
    Messages
    790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations forums :
    Inscription : Mai 2011
    Messages : 790
    Par défaut probléme page jsf
    Bonjour ,
    Je suis entrain de developper une page jsf et j'obtiens l'erreur suivante :
    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
    GRAVE: "Servlet.service()" pour la servlet Faces Servlet a généré une exception
    java.lang.IllegalStateException: Impossible de créer une session après que la réponse ait été envoyée
    	at org.apache.catalina.connector.Request.doGetSession(Request.java:2381)
    	at org.apache.catalina.connector.Request.getSession(Request.java:2098)
    	at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
    	at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:155)
    	at com.sun.faces.mgbean.BeanManager$ScopeManager$SessionScopeHandler.handle(BeanManager.java:575)
    	at com.sun.faces.mgbean.BeanManager$ScopeManager.pushToScope(BeanManager.java:458)
    	at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:410)
    	at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
    	at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
    	at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
    	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    	at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
    	at org.apache.el.parser.AstValue.getTarget(AstValue.java:68)
    	at org.apache.el.parser.AstValue.getType(AstValue.java:56)
    	at org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
    	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
    	at org.primefaces.component.datatable.DataTable.isLazy(DataTable.java:968)
    	at org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:191)
    	at org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:108)
    	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
    	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
    	at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
    	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
    	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
    	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
    	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
    	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
    	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
    	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
    	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
    	at java.lang.Thread.run(Thread.java:662)
    voiçi le code de ma page
    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:p="http://primefaces.org/ui">
     
     
     
     
    <h:head>
     
    	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     
    	<title>Khayem Application</title>
     
    	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
     
    <!--	[if lte IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" /><![endif]-->
     
    </h:head>
     
    <body>
     
     
    	<h:form><p:dataTable style="position:absolute; top:560px; left:450px" id="availableCars" var="classmentseriea" value="#{classmentcalcioCtr.classmentcalcio}">  
     
     
                <p:column headerText="Model">  
                    <h:outputText value="#{classmentseriea.id}" />  
                </p:column>  
     
                <p:column headerText="Year">  
                    <h:outputText value="#{classmentseriea.equipe}" />  
                </p:column>  
     
                <p:column headerText="Manufacturer">  
                    <h:outputText value="#{classmentseriea.pts}" />  
                </p:column>  
     
                <p:column headerText="Color">  
                    <h:outputText value="#{classmentseriea.j}" />  
                </p:column>  
            </p:dataTable>  ....
    J'ai pas compris de quoi il s'agit pourtant que la page semble juste lorsque j'elimine la partie ou je veux récuperer le tableau l'erreur disparait mais lorsque je l'ajoute ça s'affiche!
    Merci pour votre aide svp !

  2. #2
    Membre confirmé Avatar de azassma
    Femme Profil pro
    Ph.D - Computer Vision
    Inscrit en
    Avril 2012
    Messages
    159
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Ph.D - Computer Vision
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 159
    Par défaut
    Pouvez vous nous montrer la méthode classmentcalcioCtr.classmentcalcio ?

  3. #3
    Membre éclairé
    Homme Profil pro
    Inscrit en
    Mai 2011
    Messages
    790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations forums :
    Inscription : Mai 2011
    Messages : 790
    Par défaut
    Citation Envoyé par ahmedpa Voir le message
    Bonjour ,
    Je suis entrain de developper une page jsf et j'obtiens l'erreur suivante :
    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
    GRAVE: "Servlet.service()" pour la servlet Faces Servlet a généré une exception
    java.lang.IllegalStateException: Impossible de créer une session après que la réponse ait été envoyée
    	at org.apache.catalina.connector.Request.doGetSession(Request.java:2381)
    	at org.apache.catalina.connector.Request.getSession(Request.java:2098)
    	at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:833)
    	at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:155)
    	at com.sun.faces.mgbean.BeanManager$ScopeManager$SessionScopeHandler.handle(BeanManager.java:575)
    	at com.sun.faces.mgbean.BeanManager$ScopeManager.pushToScope(BeanManager.java:458)
    	at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:410)
    	at com.sun.faces.mgbean.BeanManager.create(BeanManager.java:269)
    	at com.sun.faces.el.ManagedBeanELResolver.resolveBean(ManagedBeanELResolver.java:244)
    	at com.sun.faces.el.ManagedBeanELResolver.getValue(ManagedBeanELResolver.java:116)
    	at com.sun.faces.el.DemuxCompositeELResolver._getValue(DemuxCompositeELResolver.java:176)
    	at com.sun.faces.el.DemuxCompositeELResolver.getValue(DemuxCompositeELResolver.java:203)
    	at org.apache.el.parser.AstIdentifier.getValue(AstIdentifier.java:68)
    	at org.apache.el.parser.AstValue.getTarget(AstValue.java:68)
    	at org.apache.el.parser.AstValue.getType(AstValue.java:56)
    	at org.apache.el.ValueExpressionImpl.getType(ValueExpressionImpl.java:174)
    	at com.sun.faces.facelets.el.TagValueExpression.getType(TagValueExpression.java:98)
    	at org.primefaces.component.datatable.DataTable.isLazy(DataTable.java:968)
    	at org.primefaces.component.datatable.DataTableRenderer.encodeMarkup(DataTableRenderer.java:191)
    	at org.primefaces.component.datatable.DataTableRenderer.encodeEnd(DataTableRenderer.java:108)
    	at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:875)
    	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1763)
    	at javax.faces.render.Renderer.encodeChildren(Renderer.java:168)
    	at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:845)
    	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1756)
    	at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1759)
    	at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:401)
    	at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
    	at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:410)
    	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
    	at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
    	at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
    	at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1555)
    	at java.lang.Thread.run(Thread.java:662)
    voiçi le code de ma page
    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
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
    	xmlns:ui="http://java.sun.com/jsf/facelets"
    	xmlns:h="http://java.sun.com/jsf/html"
    	xmlns:f="http://java.sun.com/jsf/core"
    	xmlns:p="http://primefaces.org/ui">
     
     
     
     
    <h:head>
     
    	<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
     
     
    	<link rel="stylesheet" href="css/style.css" type="text/css" media="all" />
     
    <!--	[if lte IE 6]><link rel="stylesheet" href="css/ie6.css" type="text/css" media="all" /><![endif]-->
     
    </h:head>
     
    <body>
     
     
    	<h:form><p:dataTable style="position:absolute; top:560px; left:450px" id="availableCars" var="classmentseriea" value="#{classmentcalcioCtr.classmentcalcio}">  
     
     
                <p:column headerText="Model">  
                    <h:outputText value="#{classmentseriea.id}" />  
                </p:column>  
     
                <p:column headerText="Year">  
                    <h:outputText value="#{classmentseriea.equipe}" />  
                </p:column>  
     
                <p:column headerText="Manufacturer">  
                    <h:outputText value="#{classmentseriea.pts}" />  
                </p:column>  
     
                <p:column headerText="Color">  
                    <h:outputText value="#{classmentseriea.j}" />  
                </p:column>  
            </p:dataTable>  ....
    J'ai pas compris de quoi il s'agit pourtant que la page semble juste lorsque j'elimine la partie ou je veux récuperer le tableau l'erreur disparait mais lorsque je l'ajoute ça s'affiche!
    Merci pour votre aide svp !

  4. #4
    Membre éclairé
    Homme Profil pro
    Inscrit en
    Mai 2011
    Messages
    790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations forums :
    Inscription : Mai 2011
    Messages : 790
    Par défaut
    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
    public class ClassementcalcioclubCtr {
     
    	// *************************************************************************************
     
    	//Decalaration des Coordonnées
    	private Integer id;
    	private String equipe;
    	private String pts;
    	private String j;
    	private String g;
    	private String n;
    	private String p;
    	private String bp;
    	private String bc;
    	private String diff;
     
    	//Pour L'affichage des coordonnées de tous les Contact
    	private List<Classementcalcioclub> classmentcalcio = new ArrayList<Classementcalcioclub>();
     
    	public Integer getId() {
    		return id;
    	}
     
     
    	public void setId(Integer id) {
    		this.id = id;
    	}
     
     
    	public String getEquipe() {
    		return equipe;
    	}
     
     
    	public void setEquipe(String equipe) {
    		this.equipe = equipe;
    	}
     
     
    	public String getPts() {
    		return pts;
    	}
     
     
    	public void setPts(String pts) {
    		this.pts = pts;
    	}
     
     
    	public String getJ() {
    		return j;
    	}
     
     
    	public void setJ(String j) {
    		this.j = j;
    	}
     
     
    	public String getG() {
    		return g;
    	}
     
     
    	public void setG(String g) {
    		this.g = g;
    	}
     
     
    	public String getN() {
    		return n;
    	}
     
     
    	public void setN(String n) {
    		this.n = n;
    	}
     
     
    	public String getP() {
    		return p;
    	}
     
     
    	public void setP(String p) {
    		this.p = p;
    	}
     
     
    	public String getBp() {
    		return bp;
    	}
     
     
    	public void setBp(String bp) {
    		this.bp = bp;
    	}
     
     
    	public String getBc() {
    		return bc;
    	}
     
     
    	public void setBc(String bc) {
    		this.bc = bc;
    	}
     
     
    	public String getDiff() {
    		return diff;
    	}
     
     
    	public void setDiff(String diff) {
    		this.diff = diff;
    	}
     
     
    	public List<Classementcalcioclub> getClassmentcalcio() {
    		classmentcalcio = u.findallClassmentCalcio();
    		return classmentcalcio;	
    		}
     
     
    	public void setClassmentcalcio(List<Classementcalcioclub> classmentcalcio) {
    		this.classmentcalcio = classmentcalcio;
    	}
     
     
    	public ClassementCalcioClubIdao getU() {
    		return u;
    	}
     
     
    	public void setU(ClassementCalcioClubIdao u) {
    		this.u = u;
    	}
     
     
    	ClassementCalcioClubIdao u=new ClassementCalcioClubIdaoImp() ;

  5. #5
    Membre confirmé Avatar de azassma
    Femme Profil pro
    Ph.D - Computer Vision
    Inscrit en
    Avril 2012
    Messages
    159
    Détails du profil
    Informations personnelles :
    Sexe : Femme
    Localisation : Maroc

    Informations professionnelles :
    Activité : Ph.D - Computer Vision
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2012
    Messages : 159
    Par défaut
    normalement cette méthode doit se trouver dans le managedBean et aussi je en vois pas où est votre entity manager ? On a besoin de voir aussi le sessionBean dans lequel vous fêtes la requête de recherche.

  6. #6
    Membre éclairé
    Homme Profil pro
    Inscrit en
    Mai 2011
    Messages
    790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Tunisie

    Informations forums :
    Inscription : Mai 2011
    Messages : 790
    Par défaut
    au fait c'est bon j'ai deja reglé j'ai mis la partie du datatable juste aprés le body car avant cete dans le centre et ça ne marche pas car je crois qu'il ya deja un réponse qui s'envoie au client

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

Discussions similaires

  1. Réponses: 2
    Dernier message: 06/06/2012, 12h55
  2. Problème integration applet sur une Page JSF
    Par babouba dans le forum Applets
    Réponses: 0
    Dernier message: 29/03/2012, 12h18
  3. Problème de Listeners dans une page jsf
    Par jurin80 dans le forum JSF
    Réponses: 0
    Dernier message: 04/06/2009, 17h10
  4. Réponses: 12
    Dernier message: 03/03/2008, 10h39
  5. Réponses: 1
    Dernier message: 18/06/2007, 17h38

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