i am displaying the error message in visualforce page by using apex:pageMessages
in this error block i need the hyperlink when i click on hyper it have to open the custom pop-up in that pop-up i have to display the some error information,
can any one suggest me how to call the custom-pop method.
Visualforce
<apex:outputpanel id="messages">
<apex:pageMessages escape="false"/>
</apex:outputpanel>
Apex Clas:
addErrorMessage(duplicates +' values alerdy there.<a href="/">test</a>');
Best Answer
Well, you are doing it correctly. You will be required to add and event handler on the
<a>
tag you have defined. I tried it using jQuery dialog.Apex Page:
Controller
Result
You will be required to refine the code and surround the dialog by outputpanel and re-render it if there is a failure and hide dialog at start.