|
Struts example source code file (tabbedpanel.ftl)
The Struts tabbedpanel.ftl source code<#-- /* * $Id: tabbedpanel.ftl 590812 2007-10-31 20:32:54Z apetrelli $ * * 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" /> > Other Struts examples (source code examples)Here is a short list of links related to this Struts tabbedpanel.ftl source code file: |
... this post is sponsored by my books ... | |
#1 New Release! |
FP Best Seller |
Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.
A percentage of advertising revenue from
pages under the /java/jwarehouse
URI on this website is
paid back to open source projects.