- This topic has 1 reply, 2 voices, and was last updated 17 years, 10 months ago by Riyad Kalla.
Viewing 2 posts - 1 through 2 (of 2 total)
-
AuthorPosts
-
brummelineMemberI’m trying to wrap a list over multiple columns with the <t:dataTable newspaperColumns> tag from jsf tomahawk. This is my 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:
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
Riyad KallaMemberMoving to OT > Soft Dev
-
AuthorPosts
Viewing 2 posts - 1 through 2 (of 2 total)