unable to find setter method for attribute: newspapercolumns

Discussion in 'Java' started by Brummeline, Mar 5, 2007.

  1. Brummeline

    Brummeline

    Joined:
    Mar 5, 2007
    Messages:
    2
    I'm trying to wrap a list over multiple columns with the <t:dataTable newspaperColumns> tag from jsf tomahawk. This is my code:
    Code (Text):
    <!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 (Text):
    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
     
    Brummeline, Mar 5, 2007
    #1
    1. Advertisements

  2. Brummeline

    Brummeline

    Joined:
    Mar 5, 2007
    Messages:
    2
    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:
     
    Brummeline, Mar 8, 2007
    #2
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?VHUtVGhhY2g=?=

    DataBinder setter method.

    =?Utf-8?B?VHUtVGhhY2g=?=, Mar 15, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    361
    =?Utf-8?B?VHUtVGhhY2g=?=
    Mar 15, 2005
  2. kaeli
    Replies:
    5
    Views:
    16,277
    Sudsy
    Jan 5, 2004
  3. callme sanjay via JavaKB.com
    Replies:
    5
    Views:
    4,421
    haraul
    Apr 17, 2007
  4. kebabkongen@hotmail.com
    Replies:
    2
    Views:
    621
    kebabkongen@hotmail.com
    Nov 14, 2006
  5. Le Wang
    Replies:
    2
    Views:
    903
    Knut Lickert
    Aug 13, 2011
Loading...

Share This Page