Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to open a link in new tab from faces message

Narendra EnamalaAug 17 2023 — edited Aug 17 2023

Hi

When I click on link(Google), it is opening on same tab. Is there any settings / approach to open in new tab.

String htmlMessage = "<html>Some Message. "+

      "Goto \<a href=http://www.google.com\>Google\</a>\</html>";

FacesMessage fMsg = new FacesMessage(htmlMessage);

FacesContext fContext = FacesContext.getCurrentInstance();

fContext.addMessage("",fMsg);

HtmlMsg

My JDEV Version 12.2.1.3.0

Regards

Narendra E

This post has been answered by dvohra21 on Aug 17 2023
Jump to Answer
Comments