myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Wessendorf" <mat...@apache.org>
Subject Re: WPS5 and MyFaces
Date Mon, 30 Oct 2006 17:57:17 GMT
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 <stefanopettini@planecom.it> 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
>
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@taglib
> uri="/WEB-INF/tld/portlet.tld" prefix="portletAPI"%> <%@taglib
> uri="http://www.ibm.com/jsf/html_extended" prefix="hx"%> <%@taglib
> uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib
> uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@page
> 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

Mime
View raw message