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 :

Création d'un custom menu


Sujet :

JSF Java

  1. #21
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    d'une part pour apprendre et surtout pour utiliser mon propre menu

    J'ai essayé l'exemple qu'il m' a fourni

    erreur
    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
     
    18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R java.util.MissingResourceException: Can't find bundle for base name oracle.srdemo.view.resources.UIResources, locale fr_FR
    	at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:825)
    	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled Code))
    	at java.util.ResourceBundle.getBundle(ResourceBundle.java:682)
    	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:144)
    	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:130)
    	at com.sun.faces.util.Util.getExceptionMessageString(Util.java:428)
    	at com.sun.faces.util.Util.getExceptionMessageString(Util.java:442)
    	at com.sun.faces.util.Util.doAssert(Util.java:1321)
    	at com.sun.faces.util.Util.getResponseStateManager(Util.java:1111)
    	at com.sun.faces.application.StateManagerImpl.restoreTreeStructure(StateManagerImpl.java:383)
    	at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:241)
    	at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:302)
    	at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
    	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
    	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334)
    	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:520)
    	at com.ibm._jsp._index._jspService(_index.java:65)
    	at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
    	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
    	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
    	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
     
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:825)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled Code))
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at java.util.ResourceBundle.getBundle(ResourceBundle.java:682)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:144)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:130)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.util.Util.getExceptionMessageString(Util.java:428)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.util.Util.getExceptionMessageString(Util.java:442)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.util.Util.doAssert(Util.java:1321)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.util.Util.getResponseStateManager(Util.java:1111)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.application.StateManagerImpl.restoreTreeStructure(StateManagerImpl.java:383)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:241)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:302)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:520)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm._jsp._index._jspService(_index.java:65)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    [18/09/07 14:28:45:403 CEST] 00000026 SystemErr     R 	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    [18/09/07 14:28:45:419 CEST] 00000026 SystemErr     R 	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))

  2. #22
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    oublions ceci,par rappot au premier exemple que tu m'as fourni

    Que veut dire exactement encodebegin et encodeEnd?

  3. #23
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    encodeBegin et encodeEnd sont les 2 méthodes exécutées par JSF lorsqu'il demande à un composant de créer son rendu (le code HTML par exemple).

    encodeBegin est appelé avant de créer le rendu des composants enfants, encodeEnd est appelé une fois que les composants enfants ont exécuté leur rendu.
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  4. #24
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    ok,dur dur lol

    J'ai pris l'exemple que tu m'avais fillé,celui du bouton arrondi que j'ai essayé de bidouiller pour faire un menu,mais il ne connait pas la balise

    Tu crois que ca peut vennir d'ou?

  5. #25
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Citation Envoyé par stephane92400 Voir le message
    ok,dur dur lol
    Mais non, pas si dur que ça. Une fois que tu as compris le principe, tu crées des composants super rapidement

    Citation Envoyé par stephane92400 Voir le message
    mais il ne connait pas la balise
    Tu peux préciser ? Quelle balise n'est pas trouvée ? Tu as un message d'erreur ?
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  6. #26
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    la balise est reconnue mais j'ai ce message d'erreur qui s'affiche

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    Message d''erreur :JSPG0227E: Exception interceptée lors de la conversion de /index.jsp:  /index.jsp(7,1) --> JSPG0009E: Impossible de charger la classe gestionnaire de balises composant.MyPanelRenderer
     
    Racine du contexte :com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception interceptée lors de la conversion de /index.jsp:  /index.jsp(7,1) --> JSPG0009E: Impossible de charger la classe gestionnaire de balises composant.MyPanelRenderer	at com.ibm.ws.jsp.translator.visitor.validator.ValidateVisitor.visitCustomTagStart(ValidateVisitor.java:400)	at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:253)	at com.ibm.ws.jsp.translator.visitor.JspVisitor.processChildren(JspVisitor.java:286)	at com.ibm.ws.jsp.translator.visitor.JspVisitor.processJspElement(JspVisitor.java:125)	at com.ibm.ws.jsp.translator.visitor.JspVisitor.visit(JspVisitor.java:110)	at com.ibm.ws.jsp.translator.JspTranslator.processVisitors(JspTranslator.java:121)	at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJsp(JspTranslatorUtil.java:169)	at com.ibm.ws.jsp.translator.utils.JspTranslatorUtil.translateJspAndCompile(JspTranslatorUtil.java:82)	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.translateJsp(JSPExtensionServletWrapper.java:386)	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper._checkForTranslation(JSPExtensionServletWrapper.java:355)	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.checkForTranslation(JSPExtensionServletWrapper.java:263)	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:150)	at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:254)	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334)	at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)	at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:254)	at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)	at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89)	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)


    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
    163
    164
    165
    166
    167
     
    package component;
     
    import java.io.IOException;
    import java.io.Writer;
    import java.util.List;
     
    import org.apache.commons.lang.StringUtils;
    import org.dom4j.Document;
    import org.dom4j.Element;
     
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import javax.faces.context.ResponseWriter;
     
    import com.ibm.ws.i18n.context.util.Dom;
    import com.sun.faces.renderkit.html_basic.GroupRenderer;
     
    public class MyPanelRenderer extends GroupRenderer {
     
    	public void encodebegin(FacesContext context, UIComponent component)
    			throws IOException {
    		Document dom = (Document) getServletContext().getAttribute("navigation");
    		String[] idx = StringUtils.split((String) "1.x", ".");
     
     
    		ResponseWriter writer = context.getResponseWriter();
    		String panel = getPanelType(component);
    		writer.startElement("table", null);
    		writer.writeAttribute("cellSpacing", "0", "table");
    		writer.writeAttribute("cellpadding", "0", "table");
    		writer.startElement("tr", null);
    		writer.startElement("td", null);
    		writer.startElement("img", null);
    		writer.writeAttribute("src", "../nav/ressources/trans.gif", "img");
    		writer.writeAttribute("width", "245", "img");
    		writer.endElement("img");
    		writer.endElement("td");
    		writer.startElement("td", null);
    		writer.writeAttribute("style", "white:100%", "td");
    		writer.endElement("td");
    		writer.endElement("tr");
    		writer.startElement("tr", null);
    		writer.startElement("tr", null);
    		writer.writeAttribute("style", "padding-left: 15px", "td");
    		writer.startElement("img", null);
    		writer.writeAttribute("src", "/static/img/client.gif", "img");
    		writer.writeAttribute("width", "245", "img");
    		writer.endElement("img");
    		writer.endElement("td");
    		writer.startElement("td", null);
    		writer.writeAttribute("style", "padding-right: 15px", "td");
    		writer.startElement("div", null);
    		writer.writeAttribute("style", "padding-bottom:10px", null);
    		writer.writeText("1", "div");
    		writer.startElement("a", null);
    		writer.writeAttribute("href", "../index.jsp", "a");
    		writer.writeText("Se deconnecter", "a");
    		writer.endElement("a");
    		writer.endElement("div");
    		writer.startElement("div", null);
    		writer.writeAttribute("id", "Level1Container", "div");
    		writer.startElement("table", null);
    		writer.writeAttribute("cellSpacing", "0", "table");
    		writer.writeAttribute("cellpadding", "0", "table");
    		writer.startElement("tbody", null);
    		writer.startElement("tr", null);
    		writer.startElement("td", null);
    		writer.startElement("img", null);
    		writer.writeAttribute("src", "../nav/ressources/trans.gif", "img");
    		writer.writeAttribute("height", "30", "img");
    		writer.endElement("img");
    		writer.endElement("td");
    		writer.startElement("td", null);
    		writer.endElement("div");
    		writer.startElement("div", null);
    		writer.writeAttribute("id", "level1Title", "div");
    		writer.startElement("span", null);
    		writer.writeText("ELeclerc", "span");
    		writer.endElement("span");
    		writer.endElement("div");
    		writer.endElement("td");
    		writer.endElement("tr");
    		writer.startElement("tr", null);
    		writer.startElement("td", null);
    		writer.startElement("table", null);
    		writer.startElement("tbody", null);
    		writer.startElement("tr", null);
    		List level1 = dom.selectNodes("//profil[@id=1]");
    		for (int i = 0; i < level1.size(); i++) {
    			Element tab = (Element) level1.get(i);
    			writer.startElement("td", null);
    			writer.writeAttribute("class",
    					(tab.attributeValue("id").equals(idx[0]) ? "tabOn" : "tabOff"), "td");
    			writer.startElement("a", null);
    			writer.writeAttribute("href", "../nav/redirect.jsp?nav_idx="
    					+ tab.attributeValue("id") + ".0" + tab.attributeValue("libelle"),
    					"td");
    			writer.endElement("a");
    			writer.endElement("td");
    		}
    		writer.endElement("tr");
    		writer.endElement("tbody");
    		writer.endElement("table");
    		writer.endElement("td");
    		writer.endElement("tr");
    		writer.endElement("tbody");
    		writer.endElement("table");
    		writer.endElement("div");
    		writer.endElement("td");
    		writer.endElement("tr");
    		writer.startElement("tr", null);
    		writer.startElement("td", null);
    		writer.writeAttribute("colspan", "2", "td");
    		writer.startElement("div", null);
    		writer.writeAttribute("id", "Level2Container", "div");
    		List level2 = dom.selectNodes("//profil{@id=1]/tab[@idx[0]]/link");
    		for (int i = 0; i < level2.size(); i++) {
    			Element section = (Element) level2.get(i);
    			if (section.attributeValue("disabled") == null) {
    				writer.startElement("a", null);
    				writer.writeAttribute("href", "../nav/redirect.jsp?nav_idx=" + idx[0]
    						+ ".", "a");
    				writer.endElement("a");
    			} else {
    				writer.startElement("span", null);
    				writer.startElement("font", null);
    				writer.writeAttribute("color", "#dddddd", "font");
    				writer.endElement("font");
    				writer.endElement("span");
    				if (i < level2.size() - 1) {
    					writer.startElement("span", null);
    					writer.writeAttribute("class", "spacer", "span");
    					writer.startElement("$nbsp", null);
    					writer.endElement("$nbsp");
    					writer.startElement("$nbsp", null);
    					writer.endElement("$nbsp");
    					writer.endElement("span");
    				}
    			}
    		}		
    		writer.endElement("div");
    		writer.endElement("td");
    		writer.endElement("tr");
    		writer.endElement("tbody");
    		writer.endElement("table");
    		writer.endElement("div");
    		component.getAttributes().put("styleClass", panel);
    		super.encodeBegin(context, component);
    		super.encodeEnd(context, component);
    	}
     
    	public void encodeEnd(FacesContext context, UIComponent component)
    			throws IOException {
    		super.encodeEnd(context, component);
    	}
     
    	public String getPanelType(UIComponent component) {
    		String type = (String) component.getAttributes().get("panelType");
    		if ((type != null)
    				&& (type.equalsIgnoreCase("std") || type.equalsIgnoreCase("default"))) {
    			return type.toLowerCase();
    		}
    		return null;
    	}
     
    }
    Document dom = (Document) getServletContext().getAttribute("navigation");

    je suppose que ca vient de la,car getServletContext n'est pas reconnue.J'aimerais pouvoir lire dans un fichier xml....

  7. #27
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    je n'arrive pas à faire marcher le menu sur ce site http://download-uk.oracle.com/docs/h...complex002.htm


    Pourtant j'ai fais que du copier coller

    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
     
    [19/09/07 09:57:32:118 CEST] 00000046 SystemErr     R java.util.MissingResourceException: Can't find bundle for base name oracle.srdemo.view.resources.UIResources, locale fr_FR
    	at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:825)
    	at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java(Compiled Code))
    	at java.util.ResourceBundle.getBundle(ResourceBundle.java:682)
    	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:144)
    	at com.sun.faces.util.MessageFactory.getMessage(MessageFactory.java:130)
    	at com.sun.faces.util.Util.getExceptionMessageString(Util.java:428)
    	at com.sun.faces.util.Util.getExceptionMessageString(Util.java:442)
    	at com.sun.faces.util.Util.doAssert(Util.java:1321)
    	at com.sun.faces.util.Util.getResponseStateManager(Util.java:1111)
    	at com.sun.faces.application.StateManagerImpl.restoreTreeStructure(StateManagerImpl.java:383)
    	at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:241)
    	at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:302)
    	at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
    	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
    	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334)
    	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:520)
    	at com.ibm._jsp._index._jspService(_index.java:65)
    	at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
    	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
    	at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:254)
    	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    J'aimerais m'appuyer sur ce menu si ca marche pour essayer d'une part de comprendre et de l'arranger.....

  8. #28
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Le problème vient du code 19-8 de ta page. Tu lui indiques un resourceBundle qu'il est incapable de trouver.
    Soit tu enlèves tout le code correspondant aux resources bundle, soit tu t'arranges pour qu'il le trouve (ou bien tu trouves le fichier dont il a besoin, ou bien tu le crées avec des valeurs bidons)...
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  9. #29
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    effictivement,j'ai enlevé cette partie,je n'ai plus cette erreur mais une autre

    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
     
    19/09/07 10:16:33:447 CEST] 0000003f WebApp        E   SRVE0026E: [Erreur de servlet]-[/index.jsp]: javax.faces.FacesException: Assertion Failed
    	at com.sun.faces.util.Util.doAssert(Util.java:1321)
    	at com.sun.faces.util.Util.getResponseStateManager(Util.java:1111)
    	at com.sun.faces.application.StateManagerImpl.restoreTreeStructure(StateManagerImpl.java:383)
    	at com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:241)
    	at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:302)
    	at com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:158)
    	at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
    	at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:91)
    	at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334)
    	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:520)
    	at com.ibm._jsp._index._jspService(_index.java:65)
    	at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java(Compiled Code))
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java(Compiled Code))
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java(Compiled Code))
    	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java(Inlined Compiled Code))
    	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java(Compiled Code))
    	at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:254)
    	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
    	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
    Pour info,il ne connait pas la balise
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <%@ taglib prefix="afh"	uri="http://xmlns.oracle.com/adf/faces/EA13/html"%>
     
    <af:panelPage title="#{res['srmanage.pageTitle']}">

  10. #30
    Rédacteur
    Avatar de romaintaz
    Homme Profil pro
    Java craftsman
    Inscrit en
    Juillet 2005
    Messages
    3 790
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 47
    Localisation : France, Yvelines (Île de France)

    Informations professionnelles :
    Activité : Java craftsman
    Secteur : Finance

    Informations forums :
    Inscription : Juillet 2005
    Messages : 3 790
    Par défaut
    Citation Envoyé par stephane92400 Voir le message
    Pour info,il ne connait pas la balise
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
     
    <%@ taglib prefix="afh"    uri="http://xmlns.oracle.com/adf/faces/EA13/html"%>
     
    <af:panelPage title="#{res['srmanage.pageTitle']}">

    Tu définis un taglib avec un préfixe afh et tu utilises un composant avec un préfixe af. A mon avis, il doit y avoir une confusion, non ?
    Nous sommes tous semblables, alors acceptons nos différences !
    --------------------------------------------------------------
    Liens : Blog | Page DVP | Twitter
    Articles : Hudson | Sonar | Outils de builds Java Maven 3 | Play! 1 | TeamCity| CitConf 2009
    Critiques : Apache Maven

  11. #31
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    no,me suis trombé dans le copier coller

  12. #32
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    ca commence à me souler,j'arrive pas à rectifier mon erreur

    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
     
    [19/09/07 15:29:20:082 CEST] 00000021 WebApp        E   SRVE0026E: [Erreur de servlet]-[/index.jsp]: java.lang.NullPointerException
    	at javax.faces.webapp.FacesServlet.init(FacesServlet.java:144)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:310)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:560)
    	at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:334)
    	at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:520)
    	at com.ibm._jsp._index._jspService(_index.java:63)
    	at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:91)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1521)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:113)
    	at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:82)
    	at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:759)
    	at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:121)
    	at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:204)
    	at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3071)
    	at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:236)
    	at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:210)
    	at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1958)
    	at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:89)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
    	at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
    	at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
    	at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
    	at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)

  13. #33
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    une petite question sur ce code
    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
     
    <%@taglib prefix="af" uri="http://xmlns.oracle.com/adf/faces/EA13" %>
     
     
     
     
    <af:panelPage title="toto">
    	<f:facet name="menu1">
    		<af:menuTabs var="menuTab" value="#{menuModel.model}">
    			<f:facet name="nodeStamp">
    				<af:commandMenuItem text="#{menuTab.label}"
    					action="#{menuTab.getOutcome}"
    					rendered="#{menuTab.shown and menuTab.type=='default'}"
    					disabled="#{menuTab.readOnly}" />
    			</f:facet>
    		</af:menuTabs>
    	</f:facet>
    	<f:facet name="menu2">
    		<af:menuBar var="menuSubTab" startDepth="1" value="#{menuModel.model}">
    			<f:facet name="nodeStamp">
    				<af:commandMenuItem text="#{menuSubTab.label}"
    					action="#{menuSubTab.getOutcome}"
    					rendered="#{menuSubTab.shown and menuSubTab.type=='default'}"
    					disabled="#{menuSubTab.readOnly}" />
    			</f:facet>
    		</af:menuBar> 
    	</f:facet>
    	<f:facet name="menuGlobal">
    		<af:menuButtons var="menuOption" value="#{menuModel.model}">
    			<f:facet name="nodeStamp">
    				<af:commandMenuItem text="#{menuOption.label}"
    					action="#{menuOption.getOutcome}"
    					rendered="#{menuOption.type=='global'}" icon="#{menuOption.icon}" />
    			</f:facet>
    		</af:menuButtons>
    	</f:facet>
    </af:panelPage>
    Etant donné que je n'ai mis aucun nom de lien,de sous lien,surement que ca l'erreur.T'avoue que je n'ai pas trop bien compris le faces-config.xml,je ne vois pas ou mettre ces valeurs

  14. #34
    Membre confirmé
    Profil pro
    Inscrit en
    Avril 2006
    Messages
    197
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Avril 2006
    Messages : 197
    Par défaut
    toujours le meme probleme,si qu'elle qu'un aurait une idée....

Discussions similaires

  1. Création d'un custom control
    Par bla69136 dans le forum MFC
    Réponses: 5
    Dernier message: 07/03/2008, 15h30
  2. Création dynamique de VB.Menu
    Par ppphil dans le forum VB 6 et antérieur
    Réponses: 5
    Dernier message: 27/07/2007, 11h04
  3. Réponses: 1
    Dernier message: 12/11/2006, 01h01
  4. [JSF] Création de validateurs custom
    Par mymyma dans le forum JSF
    Réponses: 3
    Dernier message: 28/06/2006, 15h32
  5. [MFC] Création d'un 'custom control'
    Par r0d dans le forum MFC
    Réponses: 5
    Dernier message: 03/02/2006, 10h23

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