cancel
Showing results for 
Search instead for 
Did you mean: 

JSF: Using of MyFaces Tomahawk UI Components

Former Member
0 Kudos

Hello,

is it possible to use MyFaces Tomahawk UI Components or other MyFaces UI Components with the SAP NetWeaver CE 7.1 Application Server?

Regards,

Armin

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

MyFaces Tomahawk works!

workaround:

1. Copy commons-el-1.0.jar, commons-fileupload-1.0.jar, commons-lang-2.1.jar, commons-logging-1.1.1.jar and tomahawk-1.1.6.jar into the lib folder.

2. Add the following lines to your web.xml file:

<!-- Extensions Filter -->
<filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>
                org.apache.myfaces.component.html.util.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>
        <!--
        <init-param>
                <param-name>uploadRepositoryPath</param-name>
                <param-value>/temp</param-value>
                <description>Set the path where the intermediary files will be stored.
                </description>
        </init-param>
        -->
</filter>
<filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>*.faces</url-pattern>
</filter-mapping>
<filter-mapping>
        <filter-name>extensionsFilter</filter-name>
        <url-pattern>/faces/*</url-pattern>
</filter-mapping>