/** * Constructor for list view in selection mode. * * @param id component id * @param model model for contact * @param caller The calling page. * @param selectProperty The property (name) of the caller to select. * @param objectId The id of the object to select on click. * @param label The label to show (additional to the row_pointer.png). The id of the label should be LABEL_ID. */ public ListSelectActionPanel(final String id, final IModel<?> model, final ISelectCallerPage caller, final String selectProperty, final Integer objectId, final Label label) { super(id, model); setRenderBodyOnly(true); final Link<?> link = new Link<Void>("select") { @Override public void onClick() { WicketUtils.setResponsePage(this, caller); caller.select(selectProperty, objectId); } }; add(link); add(label); }
setRenderBodyOnly(true); final Link<?> link = new Link<Void>(LINK_ID)