Spettini,
The problem here is that you are confused into thinking that you need to
include the associated JSF implementation (e.g. Myfaces Core) in order
to use a component libary (e.g. Myfaces Tomahawk). You can use Tomahawk
with other implementations of JSF, but in that case you must not include
the Myfaces implementation of JSF (i.e. myfaces-impl.jar & myfaces-api.jar).
Matthias summed this up nicely a few months ago, see [1]. No need to
make him repeat himself.
Basically, you need to pick either:
- the RI -
OR
- ibm's jsf impl -
OR
- myfaces core -
You can still include the Tomahawk library, and use components like
t:inputDate. I'm guessing you're stuck with whatever implementation IBM
requires for Websphere Portals, but the bottom line is don't add Myfaces
Core to the mix.
[1]
http://www.nabble.com/RE%3A-Trying-to-work-with-Tomahawk-Tabbed-Panes-tf1764054.html#a4802858
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
Spettini wrote:
I'm a bit confused, can't i use the ibm implementation hx tag and myfaces
implementation t tag together?
I already developed the application using sun and ibm faces but now i need
something else eg. <t:popup and t:tree2
How can i resolve this matter?
Matthias Wessendorf-4 wrote:
you have somethings here
.jsp as mapping (.jsf you mean, right)
you mix three JSF-Impl
myfaces
sun
com.sun.faces.config.ConfigureListener
ibm
com.ibm.faces.webapp.JSResourceServlet
that should be cleaned up :)
On 10/30/06, Spettini <[EMAIL PROTECTED]> wrote:
Hi
I'm newbie in wps5 and myfaces, i'm trying to force them (and jsf)
working
together but all i have is this error
when i call <t:popup
java.lang.IllegalStateException: ExtensionsFilter not correctly
configured.
JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html
My web.xml is
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app id="WebApp_ID">
<display-name>Curricula di test</display-name>
<context-param>
<param-name>com.ibm.ws.jsf.JSP_UPDATE_CHECK</param-name>
<param-value>true</param-value>
<description>
Monitors Faces JSP files for modifications and
synchronizes
a running server with the changes without
restarting the
server. If this parameter is set to false or
removed from
the deployment descriptor, any changes made to
Faces JSP
files may not be seen by the server until it is
restarted.
This parameter is usually set to true while the
Faces JSP
files are being developed and debugged in order
to improve
the performance of the development environment.
</description>
</context-param>
<context-param>
<param-name>
com.ibm.ws.jsf.LOAD_FACES_CONFIG_AT_STARTUP
</param-name>
<param-value>true</param-value>
<description></description>
</context-param>
<filter>
<filter-name>MyFacesExtensionsFilter</filter-name>
<filter-class>
org.apache.myfaces.component.html.util.ExtensionsFilter
</filter-class>
<init-param>
<param-name>maxFileSize</param-name>
<param-value>20m</param-value>
<description>
Set the size limit for uploaded files.
Format: 10 - 10
bytes
10k - 10 KB
10m - 10 MB
1g - 1 GB
</description>
</init-param>
</filter>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>*.jsp</url-pattern>
</filter-mapping>
<filter-mapping>
<filter-name>MyFacesExtensionsFilter</filter-name>
<url-pattern>/wps/*</url-pattern>
</filter-mapping>
<listener>
<listener-class>
com.sun.faces.config.ConfigureListener
</listener-class>
</listener>
<servlet>
<servlet-name>JS Resource Servlet</servlet-name>
<servlet-class>
com.ibm.faces.webapp.JSResourceServlet
</servlet-class>
<load-on-startup>-1</load-on-startup>
</servlet>
<servlet id="Servlet_1154680887328">
<servlet-name>curriculatest.CurriculaTestPortlet</servlet-name>
<display-name>curriculatest.CurriculaTestPortlet</display-name>
<servlet-class>
com.ibm.faces.webapp.WPFacesGenericPortlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>JS Resource Servlet</servlet-name>
<url-pattern>/.ibmjsfres/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>curriculatest.CurriculaTestPortlet</servlet-name>
<url-pattern>/curriculatest.CurriculaTestPortlet/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>
http://jakarta.apache.org/taglibs/datetime-1.0
</taglib-uri>
<taglib-location>
/WEB-INF/lib/taglibs-datetime.jar
</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://jakarta.apache.org/taglibs/string-1.0.1
</taglib-uri>
<taglib-location>
/WEB-INF/lib/taglibs-string.jar
</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://jakarta.apache.org/taglibs/utility
</taglib-uri>
<taglib-location>/WEB-INF/lib/utility.jar</taglib-location>
</taglib>
<taglib>
<taglib-uri>
http://jakarta.apache.org/taglibs/mailer-1.1
</taglib-uri>
<taglib-location>
/WEB-INF/lib/taglibs-mailer.jar
</taglib-location>
</taglib>
</web-app>
my page is
<[EMAIL PROTECTED] uri="http://java.sun.com/jsf/core" prefix="f"%> <[EMAIL
PROTECTED]
uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI"%> <[EMAIL PROTECTED]
uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%> <[EMAIL PROTECTED]
uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib
uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <[EMAIL PROTECTED]
language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1" session="false"%> <portletAPI:init />
<LINK rel="stylesheet" type="text/css"
href='<%= response.encodeURL("/theme/stylesheet.css") %>'
title="Style">
<f:view>
<%-- jsf:pagecode language="java"
location="/JavaSource/pagecode/CurriculaView.java" --%><%-- /jsf:pagecode
--%>
<hx:scriptCollector id="scriptCollector1">
<t:popup id="x" styleClass="popup"
closePopupOnExitingElement="true"
closePopupOnExitingPopup="true"
displayAtDistanceX="10"
displayAtDistanceY="10">
<h:outputText id="ox"
value="This is the first textual text
situation." />
<f:facet name="popup">
<h:panelGroup>
<h:panelGrid columns="1">
<h:outputText
value="Popup Text 1" />
</h:panelGrid>
</h:panelGroup>
</f:facet>
</t:popup>
</hx:scriptCollector>
</f:view>
The portlet is created with the wizard of RAD6, a non jsr standard
portlet
Can anyone help me or redirect to a solution?
Thank you very much!
--
View this message in context:
http://www.nabble.com/WPS5-and-MyFaces-tf2538402.html#a7071939
Sent from the MyFaces - Users mailing list archive at Nabble.com.
--
Matthias Wessendorf
http://tinyurl.com/fmywh
further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com