Skip to main content
sandeep reddy a posé une question dans #Visualforce
 i was write code its not executes the code is

public class pal {

    public string name {set;get;}

    public string addr  {set;get;}

    public string fathername {set;get;}

    public string  mothername{set;get;}

    public pagereference submit(){

        pagereference f = new pagereference('/apex/icici');

            return f;

    }

}

<apex:page controller="pal">

  <apex:form >

      <apex:sectionHeader title="bank details " description="this is the bank details " subtitle="new"/>

          <apex:pageBlock title="applicant data" tabStyle="application__c" >

               <apex:pageBlockButtons location="top">

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

                </apex:pageBlockButtons>

                the value of name = <apex:inputText /><br/>  <br/>

                the value of addr=<apex:inputText /><br/>  <br/>

                the value of fathername=<apex:inputText maxlength="50"/><br/>  <br/>

                the value of mothername=<apex:inputText maxlength="50"/><br/>  <br/>

          </apex:pageBlock>

         

  </apex:form>

</apex:page>

this is reference code any thing wrong tel me

<apex:page controller="pal" >

    <apex:pageblock title="custmor details">

    <apex:outputText value="{!name}"/>   

     <apex:outputText value="{!addr}"/> 

     <apex:outputText value="{!fathername}"/> 

     <apex:outputText value="{!mothername}"/>

    </apex:pageblock>

</apex:page> 
2 réponses