Just an option to try...instead of primitive boolean use Boolean object... 
perhaps it will map to it.
 
e.g.
public class UserVO {
        private String loginName;
        private String name;
        private Boolean disabled;
        private List<RoleVO> roles;
...
 
Best regards,
Ruslan

________________________________

From: jborys [mailto:john_bo...@comcast.net]
Sent: Wed 03/06/2009 12:46 PM
To: stripes-users@lists.sourceforge.net
Subject: [Stripes-users] Checkbox List Issue




I am trying to implement security using users and roles as outlined in
Freddy's book.  Unfortunately, I am having trouble getting the checkbox
values passed back to the action bean.

I have a List of Users that is dynamic.  Each users has a List of Roles as
well.

public class UserVO {
        private String loginName;
        private String name;
        private boolean disabled;
        private List<RoleVO> roles;

/* getters and setters */

}

public class RoleVO {
        private Long id;
        private Long parentId;
        private String name;
        private String description;

/* getters and setters */

}

I am wondering if the reason for this has to do with my using Hibernate and
the Book examples use JPA?  Why are the selected Roles not populated in the
action bean?

Is this because the JPA Annotations can identify the object and retrieve it
from the database on an as needed basis?  If so, how do I emulate this using
Hibernate? If not, does anyone have any idea how to proceed?

Thank you very much in advance for your time.

--
View this message in context: 
http://www.nabble.com/Checkbox-List-Issue-tp23855054p23855054.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises
looking to deploy the next generation of Solaris that includes the latest
innovations from Sun and the OpenSource community. Download a copy and
enjoy capabilities such as Networking, Storage and Virtualization.
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users



***************************************************************************************************
The information in this email is confidential and may be legally privileged. 
Access to this email by anyone other than the intended addressee is 
unauthorized. If you are not the intended recipient of this message, any 
review, disclosure, copying, distribution, retention, or any action taken or 
omitted to be taken in reliance on it is prohibited and may be unlawful. If you 
are not the intended recipient, please reply to or forward a copy of this 
message to the sender and delete the message, any attachments, and any copies 
thereof from your system.
***************************************************************************************************

<<winmail.dat>>

------------------------------------------------------------------------------
OpenSolaris 2009.06 is a cutting edge operating system for enterprises 
looking to deploy the next generation of Solaris that includes the latest 
innovations from Sun and the OpenSource community. Download a copy and 
enjoy capabilities such as Networking, Storage and Virtualization. 
Go to: http://p.sf.net/sfu/opensolaris-get
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to