Treeview weblet does not display on System i/Apache Web server

Date:12 December 2008
Product/Release:Visual LANSA V11 (all Service Packs)
Abstract:Treeview weblet does not display on System i/Apache Web server due to an unregistered extension '.htc'
Submitted By:LANSA Technical Support

Description:

On some System i Web server configurations, the treeview Weblet may not display in a WAM application. No error message will be shown, only a blank space where the treeview should be

Example of the treeview Weblet not displayed in a WAM application

Reason:
One possibility for this issue is that the .htc extension which is used to display the treeview is not registered in the Apache configuration. As an unknown extension, Apache sends it out with the MIME type www/unknown, stopping Internet Explorer from showing the treeview. The correct MIME type is text/x-component

If you are having trouble displaying treeviews on your Apache Web server, one possible solution is to manually associate the MIME type text/x-component with the .htc extension. To do this, add the following line to the section for the /images directory in httpd.conf:

AddType text/x-component .htc

For example, the images directory section might look like:

Alias /img/ /devuserimg/
<Directory /devuserimg>
   order allow,deny
   allow from all
   options +Includes
   AddType text/x-component .htc
</Directory>