Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
ActionFieldJsOverride |
|
| 1.5;1.5 |
1 | package org.kuali.student.enrollment.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 | 0 | public class ActionFieldJsOverride extends ActionField{ |
12 | ||
13 | @Override | |
14 | public void setClientSideJs(String js){ | |
15 | 0 | if(StringUtils.isEmpty(this.getClientSideJs())){ |
16 | 0 | super.setClientSideJs(js); |
17 | } | |
18 | 0 | } |
19 | ||
20 | public void setJumpToIdAfterSubmit(){ | |
21 | //do nothing, dont want this behavior | |
22 | 0 | } |
23 | } |