public static void addRowClick(final Item<?> cellItem) { final Item<?> row = (cellItem.findParent(Item.class)); WicketUtils.addRowClick(row); }
item.add(AttributeModifier.append("style", new Model<String>("white-space: nowrap;"))); final Item<?> row = item.findParent(Item.class); WicketUtils.addRowClick(row); cellItemListener.populateItem(item, componentId, rowModel);
@Override public void populateItem(final Item<ICellPopulator<TimesheetDO>> item, final String componentId, final IModel<TimesheetDO> rowModel) { final TimesheetDO timesheet = rowModel.getObject(); final TaskDO task = rowModel.getObject().getTask(); final Label label = new Label("label", task != null ? task.getTitle() : ""); final ListSelectActionPanel actionPanel = new ListSelectActionPanel(componentId, createRecentTimeSheetSelectionLink(timesheet), label); WicketUtils.addTooltip(label, WicketTaskFormatter.getTaskPath(task.getId(), false, OutputType.HTML)); item.add(actionPanel); final Item<?> row = item.findParent(Item.class); WicketUtils.addRowClick(row); cellItemListener.populateItem(item, componentId, rowModel); } });
@Override public void populateItem(final Item<ICellPopulator<VacationDO>> item, final String componentId, final IModel<VacationDO> rowModel) { final VacationDO vacation = rowModel.getObject(); item.add(new ListSelectActionPanel(componentId, rowModel, VacationEditPage.class, vacation.getId(), returnToPage, DateTimeFormatter.instance().getFormattedDate(vacation.getStartDate()))); cellItemListener.populateItem(item, componentId, rowModel); final Item<?> row = (item.findParent(Item.class)); WicketUtils.addRowClick(row); } });
WicketUtils.addRowClick(row); if (cost2 != null) { final ProjektDO project = cost2.getProjekt();