Re: [S2] checkboxes in each row of table - set values in action

2008-04-09 Thread Laurie Harper
lbastil wrote: Thank you for the help. But I could not get it to work. Here is a code sample from the Action Class: private Set traegerPermissions; The class TraegerPermissions itself have another collection: private Collection einrichtungen; And both TraegerPermission an

Re: [S2] checkboxes in each row of table - set values in action

2008-04-07 Thread lbastil
Thank you for the help. But I could not get it to work. Here is a code sample from the Action Class: ... private Set traegerPermissions; ... The class TraegerPermissions itself have another collection: ... private Collection einrichtungen; ... In jsp I have successful read access: ...

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread Laurie Harper
Provided the checkbox is properly bound to the collection entry, yes. You need to specify the name of the s:checkbox (or any other input type) as userCollection[index].userProperty where 'userCollection' is the name of the Collection property on your action, index comes from the iterator and us

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread lbastil
Thank you for reply! I just wonder: I understand it would work out of box for 1 User-Object, if I bound checkbox to permission property of this user. But I wonder it should work out of box if I use (as I described) Collection of Users in Action and on jsp side iterator tag, and checkbox tag with

Re: [S2] checkboxes in each row of table - set values in action

2008-04-02 Thread Laurie Harper
lbastil wrote: Hello, I have the following problem: in action i have a collection of class User each class User have different attributes, one is: boolean permission in JSP I use struts 2 iterator tag to iterate the User Objects. For each User entry I create one row in table. for displaying/ch