struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johannes Geppert (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4142) jQuery plugin menu tag renders an unexpected toString() after upgrading to 2.3.15
Date Wed, 31 Jul 2013 17:55:48 GMT

    [ https://issues.apache.org/jira/browse/WW-4142?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13725499#comment-13725499
] 

Johannes Geppert commented on WW-4142:
--------------------------------------

Hi Lukasz,

I found a solution how to fix this in the Struts2 jQuery Plugin Templates.
Both templates menu-close.ftl and accordion-close.ftl including a section to generate
the items via the iterator tag.

{code} 
<@s.iterator value="parameters.list" status="rowstatus">
</@s.iterator>
{code} 

When I surround this tag with a list exists check the additional entries are gone away.

{code} 
<#if parameters.list?? >
<@s.iterator value="parameters.list" status="rowstatus">
</@s.iterator>
</#if>
{code} 

So the question is why the iterator tag iterates even when the list does not exists since
version 2.3.15?

Johannes 

                
> jQuery plugin menu tag renders an unexpected toString() after upgrading to 2.3.15
> ---------------------------------------------------------------------------------
>
>                 Key: WW-4142
>                 URL: https://issues.apache.org/jira/browse/WW-4142
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.3.15, 2.3.15.1
>         Environment: Struts2 jQuery Showcase
>            Reporter: Johannes Geppert
>             Fix For: 2.3.16
>
>         Attachments: struts2-jquery-menu-tag-problem.PNG, ww-4142.zip
>
>
> After testing Struts2 jQuery Plugin with 2.3.15 the menu tag renders an additional unexpected
menu item.
> <a href="javascript:void(0)">
> java.lang.Object@241e681f
> </a>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message