Skip to content

Instantly share code, notes, and snippets.

@frankely
Forked from aprofetb/gist:4369222
Created February 24, 2014 12:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frankely/9187145 to your computer and use it in GitHub Desktop.
Save frankely/9187145 to your computer and use it in GitHub Desktop.
public void selectedRowsCount(ActionEvent actionEvent)
{
UIComponent comp = actionEvent.getComponent();
RichTable table = (RichTable)comp.getAttributes().get("tableInstance");
RowKeySet rks = table.getSelectedRowKeys();
System.out.println(String.format("The table with id='%s' have %d selected rows", table.getId(), rks.getSize()));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment