0

I need to make a link that looks exactly like a button, using jsf (and richfaces if helpful) to an external website.

Most of the solutions looks like will not work for an external link. Or are using Primefaces (which I can't).

I have tried:

<h:button value="Go" outcome="https://wwws.external-site-in-new-tab.com.br/abc/def.hij?params;#{JSF_EL_param}" />

This same link opens in a new window, using an <a> element. But does not work for the button.

The error message I see written in the button itself, in my language, portuguese, is:

"Este botão está desativado porque um caso de navegação não pôde ser correspondido"

something like:

This button is deactivated because a navigation case could not be matched

The Student
  • 27,520
  • 68
  • 161
  • 264

1 Answers1

1

Did you read this: Styling one JSF external link to make it look like a button

Try changing

<p:button value="Go to SO" onclick="window.open('http://www.stackoverflow.com')" />

to

<h:button value="Go to SO" onclick="window.open('http://www.stackoverflow.com')" />
Community
  • 1
  • 1
Kukeltje
  • 12,223
  • 4
  • 24
  • 47