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

Wes Wannemacher commented on WW-2863:
-------------------------------------

the onchange parameter is definitely eaten. After looking at freemarker 
templates for about 30 minutes and not finding anything, I found the culprit in 
org.apache.struts2.components.DoubleSelect.java. The line 
'addParameter("onchange", getParameters().get("id") + 
"Redirect(this.options.selectedIndex)");' will definitely eat anything you have 
set. It would probably be better to either fix the docs or store what the user 
specified and tack that onto what we are setting. 

> onchange handler doesn't fire on doubleselect tag
> -------------------------------------------------
>
>                 Key: WW-2863
>                 URL: https://issues.apache.org/struts/browse/WW-2863
>             Project: Struts 2
>          Issue Type: Bug
>            Reporter: Amy Nordberg
>
> doubleselect tag documentation (at 
> http://struts.apache.org/2.0.11.2/docs/doubleselect.html) says onchange is 
> supported.  But it doesn't fire (see below).
>                       <s:doubleselect formName="theForm" required="true" 
> requiredposition="left"
>                               key="facilityInstanceName"                
> doubleName="instanceName"
>                               list="facilityInstances"                        
>       doubleList="instances"
>                               listKey="facilityInstanceName"  
> doubleListKey="instanceName" 
>                               listValue="facilityInstanceName"        
> doubleListValue="instanceName"
>                               value="defaultFacility"         
> doubleValue="defaultInstance" 
>                                                                               
>         onchange="setFormButtons();/>
> See also the comments at 
> http://thefiles.macadamian.com/2008/04/struts-2-doubleselect-detailed-example.html.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to