You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by James Cook <Ja...@wecomm.com> on 2009/09/21 12:09:24 UTC
cssClass with CheckboxList
Hi All,
I am trying to have my inputs generated from a checkbox list use a
certain css class. However when I use cssClass the class attribute
doesn't show up in the html.
JSP:
<s:checkboxlist cssClass="myClass" label="My Boxes" key="boxIds"
list="boxList" listKey="id" listValue="name" />
HTML Generated:
<input name=" boxIds" value="7" id=" boxIds-1" type="checkbox">
<label for=" boxIds-1" class="checkboxLabel">myValue</label>
I have tried using different themes e.g. theme="simple"
Am I doing something fundamentally wrong?
James
___________________________________________________________________
This email has been scanned by MessageLabs on behalf of weComm Ltd.
___________________________________________________________________