everyone.
I had problem showing errors in my page, and I boiled it down to the use of showHeader="false". Here's my Controller:
public class MyTest1 {
public MyTest1()
{
ApexPages.addMessage(new ApexPages.Message(ApexPages.Severity.ERROR,'See Error'));
}
}
and VF page:
<apex:page controller="MyTest1" showHeader="false" cache="false">
<h1>Hello</h1>
<apex:pageMessages rendered="true" />
</apex:page>
The error message will only be displayed if I removed the showHeader="false" I read the documentation and didn't find they are related. I need to customize my page and do not want to use the standard header.
Any suggestion would be appreciated.