Class XULFacesBridge

Object
   |
   +--XULFacesBridge

class XULFacesBridge


Defines a bridge between a XUL client and a JSF application.


Defined in xulfaces-bridge.js


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

components

Object components

componentsIndex

Object componentsIndex

logger

Object logger

responseXml

Object responseXml

serverUrl

Object serverUrl

Constructor Detail

XULFacesBridge

XULFacesBridge(serverUrl)

Method Detail

addComponent

void addComponent(clientId,state,removeAfterSubmitted)

cleanComponents

void cleanComponents()

executeAction

void executeAction(clientId)

executeAsynchronousAction

void executeAsynchronousAction(clientId)

extractErrors

Object extractErrors(errorXML)

fireEventOnServerSide

void fireEventOnServerSide(componentId,eventName)

hasErrors

Object hasErrors(xml)

hasNotValid

Object hasNotValid(xml)

mergeDOM

void mergeDOM(node,otherNode)

onCheckboxChange

void onCheckboxChange(event)

onDropDownChange

void onDropDownChange(event)

onListboxSelect

void onListboxSelect(event)

onRadioChange

void onRadioChange(event)

onRequestProgress

void onRequestProgress()

onTextboxChange

void onTextboxChange(event)

onTreeSelect

void onTreeSelect(event)

processHttpRequest

void processHttpRequest(httpRequest)

replaceNode

void replaceNode(oldNode,newNode)

saveTreeSelection

void saveTreeSelection(tree)

sendAsynchronousRequest

Object sendAsynchronousRequest()

sendRequest

Object sendRequest()

updateDOM

void updateDOM(xml)

watchDOM

void watchDOM()


Documentation generated by JSDoc on Tue Jul 31 08:03:11 2007