Can the data provider method be only written onInit() method of apache click or can it be written in any someother method too?
Data provider method in apache click
177 Views Asked by rakeshK At
2
Can the data provider method be only written onInit() method of apache click or can it be written in any someother method too?
The DataProvider is a control's interface and following the Page[1] initialization sequence, the best place to setup that interface is on the Page's onInit() method[2]:
The following article[3] will help you understand how to use DataProviders.
Gilberto
[1] http://click.apache.org/docs/click-api/org/apache/click/Page.html
[2] http://click.apache.org/docs/click-api/org/apache/click/Page.html#onInit()
[3] http://click-framework.blogspot.com.br/2010/07/apache-click-220-dataprovider.html