public class Dispatch
extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Dispatch.ViewCleanupListener |
| Modifier and Type | Method and Description |
|---|---|
static String |
getCurrentViewId(String featureId)
Get the view ID of the current page or null if one has yet to be loaded
|
static JSONObject |
loadPage(String viewId,
String lang,
String dir,
boolean newViewScope,
Integer clientStateIdentifier,
int[] clientStatesToRemove)
Loads an AMX page.
|
static String |
processAmxEvent(String nodeId,
String attributeName,
Object newAttributeValue,
String eventName,
AMXEvent event)
Called when an AMX event has been generated by the browser
|
static boolean |
validate(String nodeId)
Causes the node with the given ID to be validated.
|
public static JSONObject loadPage(String viewId, String lang, String dir, boolean newViewScope, Integer clientStateIdentifier, int[] clientStatesToRemove) throws AdfException
viewId - the view ID pointing to a valid AMX file (should not be a fragment)lang - the language set on the documentdirection - the value of the 'dir' HTML attributenewViewScope - if true a new view scope will be created for this viewclientStateIdentifier - the ID to use to store viewScope data for any nodesclientStatesToRemove - if any client states should be removed as part of loading this view. For example,
if this is a result of a back navigation, the current view scope needs to be popped/removed.AdfException - if an exception occurred during the loading of the viewpublic static String getCurrentViewId(String featureId)
featureId - the ID of the feature for which to get the viewpublic static String processAmxEvent(String nodeId,
String attributeName,
Object newAttributeValue,
String eventName,
AMXEvent event)
nodeId - the ID of the node that the event is forattributeName - the attribute name if this AMX event should set a new value on the node via the value
expression. This will be null if an attribute should not be changednewAttributeValue - the new value to seteventName - the name of the AMX eventevent - the eventpublic static boolean validate(String nodeId)
nodeId - the ID of the node that should be validated