Subversion Repositories Sigmater

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6 Andrea 1
<#--
2
/*
3
 * $Id: pom.xml 560558 2007-07-28 15:47:10Z apetrelli $
4
 *
5
 * Licensed to the Apache Software Foundation (ASF) under one
6
 * or more contributor license agreements.  See the NOTICE file
7
 * distributed with this work for additional information
8
 * regarding copyright ownership.  The ASF licenses this file
9
 * to you under the Apache License, Version 2.0 (the
10
 * "License"); you may not use this file except in compliance
11
 * with the License.  You may obtain a copy of the License at
12
 *
13
 *  http://www.apache.org/licenses/LICENSE-2.0
14
 *
15
 * Unless required by applicable law or agreed to in writing,
16
 * software distributed under the License is distributed on an
17
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
 * KIND, either express or implied.  See the License for the
19
 * specific language governing permissions and limitations
20
 * under the License.
21
 */
22
-->
23
<script type="text/javascript">
24
  dojo.require("dojo.widget.TabContainer");
25
  dojo.require("dojo.widget.LinkPane");
26
  dojo.require("dojo.widget.ContentPane");
27
  <#if parameters.useSelectedTabCookie?exists && parameters.useSelectedTabCookie=="true">
28
  dojo.require("dojo.io.cookie");
29
  dojo.addOnLoad (
30
        function() {
31
            var tabContainer = dojo.widget.byId("${parameters.escapedId?html}");
32
 
33
            <#if !(parameters.selectedTab?if_exists != "")>
34
            var selectedTab = dojo.io.cookie.getCookie("Struts2TabbedPanel_selectedTab_${parameters.escapedId?html}");
35
            if (selectedTab) {
36
                tabContainer.selectChild(selectedTab, tabContainer.correspondingPageButton);
37
            }
38
 
39
            </#if>
40
            dojo.event.connect(tabContainer, "selectChild",
41
                    function (evt) {
42
                        dojo.io.cookie.setCookie("Struts2TabbedPanel_selectedTab_${parameters.escapedId?html}", evt.widgetId, 1, null, null, null);
43
                    }
44
                )
45
            }
46
        );
47
  </#if>
48
</script>
49
 
50
<div dojoType="TabContainer"
51
  <#if parameters.cssStyle?if_exists != "">
52
    style="${parameters.cssStyle?html}"<#rt/>
53
  </#if>
54
  <#if parameters.id?if_exists != "">
55
    id="${parameters.id?html}"<#rt/>
56
  </#if>
57
  <#if parameters.cssClass?if_exists != "">
58
    class="${parameters.cssClass?html}"<#rt/>
59
  </#if>
60
  <#if parameters.selectedTab?if_exists != "">
61
    selectedTab="${parameters.selectedTab?html}"<#rt/>
62
  </#if>
63
  <#if parameters.labelPosition?if_exists != "">
64
    labelPosition="${parameters.labelPosition?html}"<#rt/>
65
  </#if>
66
  <#if parameters.closeButton?if_exists != "">
67
    closeButton="${parameters.closeButton?html}"<#rt/>
68
  </#if>
69
  <#if parameters.doLayout?exists>
70
    doLayout="${parameters.doLayout?string?html}"<#rt/>
71
  </#if>
72
  <#if parameters.templateCssPath?exists>
73
	templateCssPath="<@s.url value='${parameters.templateCssPath}' encode="false" includeParams='none'/>"
74
  </#if>
75
>