Hi James,

Click control use the #render method to render markup. I suggest you override that method to customize the markup for two columns ie. use a <table> and set the width explicitly on the columns.

regards

Bob


On 2011/08/09 19:27 PM, James Dekker wrote:
Am using the net.sf.click.extras.control.CheckList class to create a
visual list of multiple checkboxes to manage e-mail addresses.

Here's some sample code:

CheckList emailContactsCheckList = new CheckList(emailCheckList);

// Iterate through array contactList and add to CheckList also
concatenate String name to label
emailContactsCheckList.add(new Option(contactList[i].getEntry(), name
+ " " + contactList[i].getEntry());

When I run my web app, the check list appears like this:

checkbox John Doe [email protected]
checkbox Jane Doe [email protected]
checkbox Jeff Johnson [email protected]

As one can see, the names&  email addresses are not equally aligned
(vertically).

Is there a way to put two columns inside the CheckList:

e.g.

<tr>
       <td>$name></td>
       <td>$emailAddress</td>
</tr>

Thank you for taking the time to read this. Would appreciate a helpful response.


Reply via email to