Listitem item = lb_secRight_RightType.getSelectedItem();
if (item != null) {
checkbox_SecRightList_ShowAll.setChecked(false); // clear
// casting to the needed object
SecTyp type = (SecTyp) item.getAttribute("data");
if (type.getStpId() > -1) {
soSecRight = new HibernateSearchObject<SecRight>(SecRight.class, getCountRows());
soSecRight.addSort("rigName", false);
soSecRight.addFilter(new Filter("rigType", type.getStpId(), Filter.OP_EQUAL));
if (!tb_SecRightList_rigName.getValue().isEmpty()) {
// mixed search statement -> like RightName + RightType
soSecRight.addFilter(new Filter("rigName", "%" + tb_SecRightList_rigName.getValue() + "%", Filter.OP_ILIKE));