Skip to content

Commit

Permalink
fix for 9484 Plus and minus buttons don't work in account details for…
Browse files Browse the repository at this point in the history
… multi-valued attributes
  • Loading branch information
KaterynaHonchar committed Apr 26, 2024
1 parent b89a73e commit b171beb
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,20 @@

import com.evolveum.midpoint.gui.api.prism.wrapper.ResourceAttributeWrapper;

import org.apache.wicket.Component;
import org.apache.wicket.ajax.AjaxRequestTarget;
import org.apache.wicket.model.IModel;

import com.evolveum.midpoint.util.logging.Trace;
import com.evolveum.midpoint.util.logging.TraceManager;

import java.io.Serial;

/**
* @author katkav
*/
public class ResourceAttributeDefinitionPanel<T> extends PrismPropertyPanel<T> {

private static final long serialVersionUID = 1L;
@Serial private static final long serialVersionUID = 1L;
private static final Trace LOGGER = TraceManager.getTrace(ResourceAttributeDefinitionPanel.class);

private static final String ID_HEADER = "header";
Expand All @@ -36,7 +38,14 @@ public ResourceAttributeDefinitionPanel(String id, IModel<ResourceAttributeWrapp

@Override
protected ItemHeaderPanel createHeaderPanel() {
return new ResourceAttributeDefinitionHeaderPanel<>(ID_HEADER, getResourceAttributeDefinitionModel());
return new ResourceAttributeDefinitionHeaderPanel<>(ID_HEADER, getResourceAttributeDefinitionModel()) {
@Serial private static final long serialVersionUID = 1L;

@Override
protected void refreshPanel(AjaxRequestTarget target) {
target.add(ResourceAttributeDefinitionPanel.this);
}
};
}

private IModel<ResourceAttributeWrapper<T>> getResourceAttributeDefinitionModel(){
Expand Down

0 comments on commit b171beb

Please sign in to comment.