| java.lang.Object com.jcorporate.expresso.services.controller.ui.DefaultAutoElement com.jcorporate.expresso.services.controller.ui.CacheAutoElement
CacheAutoElement | public class CacheAutoElement extends DefaultAutoElement (Code) | | implementation of the AutoController Element which also uses Form Cache to
set object values during creation phase. This is appropriate for times
when, after an error, user's typing should be preserved
author: Larry Hamel since: Expresso 5.3 |
retrieveCachedValueInForm | protected void retrieveCachedValueInForm(ControllerResponse response, String oneFieldName, Input i) throws ControllerException(Code) | | Used to set values in created db objects to the values found (if any)
in the form cache. (the form cache is what people type into an HTML form,
and if there is an error, we cache those values in order to send back the
form (with error message) and have their typing preserved for the next try.)
we override this method to have dbobjects
get the value form cache.
Parameters: i - the Input to retrieve from. Parameters: oneFieldName - the dataobject field name Parameters: response - the ControllerResponse. |
Methods inherited from com.jcorporate.expresso.services.controller.ui.DefaultAutoElement | public Block createDBObjectBlock(ControllerRequest request, ControllerResponse response, DataObject dbobj) throws ControllerException(Code)(Java Doc) public Block createDBObjectBlock(ControllerRequest request, ControllerResponse response, String title, DataObject dbobj) throws ControllerException(Code)(Java Doc) protected String displayValue(DataFieldMetaData metaData, Date dt, Locale l)(Code)(Java Doc) protected String displayValue(DataFieldMetaData metaData, String fieldValue, String fieldName, Locale l) throws ControllerException(Code)(Java Doc) public static synchronized AutoControllerElement getAutoControllerElement() throws ControllerException(Code)(Java Doc) public String getErrorStyle()(Code)(Java Doc) public String getNormalStyle()(Code)(Java Doc) public String getRequiredDecorator()(Code)(Java Doc) public String getRequiredStyle()(Code)(Java Doc) public DataObject parseBlock(ControllerRequest request, DataObject oneObject, ErrorCollection ec) throws ControllerException(Code)(Java Doc) public DataObject[] parseBlocks(ControllerRequest request, DataObject[] theObjects, ErrorCollection ec) throws ControllerException(Code)(Java Doc) public DataObject parseDBObject(ControllerRequest request, DataObject oneObject, ErrorCollection ec, boolean validate) throws ControllerException(Code)(Java Doc) public DataObject parseDBObject(ControllerRequest request, DataObject oneObject, ErrorCollection ec) throws ControllerException(Code)(Java Doc) public String parseSingleInput(ControllerRequest request, DataObject dbobj, String fieldName, String parameterName, ErrorCollection ec) throws ControllerException(Code)(Java Doc) public Input renderDBObjectField(ControllerResponse response, DataObject dbobj, String fieldName, String cachedValue, boolean readOnly) throws ControllerException(Code)(Java Doc) protected Input renderReadOnlyInput(ControllerResponse response, Input oneField, DataObject dbobj, String fieldName, String oneFieldValue) throws DBException, ControllerException(Code)(Java Doc) protected void renderReadWriteBlob(ControllerResponse response, Input oneField, DataObject dbobj, String fieldName, String oneFieldValue, String oneFieldSize) throws DBException, ControllerException(Code)(Java Doc) protected Input renderReadWriteInput(ControllerResponse response, Input oneField, DataObject dbobj, String fieldName, String oneFieldValue, String oneFieldSize) throws DBException, ControllerException(Code)(Java Doc) protected void retrieveCachedValueInForm(ControllerResponse response, String oneFieldName, Input i) throws ControllerException(Code)(Java Doc)
|
|
|