Skip to content

Instantly share code, notes, and snippets.

@aprofetb
Last active December 10, 2015 02:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aprofetb/4369222 to your computer and use it in GitHub Desktop.
Save aprofetb/4369222 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