like if
if(data == Null || data == ''){
pexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR,'my error message'));
}
i'm really confused about it.
please help.3 件の回答
Hi Mahesh,The simple answer is if you've marked it as required on VF page then it will be required field and you need no to handle on controller side.But just imagine a situation, where you want to reuse same controller on the other VF page. If you don't want that field to be as required on that VF page don't use this attribute.So, it depends on you're requirement.Thanks,Ashish Singh.