Oracle Fusion Middleware Tag Reference for Oracle ADF Faces
12c (12.2.1.4.0)

E81455-02

<af:autoSaveBehavior>

autoSaveBehavior autosavebehavior


The autoSaveBehavior tag is a declarative way to be notified of component's dirty value in a set interval.

listener attribute needs to be bounded to a method with signature void myMethod(oracle.adf.view.rich.event.AutoSaveEvent)

Note at the end of the MethodExpression listener execution, FacesContext.renderResponse() will be invoked to keep what is displayed to the user and the server model's data in sync. So if the application desires to persist what is being displayed on the client, one should invoke component.setValue(dirtyValue) and update the model to sync the data on the client to the server's model. Furthermore, note that AutoSaveEvent.getType() returns two values.

Note: If EL is used in the EL supported attributes of this tag, this tag will not be stampable.


   <af:richTextEditor id="autoSaveRichTextEditor"
                   value="#{bean.value}">
      <af:autoSaveBehavior listener="#{bean.autoSaveEvent}" />
   </af:richTextEditor>
            
        

N/A

Attributes

Name Type Supports EL? Description
listener javax.el.MethodExpression Only EL A method reference to the listener for the handling of the dirty value void myMethod(oracle.adf.view.rich.event.AutoSaveEvent). idleTimeSubmit java.lang.Integer Yes Idle time in millisecond from which to submit the dirty value. Default 5 minutes with minimum that can be set to 30 sec.