s:component does not load tabbedpanel.ftl
-----------------------------------------
Key: WW-2460
URL: https://issues.apache.org/struts/browse/WW-2460
Project: Struts 2
Issue Type: Bug
Components: Plugin - Dojo Tags
Affects Versions: 2.0.11
Environment: firefox
J2SE 1.5
TC 5.5.17
struts 2.0.11
Reporter: Martin Gainty
Priority: Minor
<[EMAIL PROTECTED] prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>Showcase - Tags - UI Tags - Component Tag</title>
</head>
<body>
This example tries to demonstrates the usage of <s:component ... > tag.
specifically for template/simple/tabbedpanel.ftl
<p/>
this is the s:component tag which is supposed to load
/template/simple/tabbedPanel.ftl
<s:component
theme="simple"
templateDir="template"
template="tabbedpanel.ftl">
</s:component>
and this is s:tabbedPanel with an id='test' with selectedTab set at 'three'
<s:tabbedPanel id="test" name="test" required="true" theme="ajax"
disabled="false" selectedTab="three" title="title" labelposition="top">
<s:div id="one" label="one" theme="ajax" labelposition="top" >
This is the first pane<br/>
<s:form>
<s:textfield name="tt" label="Test Text"/> <br/>
<s:textfield name="tt2" label="Test Text2"/>
</s:form>
</s:div>
<s:div id="three" label="remote" theme="ajax"
href="/AjaxTest.action" >
This is the remote tab
</s:div>
</s:tabbedPanel>
</body>
</html>
here are the contents of /template/simple/tabbedpanel.ftl
<script type="text/javascript">
dojo.require("dojo.widget.TabContainer");
dojo.require("dojo.widget.LinkPane");
dojo.require("dojo.widget.ContentPane");
</script>
<div dojoType="TabContainer"
<#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.templateCssPath?exists>
templateCssPath="<@s.url value='${parameters.templateCssPath}'
encode="false" includeParams='none'/>"
</#if>
>
the tabbedpanel.ftl does not load
the tabbedPanel logic does not render but the div tags render
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.