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:
- why
</h:outputlabel>
evincted syntax error on eclipse while</p:selectbooleancheckbox>
not - when try show page blank page. if remove error goes fine.
- no errors @ appears on log view neither on tomcat 7 log dir
thanks in advance suggestions
- 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 havetitle
attribute. i'm pretty sure ide can't validate rest of document because of these errors, complains first. - that's normal...
- i believe should increase log level or change
javax.faces.project_stage
parameterdevelopment
in app's web.xml
Comments
Post a Comment