title: How to disable a p:commandLink onclick and enable it oncomplete?
body: <p>A <code>&lt;p:commandButton&gt;</code> can be disabled <code>onclick</code> and enabled <code>oncomplete</code> with the help of the <code>widgetVar</code> property associated with it as follows.</p>
  
  <pre><code>&lt;p:commandButton widgetVar="widget"
                   onclick="PF('widget').disable()"
                   oncomplete="PF('widget').enable()"
                   value="Submit"
                   process="@this"
                   actionListener="#{bean.action}"/&gt;
  </code></pre>
  
  <p>What about a <code>&lt;p:commandLink&gt;</code>? There is no <code>widgetVar</code> property associated with a <code>&lt;p:commandLink&gt;</code>. Is there any shortcut?</p>