Questions tagged [page-messages]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-3 votes
1 answer
1k views

How to call this pointer in static context [closed]

I have one static class in that where I'm calling one methods using this pointer in my apex class, I'm getting below error. This cannot be referenced in a static context below statement shows you ...
user avatar
0 votes
0 answers
211 views

How to remove The Red 'Error' Text and the Exclamation mark from apex page message [duplicate]

I want to remove the red 'Error' text and the exclamation mark from apex page message and want to show only the Message. Please see image below: Providing sample code for reference: Page: <apex:...
user avatar
1 vote
2 answers
118 views

pageMessages should ignore Database.insert(records, false) errors

I am creating some records in my controller but some of them might fail during insert due to duplication, so I use Database.insert(records, false). It works just fine and ignores records that already ...
user avatar
  • 6,130
0 votes
1 answer
475 views

error message show if cityname is already exist on vfpage

want to show error message that if cityname is duplicate then show error message cityname already exists! whats i'm doing wrong anyone please tell When saving record from cities tab and if dupicate ...
user avatar
  • 1,298
3 votes
0 answers
163 views

Use Apex: page messages with Java script remoting

I am using javascript remoting in my VF page. I want to display any excpetion coming in Remoting as Apex page messages . Any direct way I can do that? Thanks, Ray
user avatar
  • 1,738
2 votes
1 answer
697 views

Output label not conditional

I have a requirement to show page message for a particular selected template. The template selection done here. But render is always returning true in this case. Can someone help me here? <apex:...
user avatar
  • 2,900
3 votes
1 answer
1k views

Displaying messages on redirected VF page

This is roughly the same question as in here, I can't comment so I'm re-asking. My problem is that if the redirect is created in the method assigned to apex:page action attribute, the messages are ...
user avatar
-1 votes
1 answer
458 views

problem in apex pagemessages on some condition

i want to set the error message on page for below cases.... if i click on SAVE button error message should display... Like "you have not selected any contact" i have list of contacts and select ...
user avatar
  • 469
15 votes
1 answer
6k views

Inserting a link in an ApexPages message

I was wondering if there's a way to display a link in an ApexPages.Message. There's nothing mentioned in the documentation about it, so I simply did a : ApexPages.Message(ApexPages.Severity.CONFIRM, '...
user avatar
  • 4,310
10 votes
5 answers
13k views

Clear Apex:PageMessages without losing viewstate

Is there a way to clear the PageMessages in my controller without losing my Page's viewstate? At the moment I'm doing a ajax call from my visualforce page, which rerenders part of my page, but this ...
user avatar
  • 7,221