blob: 1750b7e3e6cae3bd9c7042100742d96688083bc1 [file] [log] [blame]
<#--
/*
* $Id$
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
-->
<link rel="stylesheet" href="${base}/struts/TabbedPanel.css" type="text/css"/>
<#if parameters.useSelectedTabCookie?exists && parameters.useSelectedTabCookie=="true">
<script type="text/javascript">
dojo.require("dojo.io.cookie");
dojo.addOnLoad (
function() {
var tabContainer = dojo.widget.byId("${parameters.escapedId?html}");
<#if !(parameters.selectedTab?if_exists != "")>
var selectedTab = dojo.io.cookie.getCookie("Struts2TabbedPanel_selectedTab_${parameters.escapedId?html}");
if (selectedTab) {
tabContainer.selectChild(selectedTab, tabContainer.correspondingPageButton);
}
</#if>
dojo.event.connect(tabContainer, "selectChild",
function (evt) {
dojo.io.cookie.setCookie("Struts2TabbedPanel_selectedTab_${parameters.escapedId?html}", evt.widgetId, 1, null, null, null);
}
)
}
);
</script>
</#if>
<div dojoType="struts:StrutsTabContainer"
<#if parameters.cssStyle?if_exists != "">
style="${parameters.cssStyle?html}"<#rt/>
</#if>
<#if parameters.id?if_exists != "">
id="${parameters.id?html}"<#rt/>
</#if>
<#if parameters.cssClass?if_exists != "">
class="${parameters.cssClass?html}"<#rt/>
</#if>
<#if parameters.selectedTab?if_exists != "">
selectedTab="${parameters.selectedTab?html}"<#rt/>
</#if>
<#if parameters.labelPosition?if_exists != "">
labelPosition="${parameters.labelPosition?html}"<#rt/>
</#if>
<#if parameters.closeButton?if_exists != "">
closeButton="${parameters.closeButton?html}"<#rt/>
</#if>
<#if parameters.doLayout?exists>
doLayout="${parameters.doLayout?string?html}"<#rt/>
</#if>
<#if parameters.label?if_exists != "">
label="${parameters.label?html}"<#rt/>
</#if>
<#if parameters.templateCssPath?exists>
templateCssPath="<@s.url value='${parameters.templateCssPath}' encode="false" includeParams='none'/>"
</#if>
<#if parameters.beforeSelectTabNotifyTopics?if_exists != "">
beforeSelectTabNotifyTopics="${parameters.beforeSelectTabNotifyTopics?html}"<#rt/>
</#if>
<#if parameters.afterSelectTabNotifyTopics?if_exists != "">
afterSelectTabNotifyTopics="${parameters.afterSelectTabNotifyTopics?html}"<#rt/>
</#if>
<#if parameters.disabledTabCssClass?if_exists != "">
disabledTabCssClass="${parameters.disabledTabCssClass?html}"<#rt/>
</#if>
<#include "/${parameters.templateDir}/simple/scripting-events.ftl" />
<#include "/${parameters.templateDir}/simple/common-attributes.ftl" />
>