Erreur "CDATA may not nest"
Bonjour à tous,
Je rencontre un problème avec mon application. Impossible pour moi d'accéder de la page index.xhtml à la page indexCA.xhtml, voici les logs :
Code:
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
|
févr. 20, 2013 2:44:11 PM org.apache.catalina.core.StandardWrapperValve invoke
Grave: "Servlet.service()" pour la servlet Faces Servlet a généré une exception
java.lang.IllegalStateException: CDATA tags may not nest
at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.startCDATA(HtmlResponseWriter.java:630)
at javax.faces.context.ResponseWriterWrapper.startCDATA(ResponseWriterWrapper.java:172)
at javax.faces.context.PartialResponseWriter.startError(PartialResponseWriter.java:342)
at org.primefaces.context.PrimePartialResponseWriter.startError(PrimePartialResponseWriter.java:155)
at com.sun.faces.context.AjaxExceptionHandlerImpl.handlePartialResponseError(AjaxExceptionHandlerImpl.java:200)
at com.sun.faces.context.AjaxExceptionHandlerImpl.handle(AjaxExceptionHandlerImpl.java:123)
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:410)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.AprEndpoint$SocketProcessor.run(AprEndpoint.java:1852)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722) |
Voici la page index.xhtml :
Code:
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
|
<?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:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:pou="http://primefaces.org/ui">
<h:body onload="preloader();">
<ui:composition template="commonAccueil.xhtml">
<ui:define name="menu">
<h:form>
<div class="presentation">
<h:commandLink action="presentation">
<pou:commandButton value="" title="Présentation de l'application" styleClass="boutonPresentation"/>
</h:commandLink>
</div>
<div class="espaceTravail">
<pou:commandButton id="dynaButton" value="" title="Espace réservé à la conduite d'activité" styleClass="boutonCA"/>
<pou:tieredMenu overlay="true" trigger="dynaButton" my="left top" at="left bottom" styleClass="tieredMenu">
<pou:menuitem value="Recherche par produit" action="indexCA"/>
<pou:menuitem value="Recherche par nom" action="indexCANom"/>
<pou:menuitem value="Recherche par localisation" action="indexCALocalisation"/>
<pou:menuitem value="Recherche par responsable" action="indexCAResponsable"/>
<pou:menuitem value="Recherche intuitive" action="indexCAIntuitif"/>
</pou:tieredMenu>
</div>
<div class="espaceTravail1">
<h:commandLink action="indexMembre">
<pou:commandButton value="" title="Espace membres" styleClass="boutonMembre"/>
</h:commandLink>
</div>
<div class="administration">
<h:commandLink action="indexAdministration">
<pou:commandButton value="" title="Espace d'administration" styleClass="boutonAdministration"/>
</h:commandLink>
</div>
<div class="gpec">
<h:commandLink action="indexGPEC">
<pou:commandButton value="" title="Espace GPEC" styleClass="boutonGpec"/>
</h:commandLink>
</div>
<div class="aide">
<h:commandLink action="aide">
<pou:commandButton value="" title="Aide et contacts" styleClass="boutonAide"/>
</h:commandLink>
</div>
</h:form>
</ui:define>
<ui:define name="content">
<h:form>
<div id="imageAccueil">
<img class="screenAccueil" src="image/accueil1.png"/>
</div>
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html> |
Voici la page indexCA.xhtml :
Code:
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
|
<?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:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:pou="http://primefaces.org/ui"
xmlns:f="http://java.sun.com/jsf/core" >
<h:body>
<ui:composition template="commonCA_Layout.xhtml">
<ui:define name="content">
<h:form>
<!-- <div id="formulaire">
<pou:growl id="rechercheGrowl" showDetail="true" sticky="true"/>
<pou:panel header="Chercher une compétence ERS" styleClass="panel">
<h:outputText value="1. Sélectionnez la spécialité souhaitée" styleClass="text"/>
<pou:panelGrid id="panelGrid" columns="2" styleClass="panelGrid" >
<f:facet name="header">
Sélection du produit
</f:facet>
<h:outputText value="Famille"/>
<pou:selectOneMenu id="choixFamille" value="#{famille.libelle}" styleClass="selectOneMenu">
<f:selectItems value="#{indexCAController.nom_famille}"/>
<pou:ajax id="ajax1" listener="#{indexCAController.codeFamille()}" rendered="choixMarque" update="choixMarque" onstart="enCours.show()" oncomplete="enCours.hide()"/>
</pou:selectOneMenu>
<h:outputText value="Marque"/>
<pou:selectOneMenu id="choixMarque" value="#{produit.libelle}" styleClass="selectOneMenu">
<f:selectItems value="#{indexCAController.nom_produit}"/>
<pou:ajax id="ajax2" listener="#{indexCAController.codeMarque()}" rendered="choixSpecialite" update="choixSpecialite" onstart="enCours.show()" oncomplete="enCours.hide()"/>
</pou:selectOneMenu>
<h:outputText value="Produit"/>
<pou:selectOneMenu id="choixSpecialite" value="#{technique.nomTechnique}" styleClass="selectOneMenu">
<f:selectItems value="#{indexCAController.nom_technique}" />
</pou:selectOneMenu>
</pou:panelGrid>
<pou:commandLink id="intuitif" action="indexCAIntuitif">
<h:outputText value="Je ne trouve pas mon produit ?"/>
</pou:commandLink>
<h:outputText value="2. Sélectionnez le(s) niveaux recherché(s)" styleClass="text"/>
<pou:selectManyCheckbox id="choixCompBox" value="#{competence.selectedCompetence}" styleClass="choixCompBox" layout="pageDirection">
<f:selectItem itemLabel="0: Ne connait pas" itemValue="0"/>
<f:selectItem itemLabel="1: Base non autonome" itemValue="1"/>
<f:selectItem itemLabel="2: Autonome" itemValue="2"/>
<f:selectItem itemLabel="3: Connaissances avancées" itemValue="3"/>
<f:selectItem itemLabel="4: Expert" itemValue="4"/>
</pou:selectManyCheckbox>
<h:outputText value="3. Validez votre recherche" styleClass="text"/>
<div class="commandButton">
<pou:commandButton value="Localiser"/>
<pou:commandButton value="Afficher" actionListener="#{indexCAController.rechercheTechnicien()}"/>
<pou:commandButton value="Nouvelle recherche" actionListener="#{indexCAController.reset()}" update="panelGrid" process="@this"/>
</div>
</pou:panel>
<pou:confirmDialog id="enCours" header="Recherche en cours" message="Patientez..." severity="alert" widgetVar="enCours"/>
<div id="ville">
<pou:panel header="Techniciens par ville" styleClass="villePanel" toggleable="true">
<div class="villeID">
<h:outputText id="mendeLabel" value="Mende : " styleClass="villeLabel"/>
<h:outputText id="mendeLabelResult" value="#{RechercheTechnicienControleur.mendeCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="alesLabel" value="Ales : " styleClass="villeLabel"/>
<h:outputText id="alesLabelResult" value="#{RechercheTechnicienControleur.alesCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="nimesLabel" value="Nîmes : " styleClass="villeLabel"/>
<h:outputText id="nimesLabelResult" value="#{RechercheTechnicienControleur.nimesCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="montpellierLabel" value="Montpellier : " styleClass="villeLabel"/>
<h:outputText id="montepllierLabelResult" value="#{RechercheTechnicienControleur.montpellierCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="beziersLabel" value="Béziers : " styleClass="villeLabel"/>
<h:outputText id="beziersLabelResult" value="#{RechercheTechnicienControleur.bezierCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="narbonneLabel" value="Narbonne : " styleClass="villeLabel"/>
<h:outputText id="narbonneLabelResult" value="#{RechercheTechnicienControleur.narbonneCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="carcassonneLabel" value="Carcassonne : " styleClass="villeLabel"/>
<h:outputText id="carcassonneLabelResult" value="#{RechercheTechnicienControleur.carcassonneCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="perpignanLabel" value="Perpignan : " styleClass="villeLabel"/>
<h:outputText id="perpignanLabelResult" value="#{RechercheTechnicienControleur.perpignanCPT}" styleClass="resultVilleLabel"/>
</div>
<div class="villeID">
<h:outputText id="totalLabel" value="Total : " styleClass="villeLabel"/>
<h:outputText id="totalLabelResult" value="#{RechercheTechnicienControleur.totalCPT}" styleClass="resultVilleLabel"/>
</div>
</pou:panel>
</div>
</div>
<div id="resultat">
<pou:panel header="Localisation des résultats" styleClass="resultatPanel">
<div id="localisation">
<pou:gmap id="technicienMap" center="43.59929,3.599396" zoom="7" type="HYBRID" styleClass="gMpap" model="#{RechercheTechnicienControleur.gmapModel}" />
</div>
</pou:panel>
</div>-->
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html> |
J'ai commenté l'ensemble du contenu de la page indexCA.xhtml pour essayer d'isoler le problème mais rien y fait.
Avez-vous une idée ?
Merci :)