Have you tried it with value instead of binding?
This is a code I use:
<t:dataTable newspaperOrientation="horizontal" value="#{bean.valueList}"
newspaperColumns="10" rowIndexVar="col" var="index"
columnClasses="#{bean.styleClassString}" >....
Yaron
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] On Behalf Of Brummeline Braaten
Sent: Thursday, March 08, 2007 3:13 AM
To: [email protected]
Subject: t:datatable and newspapercolumns
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:)