Navigation to external URL

Hi All,
In my application, i want to navigate to external url like google.com on click on a link / button.
I tried to use getFacesContext().getExternalContext().redirect(“www.google.com”); It didnt worked for me.
Then i tried with
getFacesContext().getExternalContext().dispatch(“www.google.com”);

Both of them are not working. Is there any other way(s) to achieve this goal?

Many Thanks,

  • Kumar

For this you could use the control “Link” (Basic navigation link). If you want to open the contents in a new window, then set the property target (under the Expert properties) to “_blank”.

regards
Javier