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
tantoniotantonio 

VF Error: value for <apex:outputField> is not a dynamic binding!

I am getting this error "value for <apex:outputField> is not a dynamic binding!" on my VFP and not sure why. I read somewhere on forumns that this can be caused potentially by multi-currency being enabled, which I do have on but I'm not 100% sure that has anything to do with it.

 

VFP:

 

<apex:page controller="listorgs">

    <apex:form >
    
        <Apex:pageblock >

            <apex:pageblockTable value="{!newlist}" var="obj">
                <apex:column >
                    <Apex:outputfield value="obj.name"/>
                </apex:column>
            </apex:pageblockTable>
        </Apex:pageblock>
        
    </apex:form>
    
</apex:page>

 

Controlling class:

 

Public class listorgs
    implements iterator<org__c>{
        public static List<org__c> newlist {get; set;}
        Integer i {get; set;}
        
        public listorgs(){
            newlist = [select id, name from org__c];
            i = 0;
                }
        Public boolean hasnext(){
            if(i>= newlist.size()){
                return false;
            } else {
                return true;
            }
        }
        Public Org__c next(){
            if(i==100){return null;}
            i++;
            return newlist[i-1];
        }
}

    

 

Thanks to anyone who can help!

 

Best Answer chosen by Admin (Salesforce Developers) 
Avidev9Avidev9

Seems to me like a typo!

You missed the merge field {! }

 

Change this line 

 

<Apex:outputfield value="obj.name"/>

To

<Apex:outputfield value="{!obj.name}"/>

All Answers

Avidev9Avidev9

Seems to me like a typo!

You missed the merge field {! }

 

Change this line 

 

<Apex:outputfield value="obj.name"/>

To

<Apex:outputfield value="{!obj.name}"/>
This was selected as the best answer
tantoniotantonio

Woohoo! Thanks!

KamsR_DEVKamsR_DEV

I have written 1000 lines of coding to overide the standard object tab with VF page and functionality.

 

I was stucked with this issue. But, your reply really helps me a lot.

 

 

 

Thanks Again...!