Tabela no JSF

0 respostas
W

Olá…

Tenho o seguinte problema…

Uma tabela exibe diversos registros de uma tabela… Existe um checkbox para selecionar alguns itens.

Existe uma coluna que mostra valores ou numéricos, ou alfa-numéricos…

Preciso colocar um botão, que, ao ser pressionado, selecione só os alfa-numéricos e outro q selecione o inverso…

Tentei o seguinte:

int intTotalRows = getTableRowGroup2().getRowCount(); RowKey[] rk = getTableRowGroup2().getRowKeys(); String strNrItem = ""; for(int x = 0; x < rk.length; x++){ strNrItem = String.valueOf(fso_itens_fsoDataProvider.getValue("nr_item", rk[x])); if(!Util.isNumber(strNrItem)){ getTableRowGroup2().setSelected(true);//isso manda selecionar todos... preciso selecionar só o atual... } }

Alguma sugestão?!

Valeu pessoal!

Criado 29 de abril de 2008
Respostas 0
Participantes 1