As the name suggests, Datatable will generate table and Datalist will generate ordered/unordered list. Please refer documenation for the detail https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataTable.htm https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataList.htm
Let us know if you are looking for any specific different or implemenation using any one of these.
Apex:dataTable - An HTML table that is defined by iterating over a set of data, displaying information about one item of data per row. The body of the < apex:dataTable > contains one or more column components that specify what information should be displayed for each item of data. The data set can include up to 1,000 items.
-No need to write inside pageblock or pageblocksection. -There is no required value. -The data can be displayed using custom style sheets.- -we need to specify column headers explicitly.
Apex:pageBlockTable – A list of data displayed as a table within either an < apex:pageBlock > or < apex:pageBlockSection > component, similar to a related list or list view in a standard Salesforce page. Like an < apex:dataTable >, an < apex:pageBlockTable > is defined by iterating over a set of data, displaying information about one item of data per row. The set of data can contain up to 1,000 items.The body of the < apex:pageBlockTable > contains one or more column components that specify what information should be displayed for each item of data, similar to a table. Unlike the < apex:dataTable > component, the default styling for < apex:pageBlockTable > matches standard Salesforce styles. Any additional styles specified with < apex:pageBlockTable > attributes are appended to the standard Salesforce styles.
-PageBlockTable should be define inside pageblock or pageblocksection. -PageBlockTable uses standard styles sheets to design a visualpage. -It has the required attribute "value". -Column headers will be displayed automatically.
Apex:repeat – This tag is used as for loop(for list) in apex. You can iterate a list. -There is no proper alignment of data in repeater compared with DataTable.
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataTable.htm
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataList.htm
Let us know if you are looking for any specific different or implemenation using any one of these.
Cheers!
- Item 1
- Item 2
- Item 3
Below links will give you an overview of both components:Datatable : https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataTable.htm
Datalist : https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataList.htm
An HTML table that is defined by iterating over a set of data, displaying information about one item of data per row. The body of the < apex:dataTable > contains one or more column components that specify what information should be displayed for each item of data. The data set can include up to 1,000 items.
-No need to write inside pageblock or pageblocksection.
-There is no required value.
-The data can be displayed using custom style sheets.-
-we need to specify column headers explicitly.
Apex:pageBlockTable – A list of data displayed as a table within either an < apex:pageBlock > or < apex:pageBlockSection > component, similar to a related list or list view in a standard Salesforce page. Like an < apex:dataTable >, an < apex:pageBlockTable > is defined by iterating over a set of data, displaying information about one item of data per row. The set of data can contain up to 1,000 items.The body of the < apex:pageBlockTable > contains one or more column components that specify what information should be displayed for each item of data, similar to a table. Unlike the < apex:dataTable > component, the default styling for < apex:pageBlockTable > matches standard Salesforce styles. Any additional styles specified with < apex:pageBlockTable > attributes are appended to the standard Salesforce styles.
-PageBlockTable should be define inside pageblock or pageblocksection.
-PageBlockTable uses standard styles sheets to design a visualpage.
-It has the required attribute "value".
-Column headers will be displayed automatically.
Apex:repeat – This tag is used as for loop(for list) in apex. You can iterate a list.
-There is no proper alignment of data in repeater compared with DataTable.
apex:dataList
An ordered or unordered list of values that is defined by iterating over a set of data. The body of the <apex:dataList> component specifies how a single item should appear in the list. The data set can include up to 1,000 items
https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_dataList.htm
http://www.infallibletechie.com/2013/04/what-is-difference-between-and.html
Please let us know if this will help you
Thanks
Amit Chaudhary