You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by David Dyer <dd...@artifact-software.com> on 2008/02/28 21:01:07 UTC

tomahawk t:panelTabbedPane and portlets

Hi all, I've run into a snag when I try to use a tabbed pane in a faces 
portlet. I've seen a few references to this same problem around on the 
web, but it always appears to be an unresolved issue. This ( 
http://permalink.gmane.org/gmane.comp.jakarta.myfaces.user/45019 ) page 
outlines the same problem albeit for Weblogic. Has anyone run across 
this? Has anyone managed to resolve it? Other jsp pages within the same 
portlet using tomahawk tags (such as the t:dataTable) aren't having any 
issues.

Using tomahawk 1.1.6

Error message:

java.lang.IllegalStateException: ExtensionsFilter not correctly
configured. JSF mapping missing. JSF pages not covered. Please see:
http://myfaces.apache.org/tomahawk/extensionsFilter.html.

Relevent code from web.xml
===================================

<filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>org.apache.myfaces.webapp.filter.ExtensionsFilter</filter-class>
        <init-param>
            <description>Set the size limit for uploaded files.
            Format: 10 - 10 bytes
            10k - 10 KB
            10m - 10 MB
            1g - 1 GB</description>
            <param-name>uploadMaxFileSize</param-name>
            <param-value>100m</param-value>
        </init-param>
        <init-param>
            <description>Set the threshold size - files
            below this limit are stored in memory, files above
            this limit are stored on disk.

            Format: 10 - 10 bytes
            10k - 10 KB
            10m - 10 MB
            1g - 1 GB</description>
            <param-name>uploadThresholdSize</param-name>
            <param-value>100k</param-value>
        </init-param>
    </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>
    <servlet>
        <servlet-name>Faces Servlet</servlet-name>
        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet>
        <servlet-name>SourceCodeServlet</servlet-name>
        <servlet-class>org.apache.myfaces.shared_tomahawk.util.servlet.SourceCodeServlet</servlet-class>
    </servlet>
    <servlet-mapping>
        <servlet-name>Faces Servlet</servlet-name>
        <url-pattern>*.jsf</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
        <servlet-name>SourceCodeServlet</servlet-name>
        <url-pattern>*.source</url-pattern>
    </servlet-mapping>


Portlet.xml entry:

<portlet id="UserProfileEditor">
        <description> snipped for brevity </description>
        <portlet-name>UserProfileEditor</portlet-name>
        <display-name>User profile editor</display-name>
        <portlet-class>org.apache.portals.bridges.jsf.FacesPortlet</portlet-class>
        <init-param>
            <name>ViewPage</name>
            <value>/userSearch.jsp</value>
        </init-param>
        
        <expiration-cache>0</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>VIEW</portlet-mode>
        </supports>
        <supported-locale>en</supported-locale>
        <resource-bundle>com.artifact_software.portal.contractAdmin.resources.Messages</resource-bundle>
        <portlet-info>
            <title>User profile editor</title>
            <short-title>User profile editor</short-title>
            <keywords>user, profile, editor</keywords>
        </portlet-info>
        <portlet-preferences>
        </portlet-preferences>
    </portlet>

Thanks for the help,

David Dyer


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-user-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-user-help@portals.apache.org