1 64 package com.jcorporate.expresso.services.controller.ui; 65 66 import com.jcorporate.expresso.core.controller.ControllerException; 67 import com.jcorporate.expresso.core.controller.ControllerResponse; 68 import com.jcorporate.expresso.core.controller.Input; 69 70 71 79 public class CacheAutoElement extends DefaultAutoElement { 80 81 94 protected void retrieveCachedValueInForm(ControllerResponse response, String oneFieldName, Input i) throws ControllerException { 95 if (response.getFormCache(oneFieldName).length() > 0) { 97 i.setDefaultValue(response.getFormCache(oneFieldName)); 98 } 99 } 100 } 101 | Popular Tags |