|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--XULFacesBridge
Defines a bridge between a XUL client and a JSF application.
Field Summary | |
Object |
components
Components array |
Object |
componentsIndex
Current component index |
Object |
logger
The logger |
Object |
responseXml
The current responseXml object (from last send invocation) |
Object |
serverUrl
The server URL |
Constructor Summary | |
XULFacesBridge
(serverUrl)
|
Method Summary | |
void
|
addComponent(clientId,state,removeAfterSubmitted)
Add a FacesComponent object to components. This FacesComponent is intended to exist on server side. |
void
|
cleanComponents()
|
void
|
executeAction(clientId)
Execute JSF action with clientId (map to UIComponent client id). |
void
|
executeAsynchronousAction(clientId)
Execute JSF action with clientId (map to UIComponent client id). |
Object
|
extractErrors(errorXML)
Extract errors from XML doc. Seek exception tag, if found, extract children nodes from tag and build a message. |
void
|
fireEventOnServerSide(componentId,eventName)
Execute a binded method on server side. |
Object
|
hasErrors(xml)
Check for exception tag in xml. |
Object
|
hasNotValid(xml)
Check for notValid tag in xml. |
void
|
mergeDOM(node,otherNode)
Merge DOM node with otherNode. Merge deeply. |
void
|
onCheckboxChange(event)
Checkbox change event handler. |
void
|
onDropDownChange(event)
Drop down change selection event handler. |
void
|
onListboxSelect(event)
List selection event handler. |
void
|
onRadioChange(event)
Radio change event handler. |
void
|
onRequestProgress()
|
void
|
onTextboxChange(event)
Checkbox change event handler. |
void
|
onTreeSelect(event)
Tree selection event handler. |
void
|
processHttpRequest(httpRequest)
Callback for processing asynchronous XmlHttpRequest. |
void
|
replaceNode(oldNode,newNode)
Replace oldNode with a new node. |
void
|
saveTreeSelection(tree)
|
Object
|
sendAsynchronousRequest()
Send the request asynchronously. FacesComponents are sent to serverUrl. |
Object
|
sendRequest()
Send the request. FacesComponents are sent to serverUrl. |
void
|
updateDOM(xml)
Update the document DOM with xml. |
void
|
watchDOM()
Watch zone into the document DOM. |
Field Detail |
Object components
Object componentsIndex
Object logger
Object responseXml
Object serverUrl
Constructor Detail |
XULFacesBridge(serverUrl)
serverUrl
- The JSF page (String)
Method Detail |
void addComponent(clientId,state,removeAfterSubmitted)
Add a FacesComponent object to components.
This FacesComponent is intended to exist on server side.
state
- The state of this component on client side (String)
id
- The client id (String)
void cleanComponents()
void executeAction(clientId)
Execute JSF action with clientId (map to UIComponent client id).
clientId
- The action clientId
void executeAsynchronousAction(clientId)
Execute JSF action with clientId (map to UIComponent client id).
clientId
- The action clientId
Object extractErrors(errorXML)
Extract errors from XML doc.
Seek exception tag, if found, extract children nodes from tag and build a message.
errorXML
- An XML document containing errors
void fireEventOnServerSide(componentId,eventName)
Execute a binded method on server side.
componentId
- The component id
eventName
- Event's name
Object hasErrors(xml)
Check for exception tag in xml.
xml
- An xml doc
Object hasNotValid(xml)
Check for notValid tag in xml.
xml
- An xml doc
void mergeDOM(node,otherNode)
Merge DOM node with otherNode.
Merge deeply.
node
- The current node to update
otherNode
- The otherNode to inspect and merge into node
void onCheckboxChange(event)
Checkbox change event handler.
event
- An event object
void onDropDownChange(event)
Drop down change selection event handler.
event
- An event object
void onListboxSelect(event)
List selection event handler.
event
- An event object
void onRadioChange(event)
Radio change event handler.
event
- An event object
void onRequestProgress()
void onTextboxChange(event)
Checkbox change event handler.
event
- An event object
void onTreeSelect(event)
Tree selection event handler.
event
- An event object
void processHttpRequest(httpRequest)
Callback for processing asynchronous XmlHttpRequest.
httpRequest
- An XMLHttpRequest object
void replaceNode(oldNode,newNode)
Replace oldNode with a new node.
oldNode
- The old node
newNode
- The new node
void saveTreeSelection(tree)
Object sendAsynchronousRequest()
Send the request asynchronously.
FacesComponents are sent to serverUrl.
Object sendRequest()
Send the request.
FacesComponents are sent to serverUrl.
void updateDOM(xml)
Update the document DOM with xml.
xml
- The xml document
void watchDOM()
Watch zone into the document DOM.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |