+ Start a Discussion
Deepak Tiwari 17Deepak Tiwari 17 

Apex class 'exampleClass1' does not exist

<apex:page standardController = 'Contact' extensions= 'exampleClass1'>
<apex:form >

    <apex:pageBlock >
    <apex:pageBlockSection >
     <apex:inputField value='{!Contact.FirstName}'/>
     <apex:inputField value='{!Contact.LastName}'/>
     </apex:pageBlockSection>

<apex:pageBlockButtons location='bottom'>
    <apex:commandButton action='{!save}' value='Save'/>
     </apex:pageBlockButtons>
    </apex:pageBlock>
   </apex:form>
</apex:page>
 
Best Answer chosen by Deepak Tiwari 17
Raj VakatiRaj Vakati
Try this code ...
 
<apex:page standardController = "Contact" >
<apex:form >

    <apex:pageBlock >
    <apex:pageBlockSection >
     <apex:inputField value="{!Contact.FirstName}"/>
     <apex:inputField value="{!Contact.LastName}"/>
     </apex:pageBlockSection>

<apex:pageBlockButtons location="bottom">
    <apex:commandButton action="{!save}" value="Save"/>
     </apex:pageBlockButtons>
    </apex:pageBlock>
   </apex:form>
</apex:page>

 

All Answers

Deepak Tiwari 17Deepak Tiwari 17
Hi all, 

Please help me to understand where i am lacking as this is my first code...and it is showing some random error....
Raj VakatiRaj Vakati
Try this code ...
 
<apex:page standardController = "Contact" >
<apex:form >

    <apex:pageBlock >
    <apex:pageBlockSection >
     <apex:inputField value="{!Contact.FirstName}"/>
     <apex:inputField value="{!Contact.LastName}"/>
     </apex:pageBlockSection>

<apex:pageBlockButtons location="bottom">
    <apex:commandButton action="{!save}" value="Save"/>
     </apex:pageBlockButtons>
    </apex:pageBlock>
   </apex:form>
</apex:page>

 
This was selected as the best answer