Hello,
I am trying to open an eMail tool (same as typing the URL "mailto:john.doe@web.com" into my web browser) from a commandButton.
I tried things like
<h:commandButton value="send mail" action="#{myBean.email}"/>
and in the bean:
public
String email() {
return "mailto:john.doe@web.com";
}
But this gives an error message since, of course, the
JSF framework tries to convert the return string into some other address, e.g. adding .xhtml and so on.
How can I avoid that the address is processed in such a way?
Thanks for your help!