Dataset has two points:
-->it is the client store of xml data.
--> It is the mechanism by which OpenLaszlo make HTTP Get/Post Request.
--> lz.DataElement is subclasses of DataNode and DataText.
src attribute:
should be a well-formed url that points to the back-end data source that will produce data. The URL may be a static xml or a server-side processor.
-> if it is url, the data will be retrieved when an applicaton is ran.
-> If it is a relative path, the data will be compiled into the dataset.
-> If it is not present, the value of the dataset will be the content of the <dataset> element.
Set the source of dataset in HTTP:
<dataset name="myData" request="true" type="http" src="myXMLDoc.xml" />
Local datapath
--> datapath="local:reference.to.dataset.relative.to.parent:/path"
ondata/onerror/ontimeout: one of them will be sent out in the requesting.
datapaths are the extension of datapointer. A datapointer pionts to just one place of the dataset at a time, but can move around -- so you can have mulitple data pointers, each pointing to difference place in a dataset.
When we say that HTTP dataset is dynamic, we mean that you can repopulate them programmatically by calling doRequest() method of dataset object, or if the request src attribute is set to true, by changing the URL of the dataset when one of setSrc(), setQueryString(), or setQueryParam() method is called.
The applyData() method is called on any node that is declared with a datapath that matches a terminal selector, such as text() or @attribute when the data it matches is changed. The argument passed to the method is the string the data represents. Use the ondata event if the node is bound to a datapath that matches a data node (see below).