This content has been marked as final. 
    
Show                 5 replies
    
- 
        1. Re: selectManyCheckbox getting the selected valuesdhinojosa Jun 6, 2008 8:29 AM (in response to mbakkali)If role is an already established entity, then yes: <h:selectManyCheckbox value="#{userAdmin.selectedRoles}" style="border-top: 0px" > <s:selectItems value="#{userAdmin.availableRoles}" var="r" itemValue="#{r}" label="#{r}" /> <s:convertEntity/> </h:selectManyCheckbox>
- 
        2. Re: selectManyCheckbox getting the selected valuesmbakkali Jun 6, 2008 6:41 PM (in response to mbakkali)selectedRoles and availableRoles are both Lists of String. public class UserAdminAction implements UserAdmin { List<String> availableRoles; List<String> selectedRoles; ... }Also I have tried adding <s:convertEntity /> and this does not work. Any idea? 
- 
        3. Re: selectManyCheckbox getting the selected valuesmbakkali Jun 6, 2008 7:11 PM (in response to mbakkali)I actually found out that even if I use a 
 simple selectOneMenu, this does not work.<h:selectOneMenu value="#{userAdmin.selectedRole}" > <s:selectItems value="#{userAdmin.availableRoles}" var="r" label="#{r}" /> </h:selectOneMenu>This code is inside a <h:form> ... </h:form> Could there be something wrong with my action? 
- 
        4. Re: selectManyCheckbox getting the selected valuesmbakkali Jun 6, 2008 7:51 PM (in response to mbakkali)Ok I figured it out. The problem was that I was using: <s:button action="#{...}" />and in the JSF, there was the ajax tag 
 defined:xmlns:a="http://richfaces.org/a4j" Even using <h:commandButton action="#{...}" />will will not work if the ajax tag is defined (even if not used). Should this be considered as a bug? 
 Or is it a JSF-related issue?
- 
        5. Re: selectManyCheckbox getting the selected valuesdhinojosa Jun 6, 2008 8:07 PM (in response to mbakkali)Ooops, I am sorry, I didn't see that they were String. Well yeah those aren't entities so chuck the convertEntity. Can you show me everything in the <h:form> 
 ?
 
    