Visualforce PageMessage Samples

I can never remember what the different Visualforce page message options look like between the severity and strength so here are the options along with the code.

Apex Tip: How to get a RecordType Id by without SOQL

Instead of using this: [Select id from RecordType where sObjectType = ‘Account’ and developerName =’Customer’].id Use this: Schema.SObjectType.Account.getRecordTypeInfosByName().get(‘Customer’).getRecordTypeId() This can help avoid those pesky SOQL governor limits.