div, -, ( ).
In the end, I just did this:
function selectIncidentIDText (incidentIDTxtEl) {
incidentIDTxtEl.select();
}
<h:inputText value="(IncidentID: #{ViewIncidentBean.incident.id})" readonly="true" onclick="selectIncidentIDText(this);"/>
This works well enough for what I wanted, although it is a bit ugly.
source
share