JSF 2.x/Primefaces 7.x
Assuming I have a
<p:outputLabel id="myLabel">
Here some static text written from a colleage without java background,
but mixed with #{myBean.name} information from java object
<p:outputLabel>
or <h:outputLabel>
.
I want offer on same page a link to email
<a href="mailto:">
and put the content from the label field (id=myLabel) into the email.
I also found examples like
<a href="mailto:?subject=mySubject&body=myBody">
to pre-fill the email. So myBody should be the content from id=myLabel field.
I'm looking for a solution to pull the rendered content from label as body. I assume, the content must also be url-encoded.
Any hints? Thanks in advance.