You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by "Gopalakrishnan, Jaya" <ja...@nwa.com> on 2006/06/09 22:49:35 UTC

FW: Trying to work with Tomahawk Tabbed Panes

 
-----Original Message-----
From: Gopalakrishnan, Jaya 
Sent: Friday, June 09, 2006 3:24 PM
To: 'users-info@myfaces.apache.org'; 'users-faq@myfaces.apache.org'
Subject: Trying to work with Tomahawk Tabbed Panes
Importance: High


I am trying to work with Tomahawk tabbed panes. Here is something that I
have done:
 
The code for the tabbed panes in the jsp is:
------------------------------------------------------------------------
--------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<%@taglib uri="http://www.ibm.com/jsf/BrowserFramework" prefix="odc"%>

<%@taglib uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%>

<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<HTML>

<HEAD>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" %>

<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

<META name="GENERATOR" content="IBM WebSphere Studio">

<META http-equiv="Content-Style-Type" content="text/css">

<LINK href="theme/Master.css" rel="stylesheet"

type="text/css">

<TITLE>TabbedPanesJSP.jsp</TITLE>

<LINK rel="stylesheet" type="text/css" href="theme/tabpanel.css"

title="Style">

</HEAD>

<BODY><body>

<f:view>

<t:panelTabbedPane bgcolor="#FF0000">

<t:panelTab id="tab01" label="Tab No.1">

<t:outputText value="something"></t:outputText>

</t:panelTab>

<t:panelTab id="tab02" label="Tab No.2">

<t:outputText value="something else"></t:outputText>

</t:panelTab>

</t:panelTabbedPane>

</f:view>

</BODY>

</HTML>

------------------------------------------------------------------------
---------------------------------------------------

I have put tomahawk1.1.2. jar in the web-inf/lib folder, along with
jsf-api.jar, jsf-impl.jar, jstl.jar.

In the web.xml i have put the following entry:

------------------------------------------------------------------------
----------------------------------------------------

<filter> 

<filter-name>extensionsFilter</filter-name>

<filter-class>

org.apache.myfaces.component.html.util.ExtensionsFilter

</filter-class> 

</filter>

<filter-mapping>

<filter-name>extensionsFilter</filter-name>

<url-pattern>*.jsf</url-pattern>

</filter-mapping>

<filter-mapping>

<filter-name>extensionsFilter</filter-name>

<url-pattern>*.faces</url-pattern>

</filter-mapping>

<filter-mapping>

<filter-name>extensionsFilter</filter-name>

<url-pattern>/faces/*</url-pattern>

</filter-mapping>

------------------------------------------------------------------------
--------------------------------------------------------

However, when I run the application, I get the following exception: 

E SRVE0026E: [Servlet Error]-[Filter [extensionsFilter]: filter is
unavailable.]: java.lang.NoClassDefFoundError:
org/apache/commons/fileupload/FileUploadat
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:114)

at
com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInst
anceWrapper.java:132)

at
com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterCh
ain.java:71)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispa
tch(WebAppRequestDispatcher.java:974)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRe
questDispatcher.java:564)

at
com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppReq
uestDispatcher.java:200)

at
com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:1
19)

at
com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInv
oker.java:276)

at
com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocati
on(CachedInvocation.java:71)

at
com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invo
ke(CacheableInvocationContext.java:116)

at
com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(Servle
tRequestProcessor.java:186)

at
com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSELis
tener.java:334)

at
com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection
.java:56)

at
com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:
618)

at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)

at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)

------------------------------------------------------------------------
------------------------------------------------------------------------
---------

Wht is it that is wrong? Can anybody please suggest?