Skip to main content
i am taking a visual force webcam. 

no errors are thrown, but changes I make to the nomination field are not saved.

controller code is

public with sharing class clscontroller {

   public List<contact> contacts {get;set;}

   public clscontroller(){

       contacts = [select id,name,email, phone , nominate__c from contact limit 10];

                         }

   public void save(){

        update contacts;

                     }

}

VF apex is

<apex:page showheader="false" controller="clscontroller">

<!--   to hide the entire salesforce nonsense, do the above with false   -->

<!--  <apex:page controller="clscontroller">    -->

      <apex:image value="{!$Resource.blogiclogo}" width="40%" height="40%"/>

      <apex:form >

      <apex:pageblock title="Nominate contacts">

         <apex:pageblockButtons >

            <apex:commandbutton value="save" action="{!save}" />

          </apex:pageblockButtons>

      <apex:pageblockTable value="{!contacts}" var="contact">

           <apex:column value="{!contact.name}"/>

           <apex:column headervalue="email">

                <apex:inputfield value="{!contact.email}" />

           </apex:column>

           <apex:column value="{!contact.phone}"/>

<!--             <apex:column value="{!contact.id}"/>  -->

           <apex:column headervalue="nominate" >

                <apex:inputfield value="{!contact.nominate__c}"/>

           </apex:column>

           

      

      </apex:pageblockTable>

     

  

      </apex:pageblock>   

       </apex:form>

</apex:page>

 
1 risposta
  1. 14 ott 2015, 07:12
    There are no

    use pagemessage on the vf page to see the validation rule errors. It is working fine for me.

    Thanks,

    pRAMODH.
0/9000