• Manisha Yadav 27
  • 0 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 3
Hi guys.
I started to learn Apex recently.
Then I found that many things can be write with case insensitive character.
Such as:
  • Object name:
    • You can write 
      public pagereference method1() { ..}
      instead of 
    • public PageReference method1() { ..}
  • Variable name
    • This will be compile error
    • Integer I;
      Integer i;
  • SOQL and SOSL statements
    • Account[] accts = [sELect ID From ACCouNT where nAme = 'fred'];
I refering to this : http://www.salesforce.com/us/developer/docs/apexcode/Content/langCon_apex_variables.htm

Just to make sure, are there other case-insensitive things that can be happen on Apex ?
Hi there

This is weird..  Never thought I've encountered that before.  Is it new...?

The following code works, just as you would expect.

<apex:page standardController="account">
    <apex:repeat value="{!account.contacts}" var="CONTACT">
        <apex:outputField value="{!CONTACT.name}" />

However, if I change the outputField to this (only hanged the apex:outputField line),

<apex:page standardController="account">
    <apex:repeat value="{!account.contacts}" var="CONTACT">
        <apex:outputField value="{!contact.name}" />

I got this error mssage:
Error: Unknown property 'AccountStandardController.contact'

This is really against what I have believed for a long time that VF is case insensitive.

Has anyone else seen this before?

Note:  I originally had var="Contact".  My above code, var="CONTACT", is simply for illustrations.


Hi All,

I have created a lookup field in active visualforce page of site.
But when i click on the icon to see the values in lookup field, i get the Authorization Required page.

I have checked all security settings, everything looks fine.
Can anyone help me to get this issue resolved .Thanks