You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dennis <rh...@yahoo.com> on 2006/05/16 21:33:20 UTC

Problem getting to resources using Tomahawk 1.1.2

I am attempting to use Tomahawk 1.1.2 with MyFaces 1.1.3 I have created a
panelTabbedPane with a couple of panelTabs but the problem is that tomahawk
resources (stylesheets, images, etc...) are not showing, the tabs just look like
html buttons. 

Any ideas? its driving me crazy....

Thanks

Here is my web.xml:

<filter>
   <filter-name>MyFacesExtensionsFilter</filter-name>
	<filter-class>
		org.apache.myfaces.webapp.filter.ExtensionsFilter
	</filter-class> 
		<init-param>
			<param-name>uploadMaxFileSize</param-name>
			<param-value>100m</param-value>
		</init-param>
		<init-param>
			<param-name>uploadThresholdSize</param-name>
			<param-value>100k</param-value>
		</init-param>
	</filter>
	
	<!-- extension mapping for serving page-independent resources
		(javascript, stylesheets, images, etc.)  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
	</filter-mapping>
	
	<!-- extension mapping for adding <script/>, <link/>, and other
		resource tags to JSF-pages  -->
	<filter-mapping>
		<filter-name>MyFacesExtensionsFilter</filter-name>
		<!-- servlet-name must match the name of your
			javax.faces.webapp.FacesServlet entry -->
		<servlet-name>FacesServlet</servlet-name>
	</filter-mapping>
	
	<listener>
		<listener-class>
			org.apache.myfaces.webapp.StartupServletContextListener
		</listener-class>
	</listener>

	<servlet>
		<servlet-name>FacesServlet</servlet-name>
		<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
		<load-on-startup>1</load-on-startup>
	</servlet>
	
	<servlet-mapping>
		<servlet-name>FacesServlet</servlet-name>
		<url-pattern>*.jsf</url-pattern>
	</servlet-mapping>


Re: Problem getting to resources using Tomahawk 1.1.2

Posted by Dennis <rh...@yahoo.com>.
Some further clarification, it looks like when deployed to Tomcat it works fine,
but when running in the eclipse environment its not working, its not getting the
tomahawk resources (images and stylesheets, etc...)

I'm running Tomcat 5.5 and the webtools (WTP) plugin on eclipse....

-Dennis