I have just tested and it work fine(download zClip from here):
in copy
parameter you can use some selector, (for example: alternative way for $('#myform\\:txt1')
is using selector by styleClass $('.zzzxxx')
)
<h:head>
</h:head>
<h:body>
<h:outputScript library="js" name="jquery-1.9.1.min.js"/>
<h:outputScript library="js" name="jquery.zclip.min.js"/>
<script type="text/javascript">
$(document).ready(function(){
$('#copylink').zclip({
path:"#{resource['js:ZeroClipboard.swf']}",
copy:$('#myform\\:txt1').text()
});
});
</script>
<h:form id="myform">
<p:panel>
<h:outputText styleClass="zzzxxx" id="txt1" value="Stackoverflow"/>
<a id="copylink" href="#">Copy Description</a>
</p:panel>
</h:form>
</h:body>
Result: