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 d'affichage d'un <t:tree2> sous IE


Sujet :

JSF Java

  1. #1
    Membre averti
    Homme Profil pro
    Développeur Java
    Inscrit en
    Avril 2011
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2011
    Messages : 18
    Par défaut Problème d'affichage d'un <t:tree2> sous IE
    Salut à tous


    J'ai un petit soucis concernant les "tree"
    sous FireFox cela fonction correctement mais sur IE 7 tout est décalé, je voudrait savoir comment avoir le même arbre sous FFX et sur IE

    voici mon code qui dessine l'arbre
    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
     
    <h:panelGrid width="200">
    	<t:tree2 id="tree" value="#{manageBean.treeData}" var="node" varNodeToggler="t" clientSideToggle="false"
    		binding="#{manageBean.tree}" rendered="true" showLines="true" showRootNode="true" showNav="true" >
    		<f:facet name="person">
    			<h:panelGroup>
    				<f:facet name="expand">
    					<t:graphicImage value="/images/space.gif" rendered="#{t.nodeExpanded}" border="0" />
    				</f:facet>
    				<f:facet name="collapse">
    					<t:graphicImage value="/images/space.gif" rendered="#{!t.nodeExpanded}" border="0" />
    				</f:facet>
    				<t:graphicImage value="/images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0" />
    				<t:graphicImage value="/images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0" />
    					<h:outputText value="#{node.description}" styleClass="nodeFolder" />
    			</h:panelGroup>
    		</f:facet>
    		<f:facet name="foo-folder">
    			<h:panelGroup>
    				<t:graphicImage value="/images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0" />
    				<t:graphicImage value="/images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0" />
    				<h:outputText value="#{node.description}" styleClass="nodeFolder" />
    				<h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}" />
    			</h:panelGroup>
    		</f:facet>
    		<f:facet name="bar-folder">
    			<h:panelGroup>
    				<t:graphicImage value="/images/blue-folder-open.gif" rendered="#{t.nodeExpanded}" border="0" />
    				<t:graphicImage value="/images/blue-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0" />
    				<h:outputText value="#{node.description}" styleClass="nodeFolder" />
    				<h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}" />
    			</h:panelGroup>
    		</f:facet>
    		<f:facet name="document">
    			<h:panelGroup>
    				<h:outputText styleClass="#{t.nodeSelected ? 'documentSelected':'document'}">
    					<t:graphicImage value="/images/document.png" border="0" />
    					<h:outputText value="#{node.description}" />
    				</h:outputText>
    			</h:panelGroup>
    		</f:facet>
    	</t:tree2>
    </h:panelGrid>

    Merci de votre aide

  2. #2
    Membre averti
    Profil pro
    Inscrit en
    Mai 2009
    Messages
    44
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2009
    Messages : 44
    Par défaut
    Pour moi il affiche les noeud root mais impossible de les développer

    et quand je clique sur le noeud root pour le développer, Tomcat 7 génère les erreurs suivantes:
    20 juil. 2011 13:59:22 org.apache.catalina.core.AprLifecycleListener init
    INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.6.0_26\bin;C:\Users\nteieb\Desktop\Tomcat-7.0.16\bin
    20 juil. 2011 13:59:23 org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["http-bio-8080"]
    20 juil. 2011 13:59:23 org.apache.coyote.AbstractProtocol init
    INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
    20 juil. 2011 13:59:23 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 335 ms
    20 juil. 2011 13:59:23 org.apache.catalina.core.StandardService startInternal
    INFO: Démarrage du service Catalina
    20 juil. 2011 13:59:23 org.apache.catalina.core.StandardEngine startInternal
    INFO: Starting Servlet Engine: Apache Tomcat/7.0.16
    20 juil. 2011 13:59:23 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Déploiement du répertoire docs de l'application web
    20 juil. 2011 13:59:23 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Déploiement du répertoire examples de l'application web
    20 juil. 2011 13:59:23 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: contextInitialized()
    20 juil. 2011 13:59:23 org.apache.catalina.core.ApplicationContext log
    INFO: SessionListener: contextInitialized()
    20 juil. 2011 13:59:23 org.apache.catalina.core.ApplicationContext log
    INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@2db19d')
    20 juil. 2011 13:59:23 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Déploiement du répertoire host-manager de l'application web
    20 juil. 2011 13:59:23 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Déploiement du répertoire JSFProject de l'application web
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsf/core is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core_rt is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/core is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/core is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt_rt is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/fmt is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/fmt is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/functions is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/st...rmittedTaglibs is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://jakarta.apache.org/taglibs/standard/scriptfree is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql_rt is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/sql is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/sql is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml_rt is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jstl/xml is already defined
    20 juil. 2011 13:59:24 org.apache.catalina.startup.TaglibUriRule body
    INFO: TLD skipped. URI: http://java.sun.com/jsp/jstl/xml is already defined
    20 juil. 2011 13:59:24 com.sun.faces.config.ConfigureListener contextInitialized
    INFO: Initialisation de Mojarra 2.1.2 (FCS 20110613) pour le contexte «/JSFProject»
    20 juil. 2011 13:59:25 com.sun.faces.spi.InjectionProviderFactory createInstance
    INFO: JSF1048 : Présence d’annotations PostConstruct/PreDestroy Les méthodes de beans gérés marquées avec ces annotations auront des annotations dites traitées.
    20 juil. 2011 13:59:26 com.sun.faces.config.ConfigureListener$WebConfigResourceMonitor$Monitor <init>
    INFO: Monitoring jndi:/localhost/JSFProject/WEB-INF/faces-config.xml for modifications
    20 juil. 2011 13:59:26 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Déploiement du répertoire manager de l'application web
    20 juil. 2011 13:59:26 org.apache.catalina.startup.HostConfig deployDirectory
    INFO: Déploiement du répertoire ROOT de l'application web
    20 juil. 2011 13:59:26 org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["http-bio-8080"]
    20 juil. 2011 13:59:26 org.apache.coyote.AbstractProtocol start
    INFO: Starting ProtocolHandler ["ajp-bio-8009"]
    20 juil. 2011 13:59:26 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3463 ms
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, tree2.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, tree2.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, tree2.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, tree2.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 com.sun.faces.application.resource.ResourceHandlerImpl logMissingResource
    ATTENTION: JSF1064 : Impossible de localiser ou de servir une ressource, graphicImage.xhtml, depuis la bibliothèque org.apache.myfaces.custom.
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.PRETTY_HTML' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.ALLOW_JAVASCRIPT' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.RENDER_CLEAR_JAVASCRIPT_FOR_BUTTON' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.RENDER_HIDDEN_FIELDS_FOR_LINK_PARAMS' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.SAVE_FORM_SUBMIT_LINK_IE' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.READONLY_AS_DISABLED_FOR_SELECTS' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.RENDER_VIEWSTATE_ID' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.STRICT_XHTML_LINKS' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.RENDER_FORM_SUBMIT_SCRIPT_INLINE' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getLongInitParameter
    INFO: No context init parameter 'org.apache.myfaces.CONFIG_REFRESH_PERIOD' found, using default value 2
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.VIEWSTATE_JAVASCRIPT' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
    INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS' found, using default value auto
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.REFRESH_TRANSIENT_BUILD_ON_PSS_PRESERVE_STATE' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.VALIDATE_XML' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.WRAP_SCRIPT_CONTENT_WITH_XML_COMMENT_TAG' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.DETECT_JAVASCRIPT' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.AUTO_SCROLL' found, using default value false
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
    INFO: No context init parameter 'org.apache.myfaces.ADD_RESOURCE_CLASS' found, using default value org.apache.myfaces.renderkit.html.util.DefaultAddResource
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getStringInitParameter
    INFO: No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionResource
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig getBooleanInitParameter
    INFO: No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig createAndInitializeMyFacesConfig
    INFO: Starting up Tomahawk on the RI-JSF-Implementation.
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig createAndInitializeMyFacesConfig
    INFO: Starting up Tomahawk on the MyFaces-JSF-Implementation
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.config.MyfacesConfig createAndInitializeMyFacesConfig
    GRAVE: Both MyFaces and the RI are on your classpath. Please make sure to use only one of the two JSF-implementations.
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t8c
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:33 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t17c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t17c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t8c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t12c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t17c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : t2t17c
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt22
    20 juil. 2011 13:59:34 org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlImageRendererBase encodeEnd
    ATTENTION: ALT attribute is missing for : j_idt32
    20 juil. 2011 13:59:34 com.sun.faces.application.view.FaceletViewHandlingStrategy handleRenderException
    GRAVE: Error Rendering View[/test.xhtml]
    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:2734)
    at org.apache.catalina.connector.Request.getSession(Request.java:2244)
    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899)
    at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:155)
    at com.sun.faces.renderkit.ServerSideStateHelper.writeState(ServerSideStateHelper.java:175)
    at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:122)
    at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:166)
    at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
    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:594)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    20 juil. 2011 13:59:34 com.sun.faces.context.ExceptionHandlerImpl throwIt
    INFO: Exception when handling error trying to reset the response.
    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:2734)
    at org.apache.catalina.connector.Request.getSession(Request.java:2244)
    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899)
    at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:155)
    at com.sun.faces.renderkit.ServerSideStateHelper.writeState(ServerSideStateHelper.java:175)
    at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:122)
    at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:166)
    at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
    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:594)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    20 juil. 2011 13:59:34 com.sun.faces.renderkit.RenderKitUtils renderHtmlErrorPage
    ATTENTION: JSF1087 : Impossible de générer une page d’erreur Facelets car la réponse a déjà été validée.
    20 juil. 2011 13:59:34 com.sun.faces.renderkit.RenderKitUtils renderHtmlErrorPage
    GRAVE: javax.faces.FacesException: Impossible de créer une session après que la réponse ait été envoyée
    javax.faces.FacesException: Impossible de créer une session après que la réponse ait été envoyée
    at com.sun.faces.context.ExceptionHandlerImpl.handle(ExceptionHandlerImpl.java:141)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:119)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:139)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:240)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:164)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:462)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:563)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:403)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:301)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:162)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:140)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
    Caused by: 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:2734)
    at org.apache.catalina.connector.Request.getSession(Request.java:2244)
    at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:899)
    at com.sun.faces.context.ExternalContextImpl.getSession(ExternalContextImpl.java:155)
    at com.sun.faces.renderkit.ServerSideStateHelper.writeState(ServerSideStateHelper.java:175)
    at com.sun.faces.renderkit.ResponseStateManagerImpl.writeState(ResponseStateManagerImpl.java:122)
    at com.sun.faces.application.StateManagerImpl.writeState(StateManagerImpl.java:166)
    at com.sun.faces.application.view.WriteBehindStateWriter.flushToWriter(WriteBehindStateWriter.java:225)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:418)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:131)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.tomahawk.application.ResourceViewHandlerWrapper.renderView(ResourceViewHandlerWrapper.java:93)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:121)
    at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
    ... 19 more
    Je suis dans un projet JSF2
    Les bibliothèques utilisées:
    Tomahawk20-1.1.10
    JSF mojarra-2.1.2-FCS
    Classe TreeBacker.java
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    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
     
    package fr.jsf;
     
    import org.apache.myfaces.custom.tree2.HtmlTree;
    import org.apache.myfaces.custom.tree2.TreeNode;
    import org.apache.myfaces.custom.tree2.TreeNodeBase;
    import org.apache.myfaces.custom.tree2.TreeModel;
    import org.apache.myfaces.custom.tree2.TreeModelBase;
     
    import javax.faces.bean.ManagedBean;
    import javax.faces.context.FacesContext;
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.validator.ValidatorException;
    import javax.faces.event.ActionEvent;
    import java.io.Serializable;
     
    @ManagedBean
    public class TreeBacker implements Serializable{
     
    	 private static final long serialVersionUID = 1L;
    	 private TreeModelBase     _treeModel;
    	 private HtmlTree          _tree;
     
    	 public TreeNode getTreeData()
    	    {
     
    		 TreeNode treeData = new TreeNodeBase("foo-folder", "Inbox", false);
     
    	        // construct a set of fake data (normally your data would come from a database)
     
    	        // populate Frank's portion of the tree
    	        String s="nadhir";
    	        TreeNodeBase personNode = new TreeNodeBase("person", "Frank Foo", false);
    	        personNode.getChildren().add(new TreeNodeBase("foo-folder", "Requires Foo", false));
    	        TreeNodeBase folderNode = new TreeNodeBase("foo-folder", "Requires Foo Reviewer", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", s, true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X050002", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X050003", true));
    	        personNode.getChildren().add(folderNode);
    	        personNode.getChildren().add(new TreeNodeBase("foo-folder", "Requires Foo Recommendation", false));
    	        folderNode = new TreeNodeBase("foo-folder", "Requires Foo Approval", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J050001", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J050002", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J050003", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "E050011", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "R050002", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "C050003", true));
    	        personNode.getChildren().add(folderNode);
    	        folderNode = new TreeNodeBase("bar-folder", "Requires Bar Processing", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X050003", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X050011", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "F050002", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "G050003", true));
    	        personNode.getChildren().add(folderNode);
    	        folderNode = new TreeNodeBase("bar-folder", "Requires Bar Approval", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J050006", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J050007", true));
    	        personNode.getChildren().add(folderNode);
     
    	        treeData.getChildren().add(personNode);
     
    	        // populate Betty's portion of the tree
    	        personNode = new TreeNodeBase("person", "Betty Bar", false);
    	        personNode.getChildren().add(new TreeNodeBase("foo-folder", "Requires Foo", false));
    	        folderNode = new TreeNodeBase("foo-folder", "Requires Foo Reviewer", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X012000", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X013000", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "X014000", true));
    	        personNode.getChildren().add(folderNode);
    	        folderNode = new TreeNodeBase("foo-folder", "Requires Foo Recommendation", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J010026", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J020002", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J030103", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "E030214", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "R020444", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "C010000", true));
    	        personNode.getChildren().add(folderNode);
    	        personNode.getChildren().add(new TreeNodeBase("foo-folder", "Requires Foo Approval", false));
    	        folderNode = new TreeNodeBase("bar-folder", "Requires Bar Processing", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "T052003", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "T020011", true));
    	        personNode.getChildren().add(folderNode);
    	        folderNode = new TreeNodeBase("bar-folder", "Requires Bar Approval", false);
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J010002", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "J030047", true));
    	        folderNode.getChildren().add(new TreeNodeBase("document", "F030112", true));
    	        personNode.getChildren().add(folderNode);
     
    	        treeData.getChildren().add(personNode);
     
    	        return treeData;
    	    }
    	 public TreeModel getExpandedTreeData()
    	    {
    	        return new TreeModelBase(getTreeData());
    	    }
     
    	    public void setTree(HtmlTree tree)
    	    {
    	        _tree = tree;
    	    }
     
    	    public HtmlTree getTree()
    	    {
    	        return _tree;
    	    }
     
    	    public String expandAll()
    	    {
    	        _tree.expandAll();
    	        return null;
    	    }
     
    	    private String _nodePath;
     
    	    public void setNodePath(String nodePath)
    	    {
    	        _nodePath = nodePath;
    	    }
     
    	    public String getNodePath()
    	    {
    	        return _nodePath;
    	    }
     
    	    public void checkPath(FacesContext context, UIComponent component, java.lang.Object value)
    	    {
    	        // make sure path is valid (leaves cannot be expanded or renderer will complain)
    	        FacesMessage message = null;
     
    	        String[] path = _tree.getPathInformation(value.toString());
     
    	        for (int i = 0; i < path.length; i++)
    	        {
    	            String nodeId = path[i];
    	            try
    	            {
    	                _tree.setNodeId(nodeId);
    	            }
    	            catch (Exception e)
    	            {
    	                throw new ValidatorException(message, e);
    	            }
     
    	            if (_tree.getNode().isLeaf())
    	            {
    	                message = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Invalid node path (cannot expand a leaf): "
    	                        + nodeId, "Invalid node path (cannot expand a leaf): " + nodeId);
    	                throw new ValidatorException(message);
    	            }
    	        }
    	    }
     
    	    public void expandPath(ActionEvent event)
    	    {
    	        _tree.expandPath(_tree.getPathInformation(_nodePath));
    	    }
    }
    Fichier arbre.xhtml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    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
     
    <?xml version="1.0" encoding="UTF-8"?>
    <!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:t="http://myfaces.apache.org/tomahawk"
    	xmlns:p="http://java.sun.com/jsp/jstl/core">
    	<head>
    	</head>
    	<body>
        <h:form id="foo">
     
        <t:tree2 id="clientTree" value="#{treeBacker.treeData}" var="node" varNodeToggler="t">
            <f:facet name="person">
                <h:panelGroup>
                    <f:facet name="expand">
                        <t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                    </f:facet>
                    <f:facet name="collapse">
                        <t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                    </f:facet>
                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="foo-folder">
                <h:panelGroup>
                    <f:facet name="expand">
                        <t:graphicImage value="images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                    </f:facet>
                    <f:facet name="collapse">
                        <t:graphicImage value="images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                    </f:facet>
                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="bar-folder">
                <h:panelGroup>
                    <f:facet name="expand">
                        <t:graphicImage value="images/blue-folder-open.gif" rendered="#{t.nodeExpanded}" border="0"/>
                    </f:facet>
                    <f:facet name="collapse">
                        <t:graphicImage value="images/blue-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                    </f:facet>
                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="document">
                <h:panelGroup>
                    <h:commandLink immediate="true" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}" actionListener="#{t.setNodeSelected}">
                        <t:graphicImage value="images/document.png" border="0"/>
                        <h:outputText value="#{node.description}"/>
                        <f:param name="docNum" value="#{node.identifier}"/>
                    </h:commandLink>
                </h:panelGroup>
            </f:facet>
        </t:tree2>
     
        <br/>
        <span style="font-family:verdana">
            <b>Tree2 w/server-side toggle</b><br/>
        </span>
        <br/>
     
        <!-- Expand/Collapse Handled By Server -->
        <t:tree2 id="serverTree" value="#{treeBacker.treeData}" var="node" varNodeToggler="t" clientSideToggle="false">
            <f:facet name="person">
                <h:panelGroup>
                    <t:graphicImage value="/images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                    <t:graphicImage value="/images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="foo-folder">
                <h:panelGroup>
                    <t:graphicImage value="/images/yellow-folder-open.png" rendered="#{t.nodeExpanded}" border="0"/>
                    <t:graphicImage value="/images/yellow-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="bar-folder">
                <h:panelGroup>
                    <t:graphicImage value="/images/blue-folder-open.gif" rendered="#{t.nodeExpanded}" border="0"/>
                    <t:graphicImage value="/images/blue-folder-closed.png" rendered="#{!t.nodeExpanded}" border="0"/>
                    <h:outputText value="#{node.description}" styleClass="nodeFolder"/>
                    <h:outputText value=" (#{node.childCount})" styleClass="childCount" rendered="#{!empty node.children}"/>
                </h:panelGroup>
            </f:facet>
            <f:facet name="document">
                <h:panelGroup>
                    <h:commandLink immediate="true" styleClass="#{t.nodeSelected ? 'documentSelected':'document'}" actionListener="#{t.setNodeSelected}">
                        <t:graphicImage value="/images/document.png" border="0"/>
                        <h:outputText value="#{node.description}"/>
                        <f:param name="docNum" value="#{node.identifier}"/>
                    </h:commandLink>
                </h:panelGroup>
            </f:facet>
        </t:tree2>
    </h:form>
    	</body>
    </html>
    Fichier index.jsp
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
     
    <% response.sendRedirect("arbre.jsf"); %>
    Fichier web.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
     
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app xmlns="http://java.sun.com/xml/ns/j2ee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" 
    version="2.4">
      <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
      </servlet>
      <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
      </servlet-mapping>
      <context-param>
        <param-name>javax.faces.PROJECT_STAGE</param-name>
        <param-value>Development</param-value>
     </context-param>
      <welcome-file-list>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>index.html</welcome-file>
      </welcome-file-list>
    </web-app>
    Fichier faces-config.xml
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
     
    <?xml version="1.0" encoding="utf-8"?>
    <faces-config xmlns="http://java.sun.com/xml/ns/javaee" 
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd" 
                  version="2.0">
    </faces-config>
    pouvez vous m'indiquer la source de ces erreurs ??
    merci d'avance
    Images attachées Images attachées  

  3. #3
    Membre averti
    Profil pro
    Inscrit en
    Mai 2009
    Messages
    44
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Mai 2009
    Messages : 44
    Par défaut
    une solution ? SVP

  4. #4
    Membre expérimenté Avatar de Shinzul
    Homme Profil pro
    Lecteur assidu de code source
    Inscrit en
    Janvier 2008
    Messages
    174
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Lecteur assidu de code source
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2008
    Messages : 174
    Par défaut
    Je connais pas le composant que tu utilise mais a vu de pif de l'erreur que ca produit je te dirai d'essayer de mettre ton managed bean en scope page ou session.

    L'erreur me fait penser a un problème de cycle de vie des données de ton composant.

  5. #5
    Membre averti
    Homme Profil pro
    Développeur Java
    Inscrit en
    Avril 2011
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2011
    Messages : 18
    Par défaut
    Et quand est-il pour la premiere question ? plus haut Merci

  6. #6
    Membre expérimenté Avatar de Shinzul
    Homme Profil pro
    Lecteur assidu de code source
    Inscrit en
    Janvier 2008
    Messages
    174
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Hauts de Seine (Île de France)

    Informations professionnelles :
    Activité : Lecteur assidu de code source
    Secteur : Finance

    Informations forums :
    Inscription : Janvier 2008
    Messages : 174
    Par défaut
    Pour la question de style la par contre je ne connais pas du tout le composant donc je ne peut pas t'aiguiller sur les modifications a faire pour résoudre ce problème la.

    Je ne peut que te conseiller d'attendre qu'un utilisateur connaissant ce composant vienne donner une solution.

  7. #7
    Membre averti
    Homme Profil pro
    Développeur Java
    Inscrit en
    Avril 2011
    Messages
    18
    Détails du profil
    Informations personnelles :
    Sexe : Homme

    Informations professionnelles :
    Activité : Développeur Java
    Secteur : High Tech - Multimédia et Internet

    Informations forums :
    Inscription : Avril 2011
    Messages : 18
    Par défaut
    C'est bon j'ai eu la solution merci Shinzul

    j'ai joué un peu avec le PADDING-LEFT dans le CSS et tout est entré dans l'ordre


    Maintenant je sais pas si je dois mettre cette discution a resolue vue que nadhir84 avait une autre question concernant JSF

Discussions similaires

  1. Réponses: 4
    Dernier message: 03/08/2012, 13h10
  2. Réponses: 3
    Dernier message: 25/06/2010, 07h39
  3. Réponses: 4
    Dernier message: 22/10/2009, 10h12
  4. Réponses: 1
    Dernier message: 06/03/2003, 11h57
  5. probléme d'affichage d'une fiche
    Par sb dans le forum Composants VCL
    Réponses: 7
    Dernier message: 29/08/2002, 09h43

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