@Override public void onClick() { try { Panel newPanel = webtaskboxService.getTaskPanel(task, "taskPanel"); newPanel.setOutputMarkupId(true); panel.replaceWith(newPanel); panel = newPanel; } catch (TaskboxException e) { LOGGER.error("Taskbox panel could not be started", e); } } };
private BaseModal<T> setInternalContent(final Panel component) { if (!component.getId().equals(getContentId())) { throw new WicketRuntimeException("Modal content id is wrong. " + "Component ID: " + component.getId() + "; content ID: " + getContentId()); } content.replaceWith(component); content = component; return this; }
contentPanel.replaceWith(flowPanel); contentPanel= flowPanel;
public ProjectKnowledgeBasePanel(String aId, final IModel<Project> aProject) { super(aId, aProject); setOutputMarkupId(true); projectModel = aProject; detailsPanel = new EmptyPanel(DETAILS_PANEL_MARKUP_ID); add(detailsPanel); selectedKnowledgeBaseModel = Model.of(); KnowledgeBaseListPanel listPanel = new KnowledgeBaseListPanel("list", projectModel, selectedKnowledgeBaseModel); listPanel.setChangeAction(t -> { addOrReplace(detailsPanel); detailsPanel.replaceWith( new KnowledgeBaseDetailsPanel(DETAILS_PANEL_MARKUP_ID, selectedKnowledgeBaseModel)); t.add(this); }); add(listPanel); }
public ProjectKnowledgeBasePanel(String aId, final IModel<Project> aProject) { super(aId, aProject); setOutputMarkupId(true); projectModel = aProject; detailsPanel = new EmptyPanel(DETAILS_PANEL_MARKUP_ID); add(detailsPanel); selectedKnowledgeBaseModel = Model.of(); KnowledgeBaseListPanel listPanel = new KnowledgeBaseListPanel("list", projectModel, selectedKnowledgeBaseModel); listPanel.setChangeAction(t -> { addOrReplace(detailsPanel); detailsPanel.replaceWith( new KnowledgeBaseDetailsPanel(DETAILS_PANEL_MARKUP_ID, selectedKnowledgeBaseModel)); t.add(this); }); add(listPanel); }