Skip to content

Commit

Permalink
Fixed some of "Tried to retrieve a localized string for a component t…
Browse files Browse the repository at this point in the history
…hat has not yet been added to the page." messages
  • Loading branch information
mederly committed Dec 13, 2017
1 parent 617398e commit 37095a3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
Expand Up @@ -19,11 +19,8 @@

import com.evolveum.midpoint.gui.api.util.WebComponentUtil;
import com.evolveum.midpoint.prism.PrismContainerDefinition;
import com.evolveum.midpoint.schema.util.AdminGuiConfigTypeUtil;
import com.evolveum.midpoint.web.component.prism.ContainerStatus;
import com.evolveum.midpoint.web.component.util.VisibleEnableBehaviour;
import com.evolveum.midpoint.xml.ns._public.common.common_3.DetailsPageSaveMethodType;
import com.evolveum.midpoint.xml.ns._public.common.common_3.GuiObjectDetailsPageType;
import org.apache.commons.lang.Validate;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.extensions.markup.html.tabs.ITab;
Expand Down
Expand Up @@ -50,15 +50,17 @@ public class ExecuteChangeOptionsPanel extends BasePanel<ExecuteChangeOptionsDto
private final boolean showReconcileAffected;
private final boolean showKeepDisplayingResults;

public ExecuteChangeOptionsPanel(String id, IModel<ExecuteChangeOptionsDto> model, boolean showReconcile, boolean showReconcileAffected) {
public ExecuteChangeOptionsPanel(String id, IModel<ExecuteChangeOptionsDto> model,
boolean showReconcile, boolean showReconcileAffected) {
super(id, model);
this.showReconcile = showReconcile;
this.showReconcileAffected = showReconcileAffected;
showKeepDisplayingResults = getWebApplicationConfiguration().isProgressReportingEnabled();
initLayout();
}

public ExecuteChangeOptionsPanel(String id, IModel<ExecuteChangeOptionsDto> model, boolean showReconcile, boolean showReconcileAffected, boolean showKeepDisplayingResults) {
public ExecuteChangeOptionsPanel(String id, IModel<ExecuteChangeOptionsDto> model,
boolean showReconcile, boolean showReconcileAffected, boolean showKeepDisplayingResults) {
super(id, model);
this.showReconcile = showReconcile;
this.showReconcileAffected = showReconcileAffected;
Expand Down Expand Up @@ -90,7 +92,7 @@ private void createContainer(String containerId, CheckBox content, boolean show,
WebMarkupContainer container = new WebMarkupContainer(containerId);
container.add(content);
if (show) {
container.add(new AttributeModifier("title", createStringResource(helpKey).getString()));
container.add(new AttributeModifier("title", createStringResource(helpKey)));
}
container.setVisible(show);
add(container);
Expand Down

0 comments on commit 37095a3

Please sign in to comment.