MyFaces 1.2.1 rendering of Tag <h:commandButton> inside <h:panelGrid> doesn't
close <td><tr> tags
--------------------------------------------------------------------------------------------------
Key: MYFACES-1705
URL: https://issues.apache.org/jira/browse/MYFACES-1705
Project: MyFaces Core
Issue Type: Bug
Affects Versions: 1.2.1-SNAPSHOT
Reporter: Andreas Gärtner
Rendering of this page:
<%@ page session="false" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html>
<body>
<f:view>
<f:loadBundle basename="messages" var="messages" />
<h:form id="form">
<h:panelGrid columns="1">
<h:commandButton value="Änderungen speichern"
action="#{persoenlicheDatenHandler.save}" />
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>
comes out like this:
<table><tbody><tr>
<td>
<input id="form:j_id_jsp_748720302_3" name="form:j_id_jsp_748720302_3"
type="submit" value="Änderungen speichern" onclick="if(typeof
window.clearFormHiddenParams_form=='function'){clearFormHiddenParams_form('form');}"
/>
</tr>
</tbody></table>
Results in the following warning:
WARN HtmlResponseWriterImpl:234 - HTML nesting warning on closing td: element
input rendered by component : {Component-Path : [Class:
javax.faces.component.UIViewRoot,ViewId: /pages/daten.jsp][Class:
javax.faces.component.html.HtmlForm,Id: form][Class:
javax.faces.component.html.HtmlPanelGrid,Id: j_id_jsp_748720302_2][Class:
javax.faces.component.html.HtmlCommandButton,Id: j_id_jsp_748720302_3]} not
explicitly closed
If changed to <h:panelGrid columns="2"> the output is:
<table><tbody><tr><td>
<input id="form:j_id_jsp_748720302_3" name="form:j_id_jsp_748720302_3"
type="submit" value="Änderungen speichern" onclick="if(typeof
window.clearFormHiddenParams_form=='function'){clearFormHiddenParams_form('form');}"
/>
<td></td></tr>
</tbody></table>
and therefore still one </td> short.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.