You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Alexander Zynevich (JIRA)" <de...@myfaces.apache.org> on 2007/07/12 09:50:04 UTC

[jira] Created: (MYFACES-1678) h:panelGrid renders not complete table: last is not closed

h:panelGrid renders not complete table: last <td> is not closed
---------------------------------------------------------------

                 Key: MYFACES-1678
                 URL: https://issues.apache.org/jira/browse/MYFACES-1678
             Project: MyFaces Core
          Issue Type: Bug
          Components: JSR-252
    Affects Versions: 1.2.0-SNAPSHOT
         Environment: Geronimo-tomcat6-jee5-2.0-m6-rc1
            Reporter: Alexander Zynevich
            Priority: Minor


h:panelGrid renders not complete table: last <td> is not closed
Thus it may produce invalid XHTML

the following code renders as:
	<h:panelGrid columns="2" cellpadding="1" cellspacing="1" border="0"
		headerClass="form-header-default" 
		columnClasses="form-column-names, form-column-values" 
		footerClass="form-footer-default">
		
		<f:facet name="header">
			<h:outputText value="Enter search parameters:" styleClass="form-text-bold" />
		</f:facet>
		
		<h:outputText value="First name" styleClass="form-text-norm" />
		<h:inputText id="firstName" styleClass="form-input-text" value="#{customerSearchBean.firstName}" />

		<h:outputText value="Last name" styleClass="form-text-norm" />
		<h:inputText id="lastName" styleClass="form-input-text" value="#{customerSearchBean.lastName}" />

		<h:outputText value="SSN" styleClass="form-text-norm" />
		<h:inputText id="ssn" styleClass="form-input-text" value="#{customerSearchBean.ssn}" />
		
		<h:outputText value="" styleClass="form-text-norm" />
		<h:commandButton id="doSearch" type="submit" value="Search" styleClass="form-input-button"
			action="#{customerSearchBean.doSearch}" />
	</h:panelGrid>

-- RENDERS TO --
<table border="0" cellpadding="1" cellspacing="1">
<thead><tr><th class="form-header-default" scope="colgroup" colspan="2">
<span class="form-text-bold">Enter search parameters:</span>
</th></tr></thead><tbody><tr><td class="form-column-names"><span class="form-text-norm">First name</span></td><td class="form-column-values"><input id="customerSearchForm:firstName" name="customerSearchForm:firstName" type="text" value="john" class="form-input-text" /></td></tr>
<tr><td class="form-column-names"><span class="form-text-norm">Last name</span></td><td class="form-column-values"><input id="customerSearchForm:lastName" name="customerSearchForm:lastName" type="text" value="" class="form-input-text" /></td></tr>

<tr><td class="form-column-names"><span class="form-text-norm">SSN</span></td><td class="form-column-values"><input id="customerSearchForm:ssn" name="customerSearchForm:ssn" type="text" value="" class="form-input-text" /></td></tr>
<tr><td class="form-column-names"><span class="form-text-norm"></span></td>*<td class="form-column-values"><input id="customerSearchForm:doSearch" name="customerSearchForm:doSearch" type="submit" value="Search" onclick="if(typeof window.clearFormHiddenParams_customerSearchForm=='function'){clearFormHiddenParams_customerSearchForm('customerSearchForm');}" class="form-input-button" /></tr>*
</tbody></table>

and violation in the log:
10:42:58,265 WARN  [HtmlResponseWriterImpl] HTML nesting warning on closing td:
element input rendered by component : {Component-Path : [Class: javax.faces.comp
onent.UIViewRoot,ViewId: /jsp/cust/customer_search.jsp][Class: com.ibm.jswm.jsf.
WindowsManagerComp,Id: j_id_jsp_569314233_1][Class: javax.faces.component.html.H
tmlForm,Id: customerSearchForm][Class: javax.faces.component.html.HtmlPanelGrid,
Id: j_id_jsp_569314233_3][Class: javax.faces.component.html.HtmlCommandButton,Id
: doSearch]} not explicitly closed

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.