com.ibm.xsp.actions
Class SaveAction

java.lang.Object
  extended by javax.faces.el.MethodBinding
      extended by com.ibm.xsp.binding.MethodBindingEx
          extended by com.ibm.xsp.actions.SaveAction
All Implemented Interfaces:
ComponentBindingObject, ValueBindingObject, javax.faces.component.StateHolder

public class SaveAction
extends MethodBindingEx

An action to save all DataSources on the current XPage, and optionally navigate to a different XPage.


Field Summary
 
Fields inherited from class com.ibm.xsp.binding.MethodBindingEx
ENABLE_SOURCEID
 
Constructor Summary
SaveAction()
           
 
Method Summary
 java.lang.String getName()
          null or the page name of the next XPage to open, like "/page2.xsp".
 java.lang.Class getType(javax.faces.context.FacesContext context)
           
 java.lang.Object invoke(javax.faces.context.FacesContext context, java.lang.Object[] params)
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object value)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class com.ibm.xsp.binding.MethodBindingEx
getComponent, getFacesContext, getParamNames, getParent, getSourceReferenceId, getValueBinding, isTransient, normalizePageName, setComponent, setParamNames, setParent, setSourceReferenceId, setTransient, setValueBinding
 
Methods inherited from class javax.faces.el.MethodBinding
getExpressionString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SaveAction

public SaveAction()
Method Detail

getName

public java.lang.String getName()
null or the page name of the next XPage to open, like "/page2.xsp". When the value is null, then the action does not navigate to a new page, but remains on the current page.

Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Parameters:
name - Set the value of the name attribute

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class MethodBindingEx

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object value)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class MethodBindingEx

invoke

public java.lang.Object invoke(javax.faces.context.FacesContext context,
                               java.lang.Object[] params)
                        throws javax.faces.el.EvaluationException,
                               javax.faces.el.MethodNotFoundException
Specified by:
invoke in class javax.faces.el.MethodBinding
Throws:
javax.faces.el.EvaluationException
javax.faces.el.MethodNotFoundException

getType

public java.lang.Class getType(javax.faces.context.FacesContext context)
                        throws javax.faces.el.MethodNotFoundException
Specified by:
getType in class javax.faces.el.MethodBinding
Throws:
javax.faces.el.MethodNotFoundException