Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-345

Tomahawk column tag gets: Unable to find setter method for attribute: footerstyleClass

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.2
    • Component/s: None
    • Labels:
      None
    • Environment:
      windows xp, eclipse 3.1, j2sdk1.4.2_06, jakarta-tomcat-5.0.28,

      Description

      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); }

      }

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lfrohman Lance Frohman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: