Tomahawk column tag gets: Unable to find setter method for attribute:
footerstyleClass
--------------------------------------------------------------------------------------
Key: MYFACES-838
URL: http://issues.apache.org/jira/browse/MYFACES-838
Project: MyFaces
Type: Bug
Components: Tomahawk
Versions: 1.1.1
Environment: windows xp, eclipse 3.1, j2sdk1.4.2_06, jakarta-tomcat-5.0.28,
Reporter: Lance Frohman
I am using the Tomahawk :column tag with the Tomahawk :dataTable.
I am setting the classes for the header and footer in the facets, but I get:
javax.faces.FacesException: /test.jsp(13,5) Unable to find setter method for
attribute: footerstyleClass
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:421)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:352)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:107)
com.parvia.security.SessionFilter.doFilter(SessionFilter.java:41)
the page is:
<%@ 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"%>
<f:view>
<html>
<head>
<t:stylesheet path="/test.css"/>
</head>
<body>
<h:form id="test">
<t:dataTable id="data"
value="#{testHandler.lines}" var="line" width="100%">
<t:column headerstyleClass="head1"
footerstyleClass="foot1">
<f:facet name="header">
<f:verbatim
escape="false">head 1</f:verbatim>
</f:facet>
<f:facet name="footer">
<f:verbatim
escape="false">foot 1</f:verbatim>
</f:facet>
<h:outputText
value="#{lines.col1}" />
</t:column>
<t:column headerstyleClass="head2"
footerstyleClass="foot2">
<f:facet name="header">
<f:verbatim
escape="false">head 2</f:verbatim>
</f:facet>
<f:facet name="footer">
<f:verbatim
escape="false">foot 2</f:verbatim>
</f:facet>
<h:outputText
value="#{lines.col2}" />
</t:column>
</t:dataTable>
</h:form>
</body>
</html>
</f:view>
TestHandler.java is:
import java.util.ArrayList;
import javax.faces.model.DataModel;
import javax.faces.model.ListDataModel;
public class TestHandler {
public DataModel getLines() {
ArrayList a = new ArrayList();
a.add(new Line("1-1", "1-2"));
a.add(new Line("2-1", "2-2"));
return new ListDataModel(a);
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira