View Example 8: Multiple components with same data
SWAC optimises data fetching to avoid unecessery requests for the same data. This is archived useing datasource based databinding (going over the dataset based databinding in other frameworks). This has some advantages and disatvanages:
- Saveing bandwith resulting in an speed up display with large numbers of datasets
- Datasets are consistent over every component that uses the same datasource
- Datasets added to one component are automatically added to all components useing the same datasource
- Datasets loaded in one component useing lazy loading are loaded same time into the other components
Important things to consider:
- Like always every component container must have it's own id.
- Datasets are loaded over the quickest component first.
- If you want to use lazy loading for one source all components must have lazy loading option set to true.
-
{name}
-
> {name}
- >> {name}
-
> {name}