eclipse - a slippery JSF syntax error -


if try display jsf 2 page on tomcat 7.0.34 with:

  • jsf-api/impl 2.1.7
  • el-api 2.5
  • jstl 1.2

like one:

<?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:f="http://java.sun.com/jsf/core"   xmlns:fn="http://java.sun.com/jsp/jstl/functions"   xmlns:ui="http://java.sun.com/jsf/facelets"   xmlns:p="http://primefaces.org/ui"   xmlns:cis="http://java.sun.com/jsf/composite/comp">  <h:head>   <title>prova errore di sintassi</title> </h:head> <h:body>   <f:view>     <ui:include src="/web-inf/include/menubar.xhtml" />     <h:form>       <p:ajaxstatus style="width: 32px;height: 32px;" />       <p:growl />       <p:panel id="pannello">     <p:focus />     <p:messages       showdetail="true"       globalonly="true" />     <h:panelgrid columns="3">       <p:outputlabel         for="ckpensionat2"         value="pens2"         title="tit x pens2"         style="padding-right: 3px;  display: inline-block; min-width: 60px;" />       <p:selectbooleancheckbox         id="ckpensionat2"         value="#{miocomp.pensionato}"         title="tit x pens2"         valuechangelistener="#{miocomp.penscambiato}" />       </p:selectbooleancheckbox>       <h:outputlabel  value="pippo" />       </h:outputlabel>       <p:message for="ckpensionat2" />       <p:commandbutton         value="agg"         update="pannello" />     </h:panelgrid>       </p:panel>     </h:form>   </f:view> </h:body> </html> 

nothing showing! please pay attention error of double closing tag

 .../>  </p:selectbooleancheckbox>  <h:outputlabel  value="pippo" />  </h:outputlabel> 

my questions are:

  1. why </h:outputlabel> evincted syntax error on eclipse while </p:selectbooleancheckbox> not
  2. when try show page blank page. if remove error goes fine.
  3. no errors @ appears on log view neither on tomcat 7 log dir

thanks in advance suggestions

  1. it syntax error (invalid xml) since in <h:outputlabel value="pippo" /> </h:outputlabel> close tag twice; once /> end tag , secondly </h:outputlabel> element. also, p:selectbooleancheckbox doesn't have title attribute. i'm pretty sure ide can't validate rest of document because of these errors, complains first.
  2. that's normal...
  3. i believe should increase log level or change javax.faces.project_stage parameter development in app's web.xml

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -