cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add checkbox "select rows" in customized table.

SOLVED
Highlighted

How to add checkbox "select rows" in customized table.

Friends,

I need add checkbox "select rows" in my customized table:

checkbox.jpg

The class that I'm moving is as follows:

@Override

public ComponentConfig buildComponentConfig(ComponentParams componentParams)

throws WTException {

ComponentConfigFactory factory = getComponentConfigFactory();

TableConfig table = factory.newTableConfig();

table.setLabel("Lista dos Fornecedores");

table.setView("/../../netmarkets/jsp/t3827/tableFornecedor.jsp");

table.addComponent(factory.newColumnConfig("number", true));

table.addComponent(factory.newColumnConfig("name", true));

table.setMenubarName ("forntablemenubar");

return table;

Can you help me?

Felipe Oliveira.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: How to add checkbox "select rows" in customized table.

table.setSelectable(true);

View solution in original post

2 REPLIES 2
Highlighted

Re: How to add checkbox "select rows" in customized table.

table.setSelectable(true);

View solution in original post

Highlighted

Re: How to add checkbox "select rows" in customized table.

Thank you Vasiliy,

Besides this, I also added the counter:


table.setShowCount(true);

It was perfect .

Felipe.

Announcements