hello,
I'm new to the group and will be doing a tun with JSF, and myFaces over the
next 6 to 12 months. I'm currently working on getting rowOnClick working in
a
simple jsf file derived from sortTable.jsp example of the myFaces examples.
I'm
getting the below error. I think I'm missing something in my configuration
for
usage of tomahawk. Outside of putting the tomahawk.jar in my WEB-INF\lib
what
else needs done??? Any input on the below issue would be greatly
appreciated. Also when removing rowId I get the same message
Also does anyone know where to / or have the great examples from
http://www.irian.at/myfaces/home.jsf
Environment: XP Pro., tomcat 5.5.9, jdk 1.5.0_04
thanks,
oliver
=============================================================================
javax.servlet.ServletException: /sortTable.jsp(56,16) Unable to find setter
method for attribute: rowId
javax.faces.webapp.FacesServlet.service(FacesServlet.java:125)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
root cause
javax.faces.FacesException: /sortTable.jsp(56,16) Unable to find setter
method
for attribute: rowId
org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:411)
org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:280)
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:110)
org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:112)
===================================================================================
The following is my JSP:
%@ page session="false" contentType="text/html;charset=utf-8"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<html >
<!--
/*
* Copyright 2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
//-->
<[EMAIL PROTECTED] file="inc/head.inc" %>
<body>
<!--
managed beans used:
list
-->
<SCRIPT Language="JavaScript">
function ding(){
alert('ding')
}
</SCRIPT>
<f:view>
<f:loadBundle basename="com.jsftest.resource.example_messages"
var="example_messages"/>
<t:panelLayout id="page" layout="#{globalOptions.pageLayout}"
styleClass="pageLayout"
headerClass="pageHeader"
navigationClass="pageNavigation"
bodyClass="pageBody"
footerClass="pageFooter">
<f:facet name="header">
<f:subview id="header">
<jsp:include page="inc/page_header.jsp" />
</f:subview>
</f:facet>
<f:facet name="navigation">
<f:subview id="menu" >
<jsp:include page="inc/navigation.jsp" />
</f:subview>
</f:facet>
<f:facet name="body">
<h:panelGroup id="body">
<t:dataTable styleClass="standardTable"
headerClass="standardTable_SortHeader"
footerClass="standardTable_Footer"
rowClasses="standardTable_Row1,standardTable_Row2"
var="car"
value="#{list.cars}"
sortColumn="#{list.sort}"
sortAscending="#{list.ascending}"
preserveDataModel="true"
preserveSort="true"
rowId="#{car.color}"
rowOnClick="ding()"
>
<f:facet name="header">
<h:outputText value="(header table)" />
</f:facet>
<f:facet name="footer">
<h:outputText value="(footer table)" />
</f:facet>
<c:set var="test" value="test"/>
<h:column>
<f:facet name="header">
<t:commandSortHeader columnName="type"
arrow="true">
<h:outputText
value="#{example_messages['sort_cartype']}" />
</t:commandSortHeader>
</f:facet>
<h:outputText value="#{car.type}" />
<f:facet name="footer">
<h:outputText id="ftr1" value="(footer col1)"
/>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<t:commandSortHeader columnName="color"
arrow="true">
<h:outputText
value="#{example_messages['sort_carcolor']}" />
</t:commandSortHeader>
</f:facet>
<h:outputText value="#{car.color}" />
<f:facet name="footer">
<h:outputText id="ftr2" value="(footer col2)"
/>
</f:facet>
</h:column>
</t:dataTable>
</h:panelGroup>
</f:facet>
<[EMAIL PROTECTED] file="inc/page_footer.jsp" %>
</t:panelLayout>
</f:view>
</body>
</html>
I think there is a configuration issue with tomahawk in my environment. I
put the tomahawk.jar in my WEB-INF\lib