function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

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

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">