I get a similar error in an application that has no customized components.

WARN - HtmlResponseWriterImpl.endElement(234) | HTML nesting warning on
closing td: element input rendered by component : {Component-Path : [Class:
org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId: /userForm.xhtml][Class:
javax.faces.component.html.HtmlForm,Id: userForm][Class:
javax.faces.component.html.HtmlPanelGrid,Id: j_id5][Class:
javax.faces.component.html.HtmlPanelGroup,Id: j_id13][Class:
javax.faces.component.html.HtmlCommandButton,Id: cancel]} not explicitly
closed

Since this is obviously an invalid warning (IDEA claims to markup errors),
any idea how to suppress this message? Is it coming from Ajax4JSF or
MyFaces? I tried adding the following to my log4j.xml, but no dice:

    <logger name="org.apache.myfaces.renderkit.html.HtmlResponseWriterImpl">
        <level value="ERROR"/>
    </logger>

Thanks,

Matt


mraible wrote:
> 
> I have a custom PanelGrid component and for some reason when I use
> h:panelGroup, it spits out the following warning:
> 
> WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
> warning on closing span: element input rendered by component :
> {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
> /userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
> userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id:
> j_id4][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id5][Class:
> javax.faces.component.html.HtmlCommandButton,Id: j_id7]} not explicitly
> closed
> WARN [btpool0-1] HtmlResponseWriterImpl.endElement(234) | HTML nesting
> warning on closing span: element input rendered by component :
> {Component-Path : [Class: org.ajax4jsf.framework.ajax.AjaxViewRoot,ViewId:
> /userForm.xhtml][Class: javax.faces.component.html.HtmlForm,Id:
> userForm][Class: javax.faces.component.html.HtmlPanelGrid,Id:
> j_id4][Class: javax.faces.component.html.HtmlPanelGroup,Id: j_id93][Class:
> javax.faces.component.html.HtmlCommandButton,Id: j_id95]} not explicitly
> closed
> 
> Any idea what's causing this? It looks like it's wrapping a span around
> the buttons and thinks I don't have a closing panelGroup for some reason.
> Here's what I have in my Facelets view:
> 
> <h:panelGrid columns="3">
> 
>     <h:panelGroup styleClass="buttonBar right">
>         <h:commandButton value="#{text['button.save']}"
> action="#{userForm.save}" styleClass="button"/>
>         <c:if test="${not empty userForm.user.id}">
>         <h:commandButton value="#{text['button.delete']}"
> action="#{userForm.delete}"
>             styleClass="button" onclick="bCancel=true; return
> confirmDelete('User')"/>
>         </c:if>
>         <h:commandButton value="#{text['button.cancel']}"
> action="#{userForm.cancel}" immediate="true"
>             styleClass="button" onclick="bCancel=true"/>
>     </h:panelGroup>
>     <h:outputText/><h:outputText/>
> 
> Here's my custom PanelGridRenderer:
> 
> http://static.appfuse.org/appfuse-jsf/xref/org/appfuse/webapp/jsf/PanelGridRenderer.html
> 
> Thanks,
> 
> Matt
> 

-- 
View this message in context: 
http://www.nabble.com/HtmlResponseWriterImpl%3A-HTML-nesting-warning-on-closing-span-tf4338701.html#a12359176
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to