unable to find setter method for attribute: newspapercolumns

Joined
Mar 5, 2007
Messages
2
Reaction score
0
I'm trying to wrap a list over multiple columns with the <t:dataTable newspaperColumns> tag from jsf tomahawk. This is my code:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib 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 newspaperColumns="#{tabnavigering.totalCol}"  rows="5"
					var="rader" binding="#{tabnavigering.categoryTable}">
					<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>
If I remove the newspaperColumn attribute, the list is written out on the screen, but if I try to open the page with the newspaperColumn attribute i get this error:
Code:
type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

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)


root cause 

javax.faces.FacesException: org.apache.jasper.JasperException: /innhold/kategoriliste.jsp(22,4) Unable to find setter method for attribute: newspaperColumns
	com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:327)
	com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
	no.naks.web.framework.application.TilesViewHandler.renderView(TilesViewHandler.java:126)
	no.naks.web.framework.application.TilesViewHandler.renderView(TilesViewHandler.java:126)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)


note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
How do I get this to work? I use myEclipse, thomahawk 1.1.5 and myfaces 1.1.5
 
Joined
Mar 5, 2007
Messages
2
Reaction score
0
Can someone please help me? I've struggled with this problem for over a week now. Is there a way I can seperate the column into multiple columns in the bean in stead?:hmm2:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top