You should only have the MyFaces Core or the JSF on your classpath.
However, the most likely issue is that you're using Tomahawk 1.1.3 or earlier. I'm pretty sure that the change to add newspaper table happened in 1.1.4. I don't remember exactly, but I think it was in May of last year. On 3/8/07, Brummeline Braaten <[EMAIL PROTECTED]> wrote:
Brummeline Braaten <brummeline <at> gmail.com> writes: > > I'm trying to wrap a long column over multiple columns with the > t:dataTable newspapercolumns attribute.The problem is that I get an > error that says: > Unable to find setter method for attribute: newspaperColumns > javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) > > The code works when I don't use the newspapercolumn attribute, > but then the column doesn't get wrapped over multiple columns > as I want it to. > > My code is like this: > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > <% <at> taglib uri="http://java.sun.com/jsf/core" prefix="f"%> > <% <at> taglib uri="http://java.sun.com/jsf/html" prefix="h"%> > <% <at> taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> > <html> > <f:view> > <head> > <meta http-equiv="content-type" > content="text/html; charset=iso-8859-1"> > <title>Nytt i helse</title> > <link rel="stylesheet" href="../css/frontend.css" > type="text/css"media="screen"> > </head> > <body> > <h:form id="main"> > <f:verbatim> > <div id="category_list_heading"> > Vennligst velg kategori: > </div> > </f:verbatim> > <t:dataTable id="kategorier" var="rader" > newspaperColumns="5"binding="#{tabnavigering.categoryTable}" rows="5"> > <f:facet name="spacer"> > <f:verbatim> </f:verbatim> > </f:facet> > <h:column> > <t:commandLink style="category_list" > styleClass="category"> > <h:outputText value="#{rader.categoryName}" /> > </t:commandLink> > </h:column> > </t:dataTable> > </h:form> > </body> > </f:view> > </html> > > Hope you can give me a hint to how I can solve it. > It's getting a bit annoying:) > > I've found out that perhaps I needed to update my web.xml file. The file looks like this now: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app> <display-name>Nye metoder Application</display-name> <description>application.</description> <context-param> <param-name>contextConfigLocation</param-name> <param-value>WEB-INF/applicationContext.xml /WEB-INF/applicationContext-ejb.xml</param-value> </context-param> <filter> <filter-name>MyFacesExtensionsFilter</filter-name> <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter </filter-class> <init-param> <param-name>maxFileSize</param-name> <param-value>100k</param-value> <description>Set the size limit for uploaded files. Format: 10 - 10 bytes 10k - 10 KB 10m - 10 MB 1g - 1 GB </description> </init-param> </filter> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <url-pattern>/faces/myFacesExtensionResource/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry --> <servlet-name>*.jsf</servlet-name> </filter-mapping> <filter-mapping> <filter-name>MyFacesExtensionsFilter</filter-name> <!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry --> <servlet-name>/faces/*</servlet-name> </filter-mapping> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>3</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>3</param-value> </init-param> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>webmetoder/index.jsp</welcome-file> </welcome-file-list> </web-app> I still get the same error message: javax.servlet.ServletException: org.apache.jasper.JasperException: /innhold/kategoriliste.jsp(22,4) Unable to find setter method for attribute: newspaperColumns javax.faces.webapp.FacesServlet.service(FacesServlet.java:152) The setter method is in the HtmlDataTable.class of the tomahawk library. I get an error when I start the server also: Both RI and myfaces jsf are on your classpath. Could this have anything to do with the setter method error? What do I have to do to find the method?

