struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lukasz Lenart (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-3584) convertToString in custom StrutsTypeConverter not called for multiple-valued tags (checkboxlist and select)
Date Fri, 11 Apr 2014 14:27:17 GMT

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

Lukasz Lenart commented on WW-3584:
-----------------------------------

I assume it isn't a problem anymore

> convertToString in custom StrutsTypeConverter not called for multiple-valued tags (checkboxlist
and select)
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: WW-3584
>                 URL: https://issues.apache.org/jira/browse/WW-3584
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Core Actions
>    Affects Versions: 2.2.1.1
>            Reporter: Antonino Virgillito
>            Assignee: Maurizio Cucchiara
>             Fix For: 2.3.18
>
>         Attachments: checkboxlist.ftl, checkboxlist.ftl, multivalueTest.zip
>
>
> I wrote a custom converter to map a list of custom type (List<MyBean>) to a s:checkboxlist
tag. When I submit the form the convertFromString() method is called, so I have the list correctly
populated with the selected values. 
> The problem is that it doesn't work the other way: when I try to pre-populate the form
from the values in the list, the tag is always empty, because the convertToString() method
is never called. Same happens for s:select with multiple="true". 
> I think it is a bug because if I change the tag to s:textfield, mapped to the same list,
convertToString() is called and text box is populated. 



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message