You can add a `<p:ajax>` call on your element. With this you have a possibility to listen some events from the "parent" element.
In Primfaces are no onclick, onblur `onclick`, `onblur` event to fire a logic or backingbean these backingbean. These are HTML attribute names to call normal javascript functions.
But with primfaces they just called blur, click.`blur`, `click`.
You find an example in the user guide from primefaces (Ajax Behavior Events).
For example the selectOneMenu:
<p:selectOneMenu var="lang" value="#{data.language}">
<f:selectItem itemValue="de" itemLabel="de"/>
<f:selectItem itemValue="fr" itemLabel="fr"/>
<p:ajax event="change" listener="#{logic.changeLanguage}"/>
</p:selectOneMenu>
I hope this will help you