2

I have an issue where my apex:pageMessages does not appear in the visualforce page even though i have that tag on the top of the page.

Now, i tried placing the apex:pagemessages component just below the apex:pageBlock and it started working fine. Before that, apex:pageMessages was just above the apex:pageBlock tag.

I am very confused now that where we need to place the apex:paeMessages component in a visualforce page?

Does the placement of it really matters and affects the rendering of it? Please clarify.

Thanks.

1 Answer 1

1

When the Ajax requests happen and then the controller is back from the server to client its important to rerender apex:pagemessages tag as well .

Alternatively we have Id attribute to pagemessage and in ReRender tag specify Id as well of the Pagemessage tag

1
  • Thanks @Mohit. I didnt try rerendering apex:pageMessages before. I am going to try it now.
    – Bforce
    Commented Jun 18, 2014 at 15:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .