Here is something so simple
>
Don't forget that primefaces also let's you use the attribute widgetvar to tie your component to a javascript object.
so for instance:
then in your javascript code or some javascript callback you could do:
tom.disable()
etc.