struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Muthu Velappan" <muthu.velap...@aspiresys.com>
Subject RE: checkboxlist
Date Thu, 26 Mar 2009 09:25:21 GMT

<s:checkboxlist required="true" key="permissions" list="activePermissions"
value="permissions" name="permissions">
	<s:param name="rowstyle" value="%{'row31'}" />
</s:checkboxlist>
 

list="activePermissions" hold the entire collection holding Map<Permission
Id, Perimssion Name>.
value="permissions" holds the Set<Permission Id> that are applicable for
this user. 

So, you can assume it like this.. The set you provide in "list" will get
rendered as checkboxes and set in "value" will be used to check the rendered
textboxes.

Hope this helps you...

~Muthu.
-----Original Message-----
From: Sandy.Verfaille@roularta.be [mailto:Sandy.Verfaille@roularta.be] 
Sent: Tuesday, March 24, 2009 3:53 PM
To: user@struts.apache.org
Subject: checkboxlist

Hi,
 
Can anyone tell me how I can make a checkboxlist on my jsp that knows
which checkbox should be checked and which not.
I have my list of objects with three strings.
string1: name (label for the checkbox)
string2: key (value that identifies which object is checked)
string3: true or false (that says if that checkbox should already be
checked)
 
But for the checkboxlist tag I see only the listValue and listKey
parameters that write a property of the object.
All the other properties are not dependent on the object of the list..
 
Thx,



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


Mime
View raw message