Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
<apex:outputField value="{!x.somefield__c}" rendered={!isVisible}/> AND <apex:inputFiled value="{!x.somefield__c}" rendered={!isVisible}/>
rendered attribute or read-only attribute
with the validation also you can do it
public class checknumericvalue {
public string name{set;get;}
public checknumericvalue(){
}
public void check(){
if(name.isNumeric()==true){
apexpages.addMessage(new ApexPages.message(apexpages.Severity.WARNING,'give only characters only'));
}
}
}
<apex:page controller="checknumericvalue" >
<apex:form>
<apex:messages />
<apex:pageBlock title="check value">
<apex:inputText value="{!name}" />
</apex:pageBlock>
<apex:commandButton value="check" action="{!check}" />
</apex:form>
</apex:page>