+ Start a Discussion
SFDC_DevloperSFDC_Devloper 

Value attribute in dataTable

Hi All,

<apex:dataTable value="{!account.Contacts}" var="contact" cellPadding="4" border="1">--here account and acontact both are standard objectes 

 in Value attribute  I want give the both are custom objects ..Please share me any ideas

Thnaks
Sonam_SFDCSonam_SFDC
You can use the custom object as the following:
<apex:dataTable value="{!Conference__c}" var="confItem" rowClasses="odd,even">
and use the standard controller for the custom object:
<apex:page standardController="Conference__c" recordsetVar="conf">