View Javadoc

1   package org.kuali.student.common.uif.field;
2   
3   import org.apache.commons.lang.StringUtils;
4   import org.kuali.rice.krad.uif.field.ActionField;
5   
6   /**
7    * This is somewhat of a hack, but is actually a valid implementation.
8    * The purpose of this class prevents the setting of ClientSideJs by the CollectionGroupBuilder if
9    * it already has a value set by the dictionary.
10   */
11  public class ActionFieldJsOverride extends ActionField{
12  
13      @Override
14      public void setActionScript(String js){
15          if(StringUtils.isEmpty(this.getActionScript())){
16              super.setActionScript(js);
17          }
18      }
19  
20      public void setJumpToIdAfterSubmit(){
21          //do nothing, dont want this behavior
22      }
23  }