title: JavaScript don't work while closing a tab in af:PanelTabbed
body: <p>Environment: </p>
  
  <p>JDev Studio Edition Version 11.1.2.3.0</p>
  
  <p>Component : PanelTabbed with ShowDetailItem</p>
  
  <p>it is required to get clientListener while closing the ShowDetailItem from a PanelTabbed.
  trying to create tabs dynamically using dynamicTabShell...!
  can't use af:panelTabbed and showDetailItem component directly as using Oracle Dynamic Tabs Shell default implementation...</p>
  
  <p>Frank posted a solution on blog...
  <a href="https://blogs.oracle.com/jdevotnharvest/entry/javascript_function_to_intercept_or" rel="nofollow">https://blogs.oracle.com/jdevotnharvest/entry/javascript_function_to_intercept_or</a></p>
  
  <p>Don't know how to incorporate the clientListener with pageTemplate dynamicTabShell.jspx.</p>
  
  <p>can't use &lt;===></p>
  
  <pre><code>&lt;af:panelTabbed id="pt1" tabRemoval="all" &gt;
  &lt;af:showDetailItem text="tabs" id="sdi1" disclosed="true" stretchChildren="first"
  clientComponent="false"&gt;
  &lt;af:clientListener method="alertTabClose" type="item"/&gt;
  &lt;/af:showDetailItem&gt;
  &lt;/af:panelTabbed&gt;
  
     function alertTabClose (closureEvent){
      var tab = closureEvent.getSource();  
      alert("test for TabClose event : ")
      ...
      }
  </code></pre>
  
  <p>&lt;===></p>
  
  <p>In fact af:clientListener don't recognize <strong>item</strong> as one of the type of clientListener...</p>
  
  <p>Any guess / help on this........???????</p>