You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by Apache Wiki <wi...@apache.org> on 2005/11/29 12:53:46 UTC
[Myfaces Wiki] Update of "TabbedPane" by ronald
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Myfaces Wiki" for change notification.
The following page has been changed by ronald:
http://wiki.apache.org/myfaces/TabbedPane
New page:
The {{{panelTabbedPane}}} is quite simple to use. But sometimes there occur errors, where it is difficult to determine the reason. Mostly it is related to a
misconfiguration of your webapp (web.xml).
To check, that everything runs fine, take a look at the produced HTML-code. The component includes a default stylesheet (defaultStyle.css) and much javascript-code.
{{{<html>
<body>
<f:view>
<t:panelTabbedPane bgcolor="#FF0000">
<t:panelTab id="tab01" label="Tab No.1">
<t:outputText value="something"></t:outputText>
</t:panelTab>
<t:panelTab id="tab02" label="Tab No.2">
<t:outputText value="something else"></t:outputText>
</t:panelTab>
</t:panelTabbedPane>
</f:view>
</body>
</html>}}}
=== FAQ ===
The Panel-Tabs are rendered as buttons !?
The component doesn't include the default-stylesheet and some javascript-code.
Check your web.xml for filter-configuration :
{{{<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>
</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>
<filter-mapping>
<filter-name>extensionsFilter</filter-name>
<url-pattern>/faces/*</url-pattern>
</filter-mapping>
}}}
Every jsf-Page has to go through the filter.