Data Services |
![]() ![]() ![]() |
The data for the dynamic pages is provided by data service classes that implements MoreMotion's org.moremotion.datasrc.DataService interface. The data service classes are introduced to the system in the configuration with dataSource element. How a Data Service class is called? There is an important difference in calling the Data Service classes. Unlike the Action Service classes which are called directly with links or form actions on the pages, the Data Service classes are called indirectly. If a page contains a data source, the MoreMotion calls the Data Service Java class associated with it and lets it to populate the data in ADOM's (MoreMotion's Data Objects). A Data Source is defined with configuration element dataSource in either a global configuration file under {APPLICATION_PATH}/WEB-INF/MM-INF/config folder or a page configuration file under {APPLICATION_PATH}/WEB-INF/MM-INF/config/pages folder. Here is an example:
The value of the class parameter should be the name of a class that implements org.moremotion.datasrc.DataService interface. See Data Source Configuration for more detailed information about data source parameters. An example data service implementation
|