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

Miguel Diaz commented on WW-2357:
---------------------------------

I fixed this locally in my proyect (that uses version 2.1.8.1 of Struts), by 
adding the following lines after line 88:

    <#if parameters.doubleHeaderKey?exists && 
parameters.doubleHeaderValue?exists>
      ${parameters.id}Group[${itemCount}][${doubleItemCount}] = new 
Option("${parameters.doubleHeaderValue}", "${parameters.doubleHeaderKey}");
      <#assign doubleItemCount = doubleItemCount + 1/>
    </#if>
    <#if parameters.doubleEmptyOption?default(false)>
      ${parameters.id}Group[${itemCount}][${doubleItemCount}] = new Option("", 
"");
      <#assign doubleItemCount = doubleItemCount + 1/>
    </#if>

                
> doubleEmptyOption, doubleHeaderKey and doubleHeaderValue ignored in 
> doubleselect tag
> ------------------------------------------------------------------------------------
>
>                 Key: WW-2357
>                 URL: https://issues.apache.org/jira/browse/WW-2357
>             Project: Struts 2
>          Issue Type: Bug
>    Affects Versions: 2.0.11
>            Reporter: Marcello Teodori
>             Fix For: Future
>
>
> In the doubleselect tag the doubleEmptyOption, doubleHeaderKey and 
> doubleHeaderValue parameter are ignored, from what I can see in the code the 
> doubleselect.ftl template does not reference these variables so I guess the 
> functionality is missing.
> It would be also useful to have two separated labels for the two selects with 
> a parameter called for example doubleLabel.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to