title: How to call a method from an action which is referring the attribute tag for class name in ADF
body: <p>I have a use case like there is a af:train component which will be part of a template.</p>
  
  <p>I am using this template for creating the pages which are defined inside a bounded task flow which is a train</p>
  
  <p>My template looks like this</p>
  
  <pre><code> &lt;f:facet name="bottom"&gt;
                      &lt;af:toolbar id="pt_t1"&gt;
                          &lt;af:button id="tt_b1" rendered="#{attrs.backRendered}"
                                     action="#{controllerContext.currentViewPort.taskFlowContext.trainModel.getPrevious}"
                                     text="Back" disabled="#{attrs.backDisabled}"/&gt;
                          &lt;af:button id="tt_b2" rendered="#{attrs.nextRendered}"
                                     action="#{controllerContext.currentViewPort.taskFlowContext.trainModel.getNext}"
                                     text="Next" disabled="#{attrs.nextDisabled}"/&gt;
                          &lt;af:button text="Cancel" id="pt_b1"
                                     actionListener="#{tabLauncher_backing.closeCurrentActivity}"/&gt;
                          &lt;af:button text="Finish" id="pt_b2"  
                                     action="#{attrs.backingBean.showMessage}"
                                     disabled="#{attrs.finishDisabled}"/&gt;
                      &lt;/af:toolbar&gt;
                  &lt;/f:facet&gt;
  </code></pre>
  
  <p>Inside the same template itself I have declared the <strong>backingBean</strong> attribute as shown below</p>
  
  <pre><code>  &lt;afc:attribute&gt;
                  &lt;afc:attribute-name&gt;backingBean&lt;/afc:attribute-name&gt;
                  &lt;afc:attribute-class&gt;java.lang.Object&lt;/afc:attribute-class&gt;
              &lt;/afc:attribute&gt;
  </code></pre>
  
  <p>So In the page where I need to set the backingBean value to some class I will set it as shown below</p>
  
  <pre><code>&lt;f:attribute name="backingBean" value="com.example.Page3"/&gt;
  </code></pre>
  
  <p>In the first code you can see there is  Finish button which is calling the method showMessage as defined in the action of that button.</p>
  
  <p>Now whenever run my application and click on the Finish button it shows the below <strong>error message</strong>:</p>
  
  <pre><code>Template.jspx @22,76 action="#{attrs.backingBean.showMessage}": Method not found: com.example.Page3.showMessage()
  </code></pre>
  
  <p>By the way the method showMessage is there inside Page3 class.</p>