You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2008/01/27 17:52:05 UTC

[jira] Created: (WW-2460) s:component does not load tabbedpanel.ftl

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


<%@taglib 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 &lt;s:component ... &gt; 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.


[jira] Resolved: (WW-2460) s:component does not load tabbedpanel.ftl

Posted by "Musachy Barroso (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Musachy Barroso resolved WW-2460.
---------------------------------

    Resolution: Not A Problem

I think you are better off asking this question on the users mailing list. If something is rendered, then the component tag is doing what it is supposed to do, but there is a dojo configuration problem somewhere, like missing the head tag, or missing an include, I see that some includes are written by hand here.

> 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
>             Fix For: 2.1.3
>
>
> <%@taglib 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 &lt;s:component ... &gt; 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.


[jira] Updated: (WW-2460) s:component does not load tabbedpanel.ftl

Posted by "Don Brown (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/struts/browse/WW-2460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Don Brown updated WW-2460:
--------------------------

    Fix Version/s: 2.1.3

> 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
>             Fix For: 2.1.3
>
>
> <%@taglib 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 &lt;s:component ... &gt; 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.