It could be well related. Why don't you try to have public default constructor 
also? Looks like injection dove via setXXX methods (not constructor based).
 
Also, try adding cme.admin.valueobjects.RoleVO(String myParam) 
constructor...based on the error below looks like it is looking for it...
 
Best regards,
Ruslan

________________________________

From: john_bo...@comcast.net [mailto:john_bo...@comcast.net]
Sent: Wed 03/06/2009 4:42 PM
To: Zenin, Ruslan
Subject: Re: Checkbox List Issue



If only...
Unfortunately that column/attribute wasn't even Freddy's book, it's just a 
field we use internally for turning user access off entirely.  Actually I 
believe it is supposed to map to roles selected for a particular user.

I think this may be linked to another error I am getting when I submit the form:

[15:39:04] WARN  net.sourceforge.stripes.controller.DefaultActionBeanPropertyBin
der  - Looks like type converter null threw an exception.
java.lang.NoSuchMethodException: cme.admin.valueobjects.RoleVO.<init>(java.lang.
String)
        at java.lang.Class.getConstructor0(Class.java:2678)
        at java.lang.Class.getConstructor(Class.java:1629)
        at net.sourceforge.stripes.controller.DefaultActionBeanPropertyBinder.co
nvert(DefaultActionBeanPropertyBinder.java:795)


I have seen this error elsewhere on the forum, but have not seen the resolution
or else don't understand what I have seen here:
http://www.nabble.com/Confusion-with-Stripes-Multiple-Select-Options-and-Nested-Collections-td17090307.html





Zenin, Ruslan wrote:
>
> 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.
> ***************************************************************************************************
>
> 
> ------------------------------------------------------------------------------
> 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
>
>
Quoted from:
http://www.nabble.com/Checkbox-List-Issue-tp23855054p23858750.html




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

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