| java.lang.Object org.apache.beehive.netui.script.common.ImplicitObjectUtil
ImplicitObjectUtil | final public class ImplicitObjectUtil (Code) | | Utilities for loading NetUI implicit objects into various data binding scopes such as the
PageContext, ServletRequest, HttpSession, and ServletContext.
|
Method Summary | |
public static GlobalApp | getGlobalApp(ServletRequest request) Internal method!
This method is used by the expression engine to get the current global app. | public static PageFlowController | getPageFlow(ServletRequest request, ServletResponse response) Internal method!
This method is used by the expression engine to get the current page flow. | public static VariableResolver | getReadVariableResolver(JspContext jspContext) Internal method!
Create a
VariableResolver that contains the implicit objects available for
expression reads. | public static Map | getSharedFlow(ServletRequest request) Get the
Map of shared flow objects from the request. | public static VariableResolver | getUpdateVariableResolver(ServletRequest request, ServletResponse response, boolean isHandlingPost) Internal method!
Create a
VariableResolver that contains the implicit objects available for expression
updates. | public static VariableResolver | getUpdateVariableResolver(Object form, ServletRequest request, ServletResponse response, boolean isHandlingPost) Internal method!
Create a
VariableResolver that contains the implicit objects available for expression
updates. | public static void | loadActionForm(JspContext jspContext, Object form) Load the given form into the
JspContext object. | public static void | loadBundleMap(ServletRequest request, BundleMap bundleMap) Load the resource bundle binding map into the request. | public static void | loadFacesBackingBean(ServletRequest request, FacesBackingBean facesBackingBean) Load the JSF backing bean into the request. | public static void | loadGlobalApp(ServletRequest request, GlobalApp globalApp) | public static void | loadImplicitObjects(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, PageFlowController currentPageFlow) Load the NetUI framework's implicit objects into the request. | public static void | loadOutputFormBean(ServletRequest request, Object bean) Load the output form bean into the request. | public static void | loadPageFlow(ServletRequest request, PageFlowController pageFlow) Load Page Flow related implicit objects into the request. | public static void | loadSharedFlow(ServletRequest request, Map sharedFlows) Load the shared flow into the request. | public static void | unloadActionForm(JspContext jspContext) Remove any action form present in the
JspContext . | public static void | unloadFacesBackingBean(ServletRequest request) | public static Object | unwrapForm(Object form) If applicable, unwrap the given form object to its native backing object. |
getGlobalApp | public static GlobalApp getGlobalApp(ServletRequest request)(Code) | | Internal method!
This method is used by the expression engine to get the current global app. If no global app
is found, an exception will be thrown.
Parameters: request - the request the global app |
getPageFlow | public static PageFlowController getPageFlow(ServletRequest request, ServletResponse response)(Code) | | Internal method!
This method is used by the expression engine to get the current page flow. If no page flow is
found, an exception will be thrown.
Parameters: request - the request Parameters: response - the response the page flow |
getReadVariableResolver | public static VariableResolver getReadVariableResolver(JspContext jspContext)(Code) | | Internal method!
Create a
VariableResolver that contains the implicit objects available for
expression reads.
Parameters: jspContext - the jsp context the variable resolver |
getSharedFlow | public static Map getSharedFlow(ServletRequest request)(Code) | | Get the
Map of shared flow objects from the request.
Parameters: request - the shared flows |
loadActionForm | public static void loadActionForm(JspContext jspContext, Object form)(Code) | | Load the given form into the
JspContext object. Because the
framework supports any bean action forms, the type of the form is
Object Parameters: jspContext - the jsp context Parameters: form - the form object |
loadBundleMap | public static void loadBundleMap(ServletRequest request, BundleMap bundleMap)(Code) | | Load the resource bundle binding map into the request.
Parameters: request - the request Parameters: bundleMap - the java.util.Map of resource bundles |
loadFacesBackingBean | public static void loadFacesBackingBean(ServletRequest request, FacesBackingBean facesBackingBean)(Code) | | Load the JSF backing bean into the request.
Parameters: request - the request Parameters: facesBackingBean - the JSF backing bean |
loadGlobalApp | public static void loadGlobalApp(ServletRequest request, GlobalApp globalApp)(Code) | | Load the global app into the request
Parameters: request - the request Parameters: globalApp - the global app |
loadImplicitObjects | public static void loadImplicitObjects(HttpServletRequest request, HttpServletResponse response, ServletContext servletContext, PageFlowController currentPageFlow)(Code) | | Load the NetUI framework's implicit objects into the request.
Parameters: request - the request Parameters: response - the response Parameters: servletContext - the servlet context Parameters: currentPageFlow - the current page flow |
loadOutputFormBean | public static void loadOutputFormBean(ServletRequest request, Object bean)(Code) | | Load the output form bean into the request.
Parameters: request - the request Parameters: bean - the output form bean |
loadPageFlow | public static void loadPageFlow(ServletRequest request, PageFlowController pageFlow)(Code) | | Load Page Flow related implicit objects into the request. This method will set the
Page Flow itself and any available page inputs into the request.
Parameters: request - the request Parameters: pageFlow - the current page flow |
loadSharedFlow | public static void loadSharedFlow(ServletRequest request, Map sharedFlows)(Code) | | Load the shared flow into the request.
Parameters: request - the request Parameters: sharedFlows - the current shared flows |
unloadActionForm | public static void unloadActionForm(JspContext jspContext)(Code) | | Remove any action form present in the
JspContext .
Parameters: jspContext - the jsp context |
unloadFacesBackingBean | public static void unloadFacesBackingBean(ServletRequest request)(Code) | | Unload the JSF backing bean from the request
Parameters: request - the request |
unwrapForm | public static Object unwrapForm(Object form)(Code) | | If applicable, unwrap the given form object to its native backing object. If
the type of this form is a
AnyBeanActionForm , the type returned will be the
native object backing the wrapper.
Parameters: form - the form the unwrapped form |
|
|