struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Huber (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4181) s:radio not selecting initial value correctly
Date Wed, 21 Aug 2013 13:25:52 GMT

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

Greg Huber edited comment on WW-4181 at 8/21/13 1:25 PM:
---------------------------------------------------------

...I was trying to use it like this:

Category is a class > Category().getId().getName(); in a list returned by getAllCategories()

<s:iterator var="category" value="allCategories" status="rowstatus">
<s:radio theme="nolabel" name="bean.selectedCategories" list="#category" listKey="id.name"
/>
</s:iterator>

whether or not it should be used with a parameter in name of String[] (bean.selectedCategories),
it makes it interchangeable with the checkboxlist, where it only allows a single selection,
and also works in the struts version.


Cheers Greg.
                
      was (Author: gregh99):
    ...I was trying to use it like this:

Category is a class > Category().getId().getName(); in a list returned by getAllCategories()

<s:iterator var="category" value="allCategories" status="rowstatus">
<s:radio name="bean.selectedCategories" list="{null}" listKey="id.name" listValue="blank"
/>
</s:iterator>

whether or not it should be used with a parameter in name of String[] (bean.selectedCategories),
it makes it interchangeable with the checkboxlist, where it only allows a single selection.

Alas the struts version blows up :( but this one works :)  Maybe I should close this one?
                  
> s:radio not selecting initial value correctly
> ---------------------------------------------
>
>                 Key: WW-4181
>                 URL: https://issues.apache.org/jira/browse/WW-4181
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Java Templates
>    Affects Versions: 2.3.15.1
>         Environment: Tomcat/centos
>            Reporter: Greg Huber
>            Priority: Minor
>         Attachments: radiohandler.patch
>
>
> Hello,
> The s:radio is not selecting its initial value correctly.  We need the same mods as in
checkboxlist ie
> private Boolean isChecked(Map<String, Object> params, String itemKeyStr) 
> method.
> Cheers Greg

--
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