struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Laurie Harper <lau...@holoweb.net>
Subject Re: [S2] checkboxes in each row of table - set values in action
Date Wed, 02 Apr 2008 20:13:38 GMT
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/changing the boolean permission value I use S2 checkbox tag
> 
> so far it works fine and show all data in collection of Users correct.
> 
> But how can I set changed checkbox values (the permission attribute) back to
> action?

If your checkbox is bound the the permission property of the user, 
submitting the form should update the property. If that's not happening, 
you need to give more details: what your JSP code looks like, and the 
relevant bits of your action and User code, at least.

L.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message