struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sravanthi Bobba (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4401) <s:select list="xyzlist" name="bean.someArray"></s:select> , if no selections made by user, the array gets injected with empty array instead of null and same is the case with List
Date Fri, 12 Sep 2014 12:37:33 GMT

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

Sravanthi Bobba commented on WW-4401:
-------------------------------------

Yes that is the only change, sorry could have given the example in the beginning. Thank you
once again for helping. 
<s:select id="xyzList" list="xyzList" name="myBean.xyzList" headerKey="-1" label="XYZ"
labelposition="top" style="width:100px" size="5" multiple="true"/>
myBean is a global variable Object with getters and setters in the ACTION Class with xyzList
as a List<String> in the myBean bean with getter and setters to set the value.  

> <s:select list="xyzlist" name="bean.someArray"></s:select> , if no selections
made by user, the array gets injected with empty array instead of null and same is the case
with List
> -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-4401
>                 URL: https://issues.apache.org/jira/browse/WW-4401
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Tags
>    Affects Versions: 2.3.16.3
>         Environment: Mac, Tomcat 6/7
>            Reporter: Sravanthi Bobba
>             Fix For: 2.5.x
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message