Class myfaces._impl.xhrCore._AjaxUtils
Extends
myfaces._impl.xhrCore._FinalizeableObj.
Defined in: _AjaxUtils.js.
Constructor Attributes | Constructor Name and Description |
---|---|
A set of helper routines which are utilized within our Ajax subsystem and nowhere else
|
Method Attributes | Method Name and Description |
---|---|
appendIssuingItem(item, targetBuf)
appends the issuing item if not given already
|
|
appendViewState(parentNode, targetBuf)
appends the viewstate element if not given already
|
|
constructor_(onException, onWarning)
Constructor
|
|
encodeElement(element, targetBuf)
encodes a single input element for submission
|
|
encodePartialSubmit(node, submitAll, partialIds, targetBuf, targetBuf)
checks recursively if contained in PPS
the algorithm is as follows we have an issuing item
the parent form of the issuing item and a set of child ids which do not
have to be inputs, we scan now for those ids and all inputs which are childs
of those ids
Now this algorithm is up for discussion because it is relatively complex
but for now we will leave it as it is.
|
|
encodeSubmittableFields(request, context, item, parentItem, partialIds, partialIds)
determines fields to submit
|
Class Detail
myfaces._impl.xhrCore._AjaxUtils()
A set of helper routines which are utilized within our Ajax subsystem and nowhere else
Method Detail
appendIssuingItem(item, targetBuf)
appends the issuing item if not given already
- Parameters:
- item
- targetBuf
appendViewState(parentNode, targetBuf)
appends the viewstate element if not given already
- Parameters:
- parentNode
- targetBuf
- TODO dom level2 handling here, for dom level2 we can omit the check and readd the viewstate
constructor_(onException, onWarning)
Constructor
- Parameters:
- {function} onException
- - exception handler
- {function} onWarning
- - warning handler
encodeElement(element, targetBuf)
encodes a single input element for submission
- Parameters:
- {Node} element
- - to be encoded
- targetBuf
- - a target array buffer receiving the encoded strings
encodePartialSubmit(node, submitAll, partialIds, targetBuf, targetBuf)
checks recursively if contained in PPS
the algorithm is as follows we have an issuing item
the parent form of the issuing item and a set of child ids which do not
have to be inputs, we scan now for those ids and all inputs which are childs
of those ids
Now this algorithm is up for discussion because it is relatively complex
but for now we will leave it as it is.
- Parameters:
- {Node} node
- - the root node of the partial page submit
- {boolean} submitAll
- - if set to true, all elements within this node will be added to the partial page submit
- {Array} partialIds
- - an array of partial ids which should be used for the submit
- {Array} targetBuf
- a target string buffer which receives the encoded elements
- targetBuf
encodeSubmittableFields(request, context, item, parentItem, partialIds, partialIds)
determines fields to submit
- Parameters:
- {Object} request
- the xhr request object
- {Object} context
- (Map)
- {Node} item
- - item that triggered the event
- {Node} parentItem
- - form element item is nested in
- {Array} partialIds
- - ids fo PPS
- partialIds