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";>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core"; prefix="f"%>
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ 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:)


Reply via email to