Hi! Im trying to add richfaces control to a mail to make it look more like the rest of my application.
| <ui:composition xmlns="http://www.w3.org/1999/xhtml" | xmlns:ui="http://java.sun.com/jsf/facelets" | xmlns:h="http://java.sun.com/jsf/html" | xmlns:f="http://java.sun.com/jsf/core" | xmlns:s="http://jboss.com/products/seam/taglib" | xmlns:rich="http://richfaces.ajax4jsf.org/rich" | xmlns:m="http://jboss.com/products/seam/mail"> | | <m:message> | <m:from name="Stugbokningen" address="my-email" /> | <m:to name="#{win.user.name}">#{win.email}</m:to> | <m:subject>Subject</m:subject> | | <m:body> | <rich:panel> | <f:facet name="header"> | <h:outputText value="testing"/> | </f:facet> | testing | </rich:panel> | </m:body> | </m:message> | </ui:composition> | When I render the email I get: anonymous wrote : | Email sending failed: Resources framework is not initialised, check web.xml for Filter configuration Richfaces works for the rest of my application so I dont see why the filter configuration should be wrong but here it is: | <?xml version="1.0" ?> | <web-app xmlns="http://java.sun.com/xml/ns/j2ee" | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" | version="2.4"> | | <!-- Ajax4jsf (must come first!) --> | <context-param> | <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name> | <param-value>com.sun.facelets.FaceletViewHandler</param-value> | </context-param> | | <context-param> | <param-name>org.ajax4jsf.SKIN</param-name> | <param-value>blueSky</param-value> | </context-param> | | <!-- Seam --> | | <listener> | <listener-class>org.jboss.seam.servlet.SeamListener</listener-class> | </listener> | | <filter> | <filter-name>Seam Filter</filter-name> | <filter-class>org.jboss.seam.servlet.SeamFilter</filter-class> | </filter> | | <filter-mapping> | <filter-name>Seam Filter</filter-name> | <url-pattern>/*</url-pattern> | </filter-mapping> | | <servlet> | <servlet-name>Seam Resource Servlet</servlet-name> | <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class> | </servlet> | | <servlet-mapping> | <servlet-name>Seam Resource Servlet</servlet-name> | <url-pattern>/seam/resource/*</url-pattern> | </servlet-mapping> | | <!-- Facelets development mode (disable in production) --> | | <context-param> | <param-name>facelets.DEVELOPMENT</param-name> | <param-value>true</param-value> | </context-param> | | <!-- JSF --> | | <context-param> | <param-name>javax.faces.DEFAULT_SUFFIX</param-name> | <param-value>.xhtml</param-value> | </context-param> | | <servlet> | <servlet-name>Faces Servlet</servlet-name> | <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> | <load-on-startup>1</load-on-startup> | </servlet> | | <servlet-mapping> | <servlet-name>Faces Servlet</servlet-name> | <url-pattern>*.seam</url-pattern> | </servlet-mapping> | | <security-constraint> | <display-name>Restrict raw XHTML Documents</display-name> | <web-resource-collection> | <web-resource-name>XHTML</web-resource-name> | <url-pattern>*.xhtml</url-pattern> | </web-resource-collection> | <auth-constraint> | <role-name>NONE</role-name> | </auth-constraint> | </security-constraint> | | </web-app> | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082010#4082010 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082010 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user