1 package org.kuali.ole.krad; 2 3 import java.util.List; 4 5 import org.kuali.rice.core.api.util.KeyValue; 6 import org.kuali.rice.krad.uif.component.Component; 7 import org.kuali.rice.krad.uif.control.SelectControl; 8 import org.kuali.rice.krad.uif.view.View; 9 10 public class OleSelectControl extends SelectControl { 11 12 private static final long serialVersionUID = -4788433260315348270L; 13 14 @Override 15 public List<KeyValue> getOptions() { 16 synchronized (this) { 17 return super.getOptions(); 18 } 19 } 20 21 @Override 22 public void performApplyModel(View view, Object model, Component parent) { 23 synchronized (this) { 24 List<KeyValue> options = getOptions(); 25 try { 26 setOptions(null); 27 super.performApplyModel(view, model, parent); 28 } finally { 29 setOptions(options); 30 } 31 } 32 } 33 34 }