I currently have a link that launches a telnet link similar to this
<h:outputLink value="telnet://1.2.3.4">
<h:outputText value="1.2.3.4" />
</h:outputLink>
For all users, browsers are correctly configured to launch some telnet client or another when they click this link.
I want to change the link that is currently displayed on the page to a link in the context menu ( rich:menuItem).
Menu items seem to work poorly with JSF output (or any other types of links). You need to implement it as an event value onclick:
<rich:menuItem value="View Details" onclick="window.location='http://ond.ba.ssa.gov" />
I tried to implement telnet in the same way:
<rich:menuItem value="1.2.3.4" onclick="window.location='telnet://1.2.3.4'" />
But that will not work. Should it? Is there an easy way to do this? If so, I could not find him.
Thanks in advance.
source
share