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
Manoprabha PalpandianManoprabha Palpandian 

missing required attribute value in my code showing error

:pageBlockTable>
              <apex:pageBlock title="Registration Records">
              <apex:outputPanel id="ContactDetail" >
              <apex:repeat value="{!Registration details}" var="reg">
              <apex:outputText value="{!reg.Name__c}" /><br/>
                  <apex:outputText value="{!reg.Address__c}" /><br/>
                  <apex:outputText value="{!reg.Email_ID__c}" /><br/>
                  <apex:outputText value="{!reg.College_Name__c}" /><br/>
               </apex:repeat>
               </apex:outputPanel>
              </apex:pageBlock>
            </apex:pageBlockTable>
                
                
Best Answer chosen by Manoprabha Palpandian
Suraj Tripathi 47Suraj Tripathi 47

Hi,

correct your apex repeat as you are not entering right value

              <apex:repeat value="{!Registration details}" var="reg">

correct:               <apex:repeat value="{!Registrationdetails}" var="reg">

you have to enter the same name Registrationdetails as it is present in controller.

If you are using page block table then why you are using apex repeat .You can use any of one Like

<apex:page standardController="Account">
    <apex:pageblock  title="Registration Records">
        
         <apex:pageBlockTable value="{!account.Contacts}" var="reg">
              <apex:column value="{!reg.Address__c}"/>
              <apex:column value="{!reg.Email_ID__c}"/>
               <apex:column value="{!reg.College_Name__c}"/>
         </apex:pageBlockTable>
        
    </apex:pageblock>
    
    
</apex:page>
 

Or

<apex:page controller="repeatCon" id="thePage">
 
    <apex:repeat value="{!strings}" var="string" id="theRepeat">
 
        <apex:outputText value="{!string}" id="theValue"/><br/>
 
    </apex:repeat>


            <apex:repeat value="{!Registrationdetails}" var="reg">
                  <apex:outputText value="{!reg.Name__c}" /><br/>
                  <apex:outputText value="{!reg.Address__c}" /><br/>
                  <apex:outputText value="{!reg.Email_ID__c}" /><br/>
                  <apex:outputText value="{!reg.College_Name__c}" /><br/>
               </apex:repeat>
 
</apex:page>

Do some needful changes according to your requirement.

Please let me know it is working or not?

Please mark it as the Best Answer so that other people would take references from it .

Thank You.

All Answers

Manoprabha PalpandianManoprabha Palpandian
anyone of you helpme why it is showing
 
Suraj Tripathi 47Suraj Tripathi 47

Hi,

correct your apex repeat as you are not entering right value

              <apex:repeat value="{!Registration details}" var="reg">

correct:               <apex:repeat value="{!Registrationdetails}" var="reg">

you have to enter the same name Registrationdetails as it is present in controller.

If you are using page block table then why you are using apex repeat .You can use any of one Like

<apex:page standardController="Account">
    <apex:pageblock  title="Registration Records">
        
         <apex:pageBlockTable value="{!account.Contacts}" var="reg">
              <apex:column value="{!reg.Address__c}"/>
              <apex:column value="{!reg.Email_ID__c}"/>
               <apex:column value="{!reg.College_Name__c}"/>
         </apex:pageBlockTable>
        
    </apex:pageblock>
    
    
</apex:page>
 

Or

<apex:page controller="repeatCon" id="thePage">
 
    <apex:repeat value="{!strings}" var="string" id="theRepeat">
 
        <apex:outputText value="{!string}" id="theValue"/><br/>
 
    </apex:repeat>


            <apex:repeat value="{!Registrationdetails}" var="reg">
                  <apex:outputText value="{!reg.Name__c}" /><br/>
                  <apex:outputText value="{!reg.Address__c}" /><br/>
                  <apex:outputText value="{!reg.Email_ID__c}" /><br/>
                  <apex:outputText value="{!reg.College_Name__c}" /><br/>
               </apex:repeat>
 
</apex:page>

Do some needful changes according to your requirement.

Please let me know it is working or not?

Please mark it as the Best Answer so that other people would take references from it .

Thank You.

This was selected as the best answer
Manoprabha PalpandianManoprabha Palpandian
thank you soo much Suraj Tripathi
Manoprabha PalpandianManoprabha Palpandian
it will working
Suraj Tripathi 47Suraj Tripathi 47

Manoprabha Palpandian,

Please mark it as the Best Answer

Thank You

Manoprabha PalpandianManoprabha Palpandian
And one more doubt how to use set function